Difference between revisions of "Template:Userstate"
Jump to navigation
Jump to search
Robotman09 (talk | contribs) |
Jaspattack (talk | contribs) |
||
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{box | |
− | + | |float=left | |
− | | | + | |border-width=1 |
− | + | |border-color=#000 | |
− | + | |info-background=#fff | |
− | + | |logo-background={{{state-color1|#002A86}}} | |
− | + | |logo-size=12 | |
− | + | |logo-color={{{state-color2|#FFD700}}} | |
+ | |logo={{{state|?}}} | ||
+ | |info-size=8 | ||
+ | |info-color=#000 | ||
+ | |info-text={{{name|{{PAGENAME}}}}} {{#if:{{{past|}}}|{{#ifeq:{{{past|}}}|1|competed|competes}}|competes or competed}} in {{#if:{{{region|}}}| {{{region}}}|}} {{#if:#no:{{{|region}}}|{{#switch:{{{state|}}} | ||
+ | |AL=[[Alabama]] | ||
+ | |AK=[[Alaska]] | ||
+ | |AZ=[[Arizona]] | ||
+ | |AR=[[Arkansas]] | ||
+ | |NCA=[[California (North)]] | ||
+ | |SCA=[[California (South)]] | ||
+ | |CO=[[Colorado]] | ||
+ | |CT=[[Connecticut]] | ||
+ | |DE=[[Delaware]] | ||
+ | |FL=[[Florida]] | ||
+ | |GA=[[Georgia]] | ||
+ | |HI=[[Hawaii]] | ||
+ | |ID=[[Idaho]] | ||
+ | |IL=[[Illinois]] | ||
+ | |IN=[[Indiana]] | ||
+ | |IA=[[Iowa]] | ||
+ | |KS=[[Kansas]] | ||
+ | |KY=[[Kentucky]] | ||
+ | |LA=[[Louisiana]] | ||
+ | |ME=[[Maine]] | ||
+ | |MA=[[Massachusetts]] | ||
+ | |MI=[[Michigan]] | ||
+ | |MD=[[Maryland]] | ||
+ | |MN=[[Minnesota]] | ||
+ | |MS=[[Mississippi]] | ||
+ | |MO=[[Missouri]] | ||
+ | |MT=[[Montana]] | ||
+ | |NE=[[Nebraska]] | ||
+ | |NV=[[Nevada]] | ||
+ | |NH=[[New Hampshire]] | ||
+ | |NY=[[New York]] | ||
+ | |NJ=[[New Jersey]] | ||
+ | |NM=[[New Mexico]] | ||
+ | |NC=[[North Carolina]] | ||
+ | |ND=[[North Dakota]] | ||
+ | |OR=[[Oregon]] | ||
+ | |OK=[[Oklahoma]] | ||
+ | |OH=[[Ohio]] | ||
+ | |PA=[[Pennsylvania]] | ||
+ | |SC=[[South Carolina]] | ||
+ | |SD=[[South Dakota]] | ||
+ | |TN=[[Tennessee]] | ||
+ | |TX=[[Texas]] | ||
+ | |UT=[[Utah]] | ||
+ | |VT=[[Vermont]] | ||
+ | |VA=[[Virginia]] | ||
+ | |WA=[[Washington]] | ||
+ | |WV=[[West Virginia]] | ||
+ | |WI=[[Wisconsin]] | ||
+ | |WY=[[Wyoming]] | ||
+ | |#default=a state}}}}. | ||
+ | }}<noinclude> | ||
+ | {{clear}} | ||
+ | {{Documentation}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:User Templates]] | [[Category:User Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 01:43, 21 June 2020
? | Userstate competes or competed in a state. |
The Userstate template is a template used to generate a userbox that shows a user's state and region. The only mandatory parameter is state
- all the rest are optional.
Parameters
Information
state
- the abbreviation of the desired state (use NCA for Northern California and SCA for Southern California)region
- the region competed in, if applicablename
- the name of the user that competes in this state, overrides the page namepast
- set to 1 if the user no longer competes in this state, set to 0 if the user still competes in this state
Colors
state-color1
- the background color of the state abbreviation, seen to the leftstate-color2
- the color of the state abbreviation, seen to the left
Examples
Code | Result | ||
---|---|---|---|
{{Userstate |state=MO}} |
| ||
{{Userstate |state=AZ |region=Southeast |name=Woodrow Wilson |past=0}} |
| ||
{{Userstate |state=NCA |region=the San Diego region of |past=1}} |
| ||
{{Userstate |state=DE |name=James K. Polk |past=1 |state-color1=#94e0b5 |state-color2=#0f9171}} |
|
The above documentation is transcluded from Template:Userstate/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |