Difference between revisions of "Template:Userstate"
Jump to navigation
Jump to search
Jaspattack (talk | contribs) (documenting past attribute) |
Jaspattack (talk | contribs) |
||
Line 7: | Line 7: | ||
|logo-size=12 | |logo-size=12 | ||
|logo-color={{{state-color2|#FFD700}}} | |logo-color={{{state-color2|#FFD700}}} | ||
− | |logo={{{state}}} | + | |logo={{{state|?}}} |
|info-size=8 | |info-size=8 | ||
|info-color=#000 | |info-color=#000 | ||
Line 61: | Line 61: | ||
|WI=[[Wisconsin]] | |WI=[[Wisconsin]] | ||
|WY=[[Wyoming]] | |WY=[[Wyoming]] | ||
− | |#default= | + | |#default=a state}}}}. |
}}<noinclude> | }}<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. |