Jump to content

Template:Ushr/doc

From Simple English Wikipedia, the free encyclopedia

This template expands an abbreviation of a district of the United States House of Representatives to a long name, which is linked to the district article.

Parameters[change]

{{ushr |1= |2= |3= }}

1: (or first unnamed parameter) state name or abbreviation
2: (or second unnamed parameter) district number (for at-large district, type in "AL").
3: (or third unnamed parameter) link text
If 3 = 'A', then pipe will be the possessive state; district number; "congressional district/seat".
If 3 = 'C', then pipe will be the ordinal of the district number and "district/seat," without the state.
If 3 = 'D', then pipe will be the ordinal of the district number and "congressional district/seat," without the state.
If 3 = 'E', then pipe will be only the district number, without the state. Note: In this situation, "At-large" is capitalized.
If 3 = 'R', then pipe will be only the ordinal of the district number, without the state.
If 3 = 'S', then pipe will be the state's possessive and the district's ordinal.
If 3 = 'T', then pipe will be the state and the district's ordinal.
If 3 = 'X', then pipe will be "state #" without possessive or "congressional district."
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Ushr in articles based on its TemplateData.

TemplateData for Ushr

<templatedata> { "params": { "1": { "label": "State name or abbreviation", "description": "Two-letter abbreviation or full name", "example": "VT; New York", "type": "string", "required": true }, "2": { "label": "District number", "description": "Number, or for at-large district, \"AL\"", "example": "51", "type": "string", "required": true }, "3": { "label": "Link text", "description": "Either the displayed link text or a code to set it: A gives state's nth district, D gives nth congressional district, E gives n, R gives nth, S gives state's nth, T gives state nth, X gives state n.", "type": "string", "default": "Link text will be like \"New York's 1st congressional district\"." } }, "description": "This template expands an abbreviation of a district of the United States House of Representatives to a long name, which is linked to the district article.", "format": "inline" } </templatedata>

Examples[change]

See also[change]