Template:Referendum/doc

This template describes the results of a referendum with a "yes" or "no" option.

Usage
{	"params": { "title": { "label": "Title", "description": "Name given to the referendum; if the article is about the referendum the article name should be used. ", "type": "string", "required": true },		"yespct": { "aliases": [ "yes%" ],			"label": "Yes percentage", "description": "The percent of \"yes\" votes reported. May contain decimal fraction, should not contain a percentage symbol.", "type": "string", "suggested": true },		"turnoutneeded": { "label": "Turnout needed", "description": "The percentage of registered voters (the electorate) that have to vote for a referendum to be deemed valid. For example, if 40% turnout is needed for referendum to be valid, enter \"40.00\". The default is for no turnout threshold to be considered. ", "type": "string" },		"turnoutpct": { "label": "Turnout actual", "description": "The percentage of registered voted (the electorate) that actually voted. This can be calculated by dividing the total number of votes by the electorate (number of registered voters) and multiplying by one hundred. ", "type": "string" },		"noicons": { "label": "Hide icons", "description": "Hide the tickmark and cross icons used to indicate the outcome. These icons are shown by default.", "type": "boolean" },		"option1": { "label": "Yes label", "description": "Alternate label for the \"yes\" option.", "type": "string", "default": "Yes" },		"yes": { "label": "Yes votes", "description": "The number of \"yes\" votes reported. May be formatted with thousand-separators.", "type": "string", "required": true },		"no": { "label": "No votes", "description": "The number of \"no\" votes reported. May be formatted with thousand-separators.", "type": "string", "required": true },		"nopct": { "aliases": [ "no%" ],			"label": "No percentage", "description": "The percent of \"no\" votes reported. May contain decimal fraction, should not contain a percentage symbol.", "type": "string", "suggested": true },		"option2": { "label": "No label", "description": "Alternate label for the \"no\" option.", "type": "string", "default": "No" },		"majorityneeded": { "label": "Needed percentage", "description": "The percent needed for referendum to pass. For example, with a two-thirds majority needed, put in \"66.67\". The default is a simple majority of 50.01%. ", "type": "string", "default": "50.01" },		"validpct": { "aliases": [ "valid%" ],			"label": "Valid votes percentage", "description": "The percent of valid votes reported. May contain decimal fraction, should not contain a percentage symbol.", "type": "string" },		"valid": { "label": "Valid votes", "description": "The number of valid votes reported. Generally calculated by adding the number of \"yes\" and \"no\" votes. May be formatted with thousand-separators.", "type": "string" },		"invalidpct": { "aliases": [ "invalid%" ],			"label": "Invalid votes percentage", "type": "string", "description": "The percent of invalid or blank votes reported for the referendum. May contain decimal fraction, should not contain a percentage symbol." },		"invalidname": { "label": "Invalid votes label", "description": "Alternate label for invalid votes. The default is \"Invalid or blank votes\".", "type": "string" },		"invalid": { "label": "Invalid votes", "type": "string", "description": "The number of invalid or blank votes reported for the referendum. May be formatted with thousand-separators." },		"total": { "label": "Total votes", "description": "Override for vote \"total\". The default is calculated based on yes+no or (if specified) valid+invalid. May be formatted with thousand-separators.", "type": "string" },		"electorate": { "label": "Electorate size", "description": "The number of registered voters who could have voted during the referendum. ", "type": "string" },		"source": { "label": "Source", "description": "Citation or a link to the sources for these referendum results.", "type": "content", "suggested": true }	},	"description": "A table with the results of a referendum.", "paramOrder": [ "title", "option1", "yes", "yespct", "option2", "no", "nopct", "valid", "validpct", "invalidname", "invalid", "invalidpct", "total", "electorate", "turnoutpct", "turnoutneeded", "majorityneeded", "noicons", "source" ],	"format": "block" }