Templat:Ushr
Dari Wikipedia bahasa Melayu
[[{{{1}}}'s At-large th congressional district|{{{3}}}]]
|
[Sunting] Description
This template expands an abbreviation to a very long name.
Specifically for use in linking to United States congressional districts.
[Sunting] How to use
{{ushr | {{{1}}} | {{{2}}} | {{{3}}} }}
- {{{1}}}: state name.
- {{{2}}}: district number (for at-large district, type in "AL").
- {{{3}}}: piped link
[Sunting] Examples
In | Out | |||
---|---|---|---|---|
Whole | {{{1}}} | {{{2}}} | {{{3}}} | |
{{subst:ushr|New Jersey|1|New Jersey's first district}} | New Jersey | 1 | New Jersey's first district | New Jersey's first district |
The {{subst:ushr|Massachusetts|3|third district}} | Massachusetts | 3 | third district | The third district |
{{subst:ushr|California|51|}} | California | 51 | (pipe blank) | California's 51st congressional district |
{{subst:ushr|Vermont|AL|}} | Vermont | AL | (pipe blank) | Vermont's At-large congressional district |
{{subst:ushr|New York|1}} | New York | 1 | (no pipe) | {{{3}}} |
[Sunting] 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.