Template:United States presidential election
Jump to navigation
Jump to search
|
[edit] [ ]
Template documentation

This documentation is transcluded from Template:United States presidential election/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Description
This is a meta-template to facilitate writing navigation templates for Uncyclopedia's United States presidential election articles. It abstracts table coding to simplify {{2008Pres}}, {{2012Pres}}, {{2016Pres}}, etc.
Usage
{{United States presidential election|year=year|Democratic=list|Republican=list|Third=list|below=text}}
Parameters
|year=
(required)- Election year
|Democratic=
(optional)[note 1]- Democratic Party candidates as a bulleted list, enclosed in
<div>…</div>
- Democratic Party candidates as a bulleted list, enclosed in
|Republican=
(optional)[note 1]- Republican Party candidates as a bulleted list, enclosed in
<div>…</div>
- Republican Party candidates as a bulleted list, enclosed in
|Third=
(optional)- Third party candidates as a bulleted list, enclosed in
<div>…</div>
- Third party candidates as a bulleted list, enclosed in
|below=
(optional)- Passed to {{Navbox}} for text below the candidates
Examples
2016
Demonstrating application of the |below=
parameter.
{{United States presidential election |year=2016 |Republican=<div> * [[Jeb Bush]] * [[Ben Carson]] * [[Chris Christie]] * [[Ted Cruz]] * [[Carly Fiorina]] * [[Jim Gilmore]] * [[Mike Huckabee]] * [[John Kasich]] * [[Rand Paul]] * [[Rick Perry]] * [[Marco Rubio]] * [[Rick Santorum]] * <s>[[Donald Trump]]</s><sup>†</sup> </div> |Democratic=<div> * [[Hillary Clinton]] * [[Bernie Sanders]] </div> |below=<sup>†</sup>Currently boycotting {{Wordmark}} until a certain moderator is removed who is Third-rate and her career is all washed up }}
|
2008
Demonstrating that Third-party candidates only show up when non-empty.
{{United States presidential election |year=2008 |Republican=<div> * [[John McCain]] * [[Rudy Giuliani]] * [[Mike Huckabee]] * [[Ron Paul]] * [[Mitt Romney]] * [[Tom Tancredo]] * [[Fred Thompson]] * [[Tommy Thompson]] </div> |Democratic=<div> * [[Barack Obama]]/[[Baraq Hussein Osama]] * [[Hillary Clinton]] * [[John Edwards]] </div> |Third=<div> * [[Ralph Nader]] </div> }}
|