Template:Ushr/doc
From Wikipedia, the free encyclopedia
The template {{Ushr}} expands an abbreviation to a very long name.
Specifically for use in linking to United States congressional districts.
[edit] Parameters
{{ushr |1= |2= |3= }}
- 1
- (or first unnamed parameter) state name.
- 2
- (or second unnamed parameter) district number (for at-large district, type in "AL").
- 3
- (or third unnamed parameter) link text
[edit] Examples
In | Out | |||
---|---|---|---|---|
Whole | {{{1}}} | {{{2}}} | {{{3}}} | |
{{ushr|New Jersey|1|New Jersey's first district}} |
New Jersey | 1 | New Jersey's first district | New Jersey's first district |
The {{ushr|Massachusetts|3|third district}} |
Massachusetts | 3 | third district | The third district |
{{ushr|California|51}} |
California | 51 | (empty) | California's 51st congressional district |
{{ushr|Vermont|AL}} |
Vermont | AL | (empty) | Vermont's At-large congressional district |
{{ushr|New York|1}} |
New York | 1 | (empty) | New York's 1st congressional district |
[edit] Bug: No pipe
When the pipe ({{{3}}}) is blank, then a red-linked {{{3}}} comes out.
What ought to come out is the whole link: {{{1}}}'s {{{2}}}th congressional district]] without the pipe.
Fixed. --Dispenser 18:46, 29 December 2006 (UTC)