Difference between revisions of "Template:Medals"

From Wiki - Scioly.org
Jump to navigation Jump to search
m
(5 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
|border-color=#000
 
|border-color=#000
 
|info-background=#fff
 
|info-background=#fff
|logo-background={{#switch:{{{result|}}}
+
|logo-background={{medals/color|{{{result|}}}}}
  |1= #D4AF37
 
  |2= #C0C0C0
 
  |3=#CD7F32
 
  |4=#B87333
 
  |5=#B87333
 
  |6=#B87333
 
  |#default= }}
 
 
|logo-size=12
 
|logo-size=12
 
|logo-color=#000
 
|logo-color=#000
Line 31: Line 24:
 
<br clear="all" />
 
<br clear="all" />
 
----
 
----
 
+
{{TemplateDocStart}}
 
;Documentation<nowiki>:</nowiki>
 
;Documentation<nowiki>:</nowiki>
 
:<code>{&#123;medals&#125;}</code> is a userbox template for showing off your medals on your userpage.
 
:<code>{&#123;medals&#125;}</code> is a userbox template for showing off your medals on your userpage.

Revision as of 22:54, 28 November 2018

? Medals has received a ? medal in an event at a competition.



Template:Medals - Documentation

Documentation:
{{medals}} is a userbox template for showing off your medals on your userpage.
Usage:
{{medals|result=1|event=Astronomy|competition=Northwest Canada Regionals|name=Woodrow Wilson}}
Appearance:
Gold Woodrow Wilson has received a Gold medal in Astronomy at Northwest Canada Regionals.

Attributes:
result
The rank you earned in the event (1 for gold, 2 for silver, 3 for bronze)
event
The event you received the medal in (wikilinked)
competition
The name of the competition
name
Your name (optional, overrides page name)