Template:Infobox referendum: Difference between revisions
No edit summary |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:54, 15 February 2024
File:Lua-Logo.svg | This template uses Lua: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Basic usage
File:Flag placeholder.svg | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
{{{question}}} | ||||||||||||||||||||||||||||
Voting system | {{{voting_system}}} | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Outcome | {{{outcome}}} | |||||||||||||||||||||||||||
Website | {{{website}}} | |||||||||||||||||||||||||||
Results | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
{{{notes}}} |
This template is meant to work for referendums with polar questions as well as non-polar questions. This template can handle up to four subjects.
Please note the following:
- All numbers must be specified as plain numbers, without additional comments or references, 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
andno
parameters are listed in does not affect which is displayed first.
<syntaxhighlight lang="wikitext" style="overflow:auto">
</syntaxhighlight>
Examples
Below are examples of single-choice polar questions, as well as a non-polar example with multiple options.
Before an election
| ||
Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | ||
File:Oregon election results-ELECTION NOT YET.svg Results by county |
Use the model code below before an election for a referendum is held. Oregon Ballot Measure 56 (2008) is used as an example to the right.
<syntaxhighlight lang="wikitext" style="overflow:auto">
| ||
Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | ||
File:Oregon election results-ELECTION NOT YET.svg Results by county |
</syntaxhighlight>
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
Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | ||||||||||||||||||||||
Results | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
File:Oregon 2008 Measure 56.svg Results by county | ||||||||||||||||||||||
Source: Oregon Secretary of State |
The following code produces the table to the right:
<syntaxhighlight lang="wikitext" style="overflow:auto">
Amends Constitution: Provides That May And November Property Tax Elections Are Decided By Majority Of Voters Voting | ||||||||||||||||||||||
Results | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
File:Oregon 2008 Measure 56.svg Results by county | ||||||||||||||||||||||
Source: Oregon Secretary of State |
</syntaxhighlight>
The parameters yes
, no
, total
, and electorate
take only values without commas. The template automatically formats the numbers when displayed by inserting commas.
Multichoice referendums
File:Flag of the United Kingdom.svg | ||
| ||
Results | ||
---|---|---|
<syntaxhighlight lang="wikitext" style="overflow: auto"> {{Infobox multichoice referendum | name = 2016 United Kingdom European Union membership referendum | country = United Kingdom | date = {{Start date|2016|06|23|df=y}} | choice1 = Remain in the European Union | percentage1 = 55.11 | choice2 = Leave the European Union | percentage2 = 44.89 | choice3 = Invalid votes | percentage3 = 0.08 {{clear}} </syntaxhighlight>
Parameters
- name
- The name of the referendum, such as Measure 56 or Proposition 1A.
- question or title
- The official ballot question or title.
- location
- The administrative division (or country for a nationwide vote) where the referendum was held.
- date
- When the referendum was held.
- yes
- The number of votes approving the referendum.
- no
- The number of votes 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 eligible to vote in the election (in some countries this means the number of people registered to vote).
- (This includes people who did not cast a vote on the referendum.)
- voter registration
- Whether voter registration determines the number of eligible voters. If no, the term "registered voters" will not be used for the parameter "electorate", but "eligible to vote" is used instead.
- 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.)
- map2
- A supplementary map for election results, like population density
- 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.)
- outcome
- Outcome of the election (e.g. Not passed due to insufficient turnout).
- notes
- Any notes, such as the source of the data.
Additional parameters
- other
- The total number of valid votes which were not yes or no (e.g., informal votes)
- othertype
- Label to use for the "other votes" statistics, where those are part of the valid votes (e.g., Informal votes or Blank votes). If "Blank votes" is used here, the text "Invalid or blank votes" is also changed to "Invalid votes"
- invalid
- The total number of invalid votes. This may be used as an alternative to
total
, in which case the total number of votes is computed as the sum ofyes
,no
, andinvalid
. If bothinvalid
andtotal
are specified, thetotal
parameter will be used for computing the total number of votes. - To suppress the inclusion of invalid votes, specify
invalid
, but leave the value blank
- totalref
- A citation for the total number of votes
- turnoutpct
- The percentage of the electorate who voted in the referendum. Note that this is automatically computed from the value of
electorate
and the total number of votes, ifelectorate
is specified.
- mapcaption
- Use this parameter to override the default legend caption used for the map.
Region-specific information
United States
California
The California Secretary of State's website prominently displays results for the latest election. Results are also available as far back as June 1990 on another page at the website. Before 2000, results are listed in a single document, both the statement of vote (which is brief) and the supplement to the statement of vote (which is highly detailed). Starting in 2000, results are organized into a table of contents.
Oregon
The Oregon Secretary of State's website maintains an online record of detailed election results going back to 1995-12-05. Results by county for each ballot measure since then are included. Statistics on voter registration (fitting the electorate
parameter) and participation/turnout (the total
parameter) is available alongside the official results for each election.
Basic data (i.e., without results by county) on all ballot measures in Oregon history can also be found in the online edition of the Oregon Blue Book. Voter registration information going back to 1950 is also provided.
The following images can be used in place of an election results map when none can be made:
-
The election has not been held yet
-
The votes are being counted
-
The needed data has not been found
See also
{{bar_box}}