Template:U.S. politician abbreviation/doc
Appearance
This is a documentation subpage for Template:U.S. politician abbreviation. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template generates party and state affiliations for U.S. Senators and Representatives, complete with a non-breaking hyphen. It takes two mandatory parameters, |1=party affiliation
and |2=state abbreviation
, and one optional parameter for House members, |3=district number
, and returns text with a tooltip. Use |link=y
to generate links instead of a tooltip. The shortcut {{USpolabbr}}
can be used.
TemplateData
[edit]Generates party and state affiliations for U.S. Senators and Representatives
Parameter | Description | Type | Status | |
---|---|---|---|---|
Party affiliation | 1 | One-letter party affiliation of the politician
| Unknown | required |
State | 2 | USPS abbreviation of politician's state
| String | required |
House district number | 3 | District number for a member of the U.S. House of Representatives
| Number | suggested |
link | link | Provides wikilinks instead of a tooltip
| Boolean | suggested |
Examples
[edit]{{USpolabbr|D|HI}}
generates D‑HI{{USpolabbr|R|NH|link=y}}
generates R‑NH{{USpolabbr|D|CA|47}}
generates D‑CA 47th{{USpolabbr|R|VT|AL}}
generates R‑VT AL{{USpolabbr|D|CA|47|link=y}}
generates D‑CA 47th{{USpolabbr|I|WA|link=y}}
generates I‑WA{{USpolabbr|R|VT|AL|link=y}}
generates R‑VT AL
See also
[edit]- {{ushr}}