Editing
Template:Infobox referendum/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Basic usage == {{Parameter names example | name = {{{name}}} | country = Country | flag_year = | flag_image = | date = {{Start date|2000|01|01}} <!-- Details --> | question = {{{question}}} | image = | image_width = | image_alt = | caption = | voting_system = {{{voting_system}}} | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = {{{outcome}}} | website = {{{website}}} <!-- Results table --> | yes_text = {{{yes_text}}} | yes = 1 | no_text = {{{no_text}}} | no = 1 | blanktype = {{{blanktype}}} | blank = 1 | othertype = {{{othertype}}} | other = 1 | invalid = 1 | total = {{{total}}} | totalref = {{{totalref}}} | electorate = {{{electorate}}} | voter_registration = {{{voter_registration}}} | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = {{{map_division}}} | map_caption = {{{map_caption}}} | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = {{{notes}}} }} This template is meant to work for referendums with [[polar question]]s 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 [[mw:Help:Magic word|magic word]] <code><nowiki>{{formatnum}}</nowiki></code> 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 <code>yes</code> and <code>no</code> parameters are listed in does not affect which is displayed first. <syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox referendum | name = | country = | flag_year = | flag_image = | date = <!-- {{Start date|YYYY|MM|DD}} or {{Date_range|YYYY|MM|DD|YYYY|MM|DD}} --> <!-- Details --> | question = <!-- or | title = --> | image = | image_width = | image_alt = | caption = | voting_system = | votes_counted = <!-- or | reporting = or | declared =, do not include percentage (%) sign --> | last_update = <!-- time of last update, for partial results --> | time_zone = <!-- time zone of the time given in the last_update field, must be linked --> | outcome = | website = <!-- use {{URL}} --> <!-- Results table --> | yes_text = | yes = | no_text = | no = | blanktype = | blank = | othertype = | other = | invalid = | total = | totalref = | electorate = | voter_registration = | turnoutpct = <!-- Maps --> | map = | map_size = | map_alt = | map_division = <!-- name of the political subdivisions shown in the map, defaults to "county" --> | map_caption = <!-- overrides the default caption --> | map2 = | map_size2 = | map_alt2 = | mapdivision2 = | mapcaption2 = <!-- Bar graphs --> | width = | barwidth = | part1_subject = | part1_choice1 = | part1_percentage1 = | part1_color1 = | part1_choice2 = | part1_percentage2 = | part1_color2 = | part1_choice3 = | part1_percentage3 = | part1_color3 = | part1_choice4 = | part1_percentage4 = | part1_color4 = | part1_choice5 = | part1_percentage5 = | part1_color5 = | part1_caption = | part2_subject = | part2_choice1 = | part2_percentage1 = | part2_color1 = | part2_choice2 = | part2_percentage2 = | part2_color2 = | part2_choice3 = | part2_percentage3 = | part2_color3 = | part2_choice4 = | part2_percentage4 = | part2_color4 = | part2_choice5 = | part2_percentage5 = | part2_color5 = | part2_caption = | notes = <!-- e.g. Source: [URL] --> }} </syntaxhighlight>
Summary:
Please note that all contributions to NightRealm Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
NR:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information