Template:United States presidential election/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:United States presidential election.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:United States presidential election.

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>
  • |Republican= (optional)[note 1]
    Republican Party candidates as a bulleted list, enclosed in <div>…</div>
  • |Third= (optional)
    Third party candidates as a bulleted list, enclosed in <div>…</div>
  • |below= (optional)
    Passed to {{Navbox}} for text below the candidates

  1. 1.0 1.1 It's technically possible to specify no candidates whatsoever, although it doesn't make much sense for a two-party nation.

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>
}}