Difference between revisions of "Template:All states"

From QBWiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>Alabama
+
<onlyinclude>{{#vardefine:states|Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming}}{{#if:{{{1|}}}|{{#explode:{{#var:states}}|,|{{{1}}}}}|{{#var:states}}}}</onlyinclude>
Alaska
 
Arizona
 
Arkansas
 
California
 
Colorado
 
Connecticut
 
Delaware
 
Florida
 
Georgia
 
Hawaii
 
Idaho
 
Illinois
 
Indiana
 
Iowa
 
Kansas
 
Kentucky
 
Louisiana
 
Maine
 
Maryland
 
Massachusetts
 
Michigan
 
Minnesota
 
Mississippi
 
Missouri
 
Montana
 
Nebraska
 
Nevada
 
New Hampshire
 
New Jersey
 
New Mexico
 
New York
 
North Carolina
 
North Dakota
 
Ohio
 
Oklahoma
 
Oregon
 
Pennsylvania
 
Rhode Island
 
South Carolina
 
South Dakota
 
Tennessee
 
Texas
 
Utah
 
Vermont
 
Virginia
 
Washington
 
West Virginia
 
Wisconsin
 
Wyoming</onlyinclude>
 
 
<noinclude>
 
<noinclude>
List of all states in alphabetical order for re-use in templates etc.
+
Comma delimited list of all states in alphabetical order for re-use in templates etc.
 +
 
 +
If no parameters are passed in, return the full list - otherwise, return the n-th state.
 +
 
 +
See also: [[Template:All states and DC]]
 +
 
 +
{|class="wikitable"
 +
! Input
 +
! Output
 +
|-
 +
|<pre>
 +
{{All states}}
 +
</pre>
 +
|{{All states}}
 +
|-
 +
|<pre>
 +
{{All states|12}}
 +
</pre>
 +
|{{All states|12}}
 +
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 14:18, 20 June 2022

Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming

Comma delimited list of all states in alphabetical order for re-use in templates etc.

If no parameters are passed in, return the full list - otherwise, return the n-th state.

See also: Template:All states and DC

Input Output
{{All states}}
Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming
{{All states|12}}
Illinois