Template:Infobox referendum
Infobox referendum | |
---|---|
Usage
Please note the following:
- All numbers must be inputted without commas, or else the template will display improperly. The template uses the magic word {{formatnum}} to insert commas for display.
- All percentages are calculated by the template, as well as the number of valid votes, invalid and blank votes, and voter turnout. Therefore, it is not necessary to find or have this data.
- The template figures out by itself whether the majority of voters approved or rejected the referendum based on the data it is fed. Therefore, it is not necessary to specify this. Furthermore, this cannot be overridden. The order the yes and no parameters are listed in does not affect which is displayed first.
Parameters
- name
- The name of the referendum, such as Measure 56 or Proposition 1A.
- title
- The official ballot title.
- yes
- no
- The number of votes approving or rejecting the referendum.
- total
- The total number of votes cast in the election.
- (This includes all counted votes as well as invalid or blank votes.)
- electorate
- The number of people registered to vote in the election.
- (This includes people who did not cast a vote on the referendum.)
- map
- The map of election results.
- mapdivision
- The name of the political subdivisions shown in the map, such as county, parish, or canton.
- (If no value is given, the default is county. Give any value to override this.)
- notes
- Any notes, such as the source of the data.
- float
- Aligns the infobox flush left if given the value left.
- (Defaults to right if no value is given or the parameter is omitted.)
Examples
Before an election
New Ingrean referendum, 2013 | ||||
---|---|---|---|---|
Do you support the accession of New Ingrea to the Treaty of Ísðor as agreed at Ashtinok on the 4 May 2013? | ||||
| ||||
Election to be held: 22 June 2013 | ||||
Use the model code below before an election for a referendum is held. New Ingrean referendum, 2013 is used as an example to the right.
- {{Infobox Referendum
- | name = Name of referendum
- | title = Official ballot title
- | yes =
- | no =
- | total =
- | electorate =
- | map = File:Map-referendum-blank.png
- | mapdivision =
- | notes = Election to be held: Date
- }}
Modify according to your needs. Keep in mind that, though the parameters yes, no, total, electorate, and mapdivision are blank, they should not be deleted. This makes it inconvenient to add data later.
During the election
Once election day arrives, the image can be changed to File:Oregon election results-PENDING.svg. After the polls have closed and start announcing returns, start putting the data into the template, updating as often as reasonable. Use the notes parameter to cite the source of the election-night returns.
After an election
New Ingrean referendum, 2013 | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Do you support the accession of New Ingrea to the Treaty of Ísðor as agreed at Ashtinok on the 4 May 2013? | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
The following code produces the table to the right:
- {{Infobox referendum
- | name = New Ingrean referendum, 2013
- | title = Do you support the accession of New Ingrea to the Treaty of Ísðor as agreed at Ashtinok on the 4 May 2013?
- | yes = 500641
- | no = 299361
- | total = 832901
- | electorate = 918810
- | map = File:map-guelphia-referendum-2013.png
- | mapdivision =
- | notes =
- }}
The parameters yes, no, total, and electorate take only values without commas. The template automatically formats the numbers when displayed by inserting commas.
The above documentation is transcluded from Template:Infobox referendum/doc. (edit | history) Please add categories to the /doc subpage. Subpages of this template. |