Difference between revisions of "Template:Infobox uncontested presidential election small/doc"
Jump to navigation
Jump to search
imported>Zackmann08 |
imported>Zackmann08 (updating documentation) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | {{ | + | {{Lua|Module:Infobox|Module:InfoboxImage}} |
| + | {{Parameter names example|_template=| election_date | election_name | flag_image | country | flag_year | previous_year | next_year | previous_election | next_election | after_election}} | ||
| + | |||
| + | This is a miniature alternative to [[Template:Infobox election]], including only the uppermost parts. It is used for navigation purposes at the top of pages, where a leader ran unopposed and election did not take place. | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
| − | + | <pre style="overflow:auto;"> | |
| + | {{Infobox uncontested presidential election small | ||
| + | | election_name = | ||
| + | | election_date = | ||
| + | | flag_image = | ||
| + | | flag_year = | ||
| + | | country = | ||
| + | | previous_election = | ||
| + | | previous_year = | ||
| + | | next_election = | ||
| + | | next_year = | ||
| + | | after_election = | ||
| + | }} | ||
| + | </pre> | ||
| + | ==Example== | ||
Example usage is as follows: | Example usage is as follows: | ||
{{Infobox uncontested presidential election small | {{Infobox uncontested presidential election small | ||
Revision as of 23:24, 24 January 2017
| 40px | This is a documentation subpage for Template:Infobox uncontested presidential election small. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Template:Parameter names example
This is a miniature alternative to Template:Infobox election, including only the uppermost parts. It is used for navigation purposes at the top of pages, where a leader ran unopposed and election did not take place.
Usage
{{Infobox uncontested presidential election small
| election_name =
| election_date =
| flag_image =
| flag_year =
| country =
| previous_election =
| previous_year =
| next_election =
| next_year =
| after_election =
}}
Example
Example usage is as follows:
| 50px | |
| June 2016 | |
| Not held | |
|---|---|
| John Smith ran unopposed | |
←2012 2020→ |
{{Infobox uncontested presidential election small
| election_name = Utopian presidential election, 2016
| election_date = June 2016
| country = Utopia
| previous_election = Utopian presidential election, 2012
| previous_year = 2012
| next_election = Utopian presidential election, 2020
| next_year = 2020
| after_election = [[John Smith]]
}}
Notes:
- If election_name is omitted, the title of the page is used instead.
- previous_election and next_election refer to page titles.
- country may be replaced with flag_image for a custom flag.