Difference between revisions of "Template:Userstate"

From Scioly.org
Jump to: navigation, search
(documenting past attribute)
Line 69: Line 69:
 
:<code>{&#123;userstate&#125;}</code> is a userbox template for showing off where you're from.
 
:<code>{&#123;userstate&#125;}</code> is a userbox template for showing off where you're from.
 
;Usage<nowiki>:</nowiki>
 
;Usage<nowiki>:</nowiki>
:<code>{&#123;userstate|state=''AZ''|region=''Southeast Pennsylvania''|name=''Woodrow Wilson''&#125;}</code>
+
:<code>{&#123;userstate|state=''AZ''|region=''Southeast Pennsylvania''|name=''Woodrow Wilson''|past=0&#125;}</code>
 
;Appearance<nowiki>:</nowiki>
 
;Appearance<nowiki>:</nowiki>
:{{template:userstate|state=AZ|region=Southeast Pennsylvania|name=Woodrow Wilson}}<br clear="all" />
+
:{{template:userstate|state=AZ|region=Southeast Pennsylvania|name=Woodrow Wilson|past=0}}<br clear="all" />
 
;Attributes<nowiki>:</nowiki>
 
;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)
 
:;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)
 
:;region:The region you competing (if not applicable, leave blank)
 
:;name:Your name (optional, overrides page name)
 
:;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>

Revision as of 22:00, 27 February 2020

{{{state}}} Userstate competes or competed in  ?.


Documentation:
{{userstate}} is a userbox template for showing off where you're from.
Usage:
{{userstate|state=AZ|region=Southeast Pennsylvania|name=Woodrow Wilson|past=0}}
Appearance:
AZ Woodrow Wilson competes in Southeast Pennsylvania Arizona.


Attributes:
state
The postal abbreviation of the state you are from (use NCA for Northern California and SCA 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.