Jump to content

Template:Medals: Difference between revisions

From Wiki - Scioly.org
adding support for year parameter, updating documentation
m Removed `float` parameter definition.
 
Line 1: Line 1:
{{box
{{box
|float=left
|border-width=1
|border-width=1
|border-color=#000
|border-color=#000

Latest revision as of 16:45, 13 October 2020

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

The Medals template is a userbox template for displaying medals on a userpage.

Parameters

result - the ranking attained in the form of an integer
event - the event that the user received a medal for
competition - the competition the user received the medal at
name optional - the desired name, overrides page name
year optional - the year in which the medal was received

Examples

Code Result
{{medals
|result=1
|event=Astronomy
|competition=Northwest Canada Regionals
|name=Woodrow Wilson
|year=1973}}
Gold Woodrow Wilson has received a Gold medal in Astronomy at Northwest Canada Regionals in 1973.
{{medals
|result=3
|event=Designer Genes
|competition=the National Tournament
|year=2019}}
Bronze Medals has received a Bronze medal in Designer Genes at the National Tournament in 2019.