Difference between revisions of "Template:Userstate"

From Scioly.org
Jump to: navigation, search
(documenting past attribute)
 
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}}
<br clear="all" />
 
;Documentation<nowiki>:</nowiki>
 
:<code>{&#123;userstate&#125;}</code> is a userbox template for showing off where you're from.
 
;Usage<nowiki>:</nowiki>
 
:<code>{&#123;userstate|state=''AZ''|region=''Southeast Pennsylvania''|name=''Woodrow Wilson''|past=0&#125;}</code>
 
;Appearance<nowiki>:</nowiki>
 
:{{template:userstate|state=AZ|region=Southeast Pennsylvania|name=Woodrow Wilson|past=0}}<br clear="all" />
 
;Attributes<nowiki>:</nowiki>
 
:;state:The postal abbreviation of the state you are from (use <code>NCA</code> for Northern California and <code>SCA</code> for Southern California)
 
:;region:The region you competing (if not applicable, leave blank)
 
:;name:Your name (optional, overrides page name)
 
:;past:If you competed in this region in the past, then set this value to 1. If you currently compete in this region, set it to 0.
 
 
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:User Templates]]
 
[[Category:User Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:43, 21 June 2020

? Userstate competes or competed in a state.


Template documentation[view] [edit] [history] [purge]

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 applicable
name - the name of the user that competes in this state, overrides the page name
past - 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 left
state-color2 - the color of the state abbreviation, seen to the left

Examples

For more examples of userboxes that use this template, see Category:User Templates.

Code Result
{{Userstate
|state=MO}}
MO Userstate competes or competed in Missouri.
{{Userstate
|state=AZ
|region=Southeast
|name=Woodrow Wilson
|past=0}}
AZ Woodrow Wilson competes in Southeast Arizona.
{{Userstate
|state=NCA
|region=the San Diego region of
|past=1}}
NCA Userstate competed in the San Diego region of California (North).
{{Userstate
|state=DE
|name=James K. Polk
|past=1
|state-color1=#94e0b5
|state-color2=#0f9171}}
DE James K. Polk competed in Delaware.