Revision as of 15:29, 5 February 2007 view sourceGoldRingChip (talk | contribs)Administrators135,452 editsNo edit summary← Previous edit | Latest revision as of 18:40, 21 October 2024 view source Reywas92 (talk | contribs)Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers81,184 edits +2024Tag: 2017 wikitext editor | ||
(107 intermediate revisions by 24 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | <noinclude> | ||
{{NavigationBox | |||
== Code only == | |||
⚫ | | |
||
</noinclude>{{Navbox | |||
| Image = | |||
| name = USCongDistState{{USStateNameToAbb |{{{state|<noinclude>Alabama</noinclude>}}}}} | |||
| Category= {{#if:{{{category|}}} | ] | ] }} | |||
⚫ | | title = ] | ||
| Color = | |||
| state = {{{collapse_state|{{{1|}}}}}} | |||
| List = {{ #if:{{{AL|}}} | [[{{{state}}}'s {{ #ifeq: AL | AL | At-large | AL{{ #switch: AL | |||
| bodyclass = hlist | |||
| 1=st | |||
| 2=nd | |||
| 3=rd | |||
| 21=st | |||
| 22=nd | |||
| 23=rd | |||
| 31=st | |||
| 32=nd | |||
| 33=rd | |||
| 41=st | |||
| 42=nd | |||
| 43=rd | |||
| 51=st | |||
| 52=nd | |||
| 53=rd | |||
| th}} }} congressional district<!-- | |||
| list1 = {{#if: {{{current|}}} | | |||
pipe begins after this note | |||
<div class=wrap> | |||
;{{nobold|Current districts}} | |||
{{#ifexpr: {{{current}}} = 1 |: {{ushr|{{{state}}}|AL|At-large}} | {{USCongDistStateList|districts = {{{current}}} | state = {{{state|}}} }} }} | |||
</div> }} | |||
<div class=wrap> | |||
;{{nobold|All districts}}{{#if: {{{territory|}}} | | |||
: {{#ifeq:{{{territory|}}}|yes|{{ushr|{{{state}}} Territory|AL|Territory}}|{{ushr|{{{territory}}}|AL|{{{territory}}}}}}} }}{{#if: {{{AL|}}} | | |||
: {{ushr|{{{state}}}|AL|At-large}} | |||
}}{{#if: {{{districts|}}} | {{USCongDistStateList|districts = {{{districts}}} | state = {{{state|}}} }} }} | |||
⚫ | </div> | ||
* {{#if: {{{obsolete|}}} | ''{{{obsolete}}}'' }} | |||
-->|{{ #if: AL | AL | {{{state}}}'s {{ #ifeq: AL | AL | At-large | AL{{ #switch: AL | |||
| 1=st | |||
| 2=nd | |||
| 3=rd | |||
| 21=st | |||
| 22=nd | |||
| 23=rd | |||
| 31=st | |||
| 32=nd | |||
| 33=rd | |||
| 41=st | |||
| 42=nd | |||
| 43=rd | |||
| 51=st | |||
| 52=nd | |||
| 53=rd | |||
| th}} }} congressional district }}<!-- | |||
;See also | |||
pipe ends before this note | |||
: {{{state}}}'s past and present {{#ifeq:{{{current territory|}}}|yes| |], ], and}} ] | |||
* Recent U.S. House elections in {{{state}}}: ], ], ], ], ], ], ], ], ], ] | |||
-->]] }} {{#if:{{{dists|}}}|{{USCongDistStateList|dists = {{{dists|0}}} | state = {{{state|}}} }} }}<br>{{#if:{{{obsolete|}}}| ''{{{obsolete|}}}''<br>}}'''See also:''' {{{state}}}'s past & present ], ], and ]<br>] - ] - ] - ] - }}<noinclude> | |||
* ] | |||
==Usage== | |||
* ] | |||
* ] | |||
* ] | |||
}}<noinclude> | |||
== Documentation == | |||
<pre> | |||
{{documentation}}<!-- | |||
{{USCongDistState | |||
| state=Delaware | |||
| dists=2 | |||
| AL=y | |||
| obsolete=The 2nd at-large district has been obsolete since 1823. | |||
}} | |||
⚫ | </ |
||
Add cats and interwikis to the /doc subpage, not here! | |||
If the state currently has (or once had but no longer has) an ''At-large'' district, then the field "AL" should be included with non-blank data. | |||
--></noinclude> | |||
If the state has '''never''' had more than one district (e.g. Alaska), then the field "dists" should be blank or 0 (zero) and the field "AL" should be included with non-blank data. | |||
] | |||
] | |||
⚫ | < |
Latest revision as of 18:40, 21 October 2024
Code only
Alabama's congressional districts | |
---|---|
|
Documentation
Template documentation[view] [edit] [history] [purge]This template creates navigation box for a state's congressional districts.
- If the state currently has (or once had but no longer has) an At-large district, then the "AL" field should be included with non-blank data.
- If a current territory (or Federal district) elects non-voting delegates (or Resident Commissioners) but not Senators or Representatives then, the "state" field should be filled with the territory's name. Then the "current territory" field should be set to "yes". For states, the "current territory" field may be left blank or be filled with any data other than "yes".
- If the state has never had more than one district (e.g. Alaska), then
- the "districts" field should be blank or 0 (zero) and
- the "AL" field should be included with non-blank data.
- If the state had (in the past) a territorial district, then the "territory" field should be included with non-blank data. For current territories, the "territory" field must be left blank.
- If the state has a state-specific redistricting article, put non-blank data in the "specific-redist" field to override the default link to the general Redistricting article.
Examples:
{{USCongDistState | state = Illinois | current territory = | districts = 26 | AL = yes | territory = yes | current = 18 | obsolete = The 19th – 26th and At-large districts are obsolete | specific-redist = }}
Illinois's congressional districts | |
---|---|
|
{{USCongDistState | state = Guam | current territory = yes | districts = | AL = yes | territory = | current = | obsolete = | specific-redist = }}
Guam's congressional districts | |
---|---|
|
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Category: