Misplaced Pages

Template:USCongDistState: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
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 ==
| Title = ]
</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==
This template creates navigation box for a state's ]. * ]
* ]
* ]
}}<noinclude>


== Documentation ==
<pre>
{{documentation}}<!--
{{USCongDistState
| state=Delaware
| dists=2
| AL=y
| obsolete=The 2nd at-large district has been obsolete since 1823.
}}
</pre>


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.
]
]
</noinclude>

Latest revision as of 18:40, 21 October 2024

Code only

Alabama's congressional districts
All districts
See also
{{{state}}}'s past and present ], ], and ]
  • Recent U.S. House elections in {{{state}}}: ], ], ], ], ], ], ], ], ], ]

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
Current districts
1st
2nd
3rd
4th
5th
6th
7th
8th
9th
10th
11th
12th
13th
14th
15th
16th
17th
18th
All districts
Territory
At-large
1st
2nd
3rd
4th
5th
6th
7th
8th
9th
10th
11th
12th
13th
14th
15th
16th
17th
18th
19th
20th
21st
22nd
23rd
24th
25th
26th
  • The 19th – 26th and At-large districts are obsolete
See also
Illinois's past and present representatives, senators, and delegations
{{USCongDistState
| state             = Guam
| current territory = yes
| districts         =
| AL                = yes
| territory         =
| current           =
| obsolete          =
| specific-redist   =
}}
Guam's congressional districts
All districts
At-large
See also
Guam's past and present delegations
The above documentation is transcluded from Template:USCongDistState/doc. (edit | history)
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: