{{Hujjat ostsahifasi}} {{#ifeq:{{#invoke:High-use|num|x}}|many||{{High-use}}}} {{TOC right|limit=3}} The Medal infobox series of templates allow editors to list an athlete or sportsperson's major medals at the top of their respective biography article, alongside the lead section.

==Usage== The medal infobox consists of two templates: * {{tl|MedalTableTop}} – for starting the table where the other template(s) aren't in an infobox. Do not use {{tl|MedalTableTop}} or {{tl|MedalTop}} inside an infobox. * {{tl|Medal}} – for the several elements within the table

A further template ({{tl|MedalBox}}) is used for listing medals in the middle of the main article text. Do not use {{tl|MedalBox}} inside an infobox.

==Parameters==

===MedalTableTop=== {{MedalTableTop| name = Michael Johnson | image = Michael Johnson at London Olympic Stadium 2010-07 1.JPG | image_size = 180px | alt = Alternative text here | caption = Johnson at the London Olympic Stadium | sport = Men's athletics | country_code = USA | medals = {{Medal|Sport}} }} <pre style="overflow: auto;"> {{MedalTableTop | name = Michael Johnson | image = Michael Johnson at London Olympic Stadium 2010-07 1.JPG | image_size = 180px | alt = Alternative text here | caption = Johnson at the London Olympic Stadium | sport = Men's athletics | country_code = USA | medals = {{Medal|Sport}} }} </pre> {{clear}}

{{MedalTableTop| name = no | sport = Women's basketball | country = {{bkw|POL}} | medals = {{MedalCompetition | European Championships }} {{MedalGold | 1999 Poland | Team competition }} }} <pre style="overflow: auto;"> {{MedalTableTop | name = no | sport = Women's basketball | country = {{bkw|POL}} | medals = {{MedalCompetition | European Championships }} {{MedalGold | 1999 Poland | Team competition }} }} </pre> {{clear}}

; Basic usage : <nowiki>{{MedalTableTop |name= |image= |image_size= |alt= |caption= |sport= |country_code= |medals= }}</nowiki> : <nowiki>{{MedalTableTop |name= |image= |image_size= |alt= |caption= |sport= |country= |medals= }}</nowiki>

* '''name''' – This option adjusts the title that appears at the top of the box. This should typically be the athlete's common name. By default it will display the article title without the disambiguator, for example on Michael Johnson (sprinter) "Michael Johnson" will appear by default. To deactivate the title enter '''no''' in the field. * '''image''' – This give you the option to place a headline image in the infobox. Use just the file name and extension, excluding the namespace prefix, for example: MyImage.jpg not ''File:MyImage.jpg''. * '''image_size''' (or '''imagesize''') – This adjusts the size of the image and must consist of a number followed by "px" (e.g. 150px). The default is 100px. Sizes over 200px are no recommended for typical usage. * '''alt''' – This provides a description of the image for accessibility users or those using weak connections * '''caption''' – This adds a short description to describe the image. Try to be brief, using just a few words. * '''header''' – This optional field can be used to change the text in the opening "Medal record" section. This is useful when the template appears in a section of an article. See Michael Phelps for a working example. * '''sport''' – This option includes the athlete's sport (e.g. Men's swimming) in the first line of the medal record. This replaces the need for <nowiki>{{Medal|Sport}}</nowiki> when an athlete has medalled in only one sport. In cases where an athlete has competed in multiple sports, it is still possible to use the <nowiki>{{Medal|Sport}}</nowiki> template usage to list the different sports. * '''country_code''' – This option uses the country code (e.g. USA = United States, CHN = China, GBR2 = Great Britain) to generate the country that the athlete represents in the second line of the medal record. It will automatically include "the" in front of the country name for the following codes: BAH (the&nbsp;{{BAH}}), GAM (the&nbsp;{{GAM}}), GBR (the&nbsp;{{GBR}}), MHL (the&nbsp;{{MHL}}), NED (the&nbsp;{{NED}}), PHI (the&nbsp;{{PHI}}), SEY (the&nbsp;{{SEY}}), SOL (the&nbsp;{{SOL}}), UAE (the&nbsp;{{UAE}}), URS (the&nbsp;{{URS}}), and USA (the&nbsp;{{USA}}). This replaces the need for <nowiki>{{Medal|Country}}</nowiki> when an athlete has competed for only one country. In cases where an athlete has represented multiple countries, it is still possible to use the <nowiki>{{Medal|Country}}</nowiki> template usage to list the different countries. * '''country''' – May be used in place of '''country_code''' to display the country name using text or templates, such as {{tl2|BRA}} which displays {{BRA}} (same output as with {{para|country_code|BRA}}), {{tl2|bkw|Poland}} which displays {{bkw|POL}} (links to Poland women's national basketball team article), or {{tl2|ih|CAN}} which displays {{ih|CAN}} (links to Canada men's national ice hockey team). Include "the" where appropriate (e.g. the {{tl|BAH}}, the {{tl|GAM}}, the {{tl|GBR}}, the {{tl|MHL}}, the {{tl|NED}}, the {{tl|PHI}}, the {{tl|SEY}}, the {{tl|SOL}}, the {{tl|UAE}}, the {{tl|URS}}, the {{tl|USA}}). This replaces the need for the <nowiki>{{Medal|Country}}</nowiki> template (e.g. <nowiki>{{Medal|Country|{{BRA}}}}</nowiki> or <nowiki>{{Medal|Country|{{bkw|POL}}}}</nowiki>). * '''medals''' – This is the only compulsory field as this is used to place medals and descriptions within the infobox through the {{tl|Medal}} template. To work correctly it must be the last field in the main template.

===MedalBox=== {{MedalBox|title=International medals|sport=Men's beach volleyball|country={{BRA}}|medals= {{Medal|Competition|Olympic Games}} {{Medal|Silver|2012 London|Team}} }} <pre style="overflow: auto;"> {{MedalBox|title=International medals|sport=Men's beach volleyball|country={{BRA}}|medals= {{Medal|Competition|Olympic Games}} {{Medal|Silver|2012 London|Team}} }} </pre> {{clear}}

The MedalBox template has a similar output to the MedalTableTop template, but it is specifically designed for non-infobox usages (i.e. mid-article boxes).

; Basic usage: <nowiki>{{MedalBox |color= |title= |sport= |country= |medals= }}</nowiki>

* '''color''' – This option changes the color of the box header. If omitted, the default is light grey. * '''title''' – This parameter allows you to customise the box title. If omitted, the default is "Medal record". * '''sport''' – This displays the athlete's primary sport (e.g. "Men's beach volleyball"). This option supersedes the "Medal|Sport" template function. * '''country''' – This displays the athlete's primary country or team using text or a template, such as {{tl2|BRA}} which displays {{BRA}} (links to Brazil article), {{tl2|bkw|Poland}} which displays {{bkw|POL}} (links to Poland women's national basketball team article), or {{tl2|ih|CAN}} which displays {{ih|CAN}} (links to Canada men's national ice hockey team). Include "the" where appropriate (e.g. the {{tl|BAH}}, the {{tl|GAM}}, the {{tl|GBR}}, the {{tl|MHL}}, the {{tl|NED}}, the {{tl|PHI}}, the {{tl|SEY}}, the {{tl|SOL}}, the {{tl|UAE}}, the {{tl|URS}}, the {{tl|USA}}). This replaces the need for the <nowiki>{{Medal|Country}}</nowiki> template (e.g. <nowiki>{{Medal|Country|{{BRA}}}}</nowiki> or <nowiki>{{Medal|Country|{{bkw|POL}}}}</nowiki>). * '''medals''' – This is the only compulsory field as this is used to place medals and descriptions within the box through the {{tl|Medal}} template. To work correctly it must be the last field in the main template.

===Medal=== {{MedalTableTop|name=no|sport=Men's athletics|country_code=USA|medals= {{Medal|Competition|Olympic Games}} {{Medal|Gold|2012 TEST|100 m}} {{Medal|G|2012 TEST|100 m}} {{Medal|Silver|2012 TEST|100 m}} {{Medal|S|2012 TEST|100 m}} {{Medal|Bronze|2012 TEST|100 m}} {{Medal|B|2012 TEST|100 m}} {{Medal|Winner|2012 TEST|100 m}} {{Medal|W|2012 TEST|100 m}} {{Medal|Runnerup|2012 TEST|100 m}} {{Medal|Runner-up|2012 TEST|100 m}} {{Medal|RU|2012 TEST|100 m}} {{Medal|First|2012 TEST|100 m}} {{Medal|1st|2012 TEST|100 m}} {{Medal|Second|2012 TEST|100 m}} {{Medal|2nd|2012 TEST|100 m}} {{Medal|Third|2012 TEST|100 m}} {{Medal|3rd|2012 TEST|100 m}} {{Medal|Disqualified|2012 TEST|100 m}} {{Medal|DQ|2012 TEST|100 m}} {{Medal|TrueSpirit|2012}} {{Medal|PdC|2012}} {{Medal|Sport|Men's bobsled}} {{Medal|Country|{{JAM}}}} {{Medal|Comp|World Bobsled Championships}} {{Medal|DQ|2013 TEST|Bobsled}} }} <pre style="overflow: auto;"> {{MedalTableTop|name=no|sport=Men's athletics|country_code=USA|medals= {{Medal|Competition|Olympic Games}} {{Medal|Gold|2012 TEST|100 m}} {{Medal|G|2012 TEST|100 m}} {{Medal|Silver|2012 TEST|100 m}} {{Medal|S|2012 TEST|100 m}} {{Medal|Bronze|2012 TEST|100 m}} {{Medal|B|2012 TEST|100 m}} {{Medal|Winner|2012 TEST|100 m}} {{Medal|W|2012 TEST|100 m}} {{Medal|Runnerup|2012 TEST|100 m}} {{Medal|Runner-up|2012 TEST|100 m}} {{Medal|RU|2012 TEST|100 m}} {{Medal|First|2012 TEST|100 m}} {{Medal|1st|2012 TEST|100 m}} {{Medal|Second|2012 TEST|100 m}} {{Medal|2nd|2012 TEST|100 m}} {{Medal|Third|2012 TEST|100 m}} {{Medal|3rd|2012 TEST|100 m}} {{Medal|Disqualified|2012 TEST|100 m}} {{Medal|DQ|2012 TEST|100 m}} {{Medal|TrueSpirit|2012}} {{Medal|PdC|2012}} {{Medal|Sport|Men's bobsled}} {{Medal|Country|{{JAM}}}} {{Medal|Comp|World Bobsled Championships}} {{Medal|DQ|2013 TEST|Bobsled}} }} </pre>

The Medal template is a multi-purpose one which allows for all varieties of entries within the medal table.

; Basic usage : <nowiki>{{Medal|TYPE|FIELD1|FIELD2}}</nowiki>

There are four major types: * '''Competition''' – This states the general competition at which the following medals were achieved (e.g. Olympic Games, Pan Pacific Swimming Championships) * '''Medal performances''' – There are ten types of medal performances. These contain two separate fields for the year of the competition and its location (e.g. 2008 Beijing, 2010 Delhi) and the medalling event or category (e.g. pole vault, 56 kg, 50 m freestyle). The medal types are (with shortcut in brackets): ** '''Gold''' (G) ** '''Silver''' (S) ** '''Bronze''' (B) ** '''Winner''' (W) ** '''Runnerup''' (RU) ** '''First''' (1st) ** '''Second''' (2nd) ** '''Third''' (3rd) ** '''Disqualified''' (DQ) ** '''TrueSpirit''' (PdC)

==== Disqualified ====

{{MedalTableTop|name=no|medals= {{Medal|Disqualified|2012 TEST|100 m}}<ref>Reason for disqualification</ref> }} <pre style="overflow: auto;"> {{MedalTableTop|name=no|medals= {{Medal|Disqualified|2012 TEST|100 m}}<ref>Reason for disqualification</ref> }} </pre>

For the disqualified medal template, it is possible to create a reference directly after the template to explain the reason for disqualification. This can be particularly useful in the case of relay runners disqualified through no fault of their own, due to doping by team mates for example.

{{reflist}}

==== TrueSpirit ====

{{MedalTableTop|name=no|medals= {{Medal|TrueSpirit|2012}} }} <pre style="overflow: auto;"> {{MedalTableTop|name=no|medals= {{Medal|TrueSpirit|2012}} }} </pre>

The final medal performances type is used for the Pierre de Coubertin medal. This has only one extra field for the year it was awarded.

==== Multiple countries/sports ====

{{MedalTableTop|name=no|sport=Men's road bicycle racing|country_code=GBR2|medals= {{Medal|Comp|Olympic Games}} {{Medal|Bronze|2012 London|Event}} {{Medal|Sport|Men's triathlon}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|Commonwealth Games}} {{Medal|Gold|2014 Glasgow|Event}} }} <pre style="overflow: auto;"> {{MedalTableTop|name=no|sport=Men's road bicycle racing|country_code=GBR2|medals= {{Medal|Comp|Olympic Games}} {{Medal|Bronze|2012 London|Event}} {{Medal|Sport|Men's triathlon}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|Commonwealth Games}} {{Medal|Gold|2014 Glasgow|Event}} }} </pre> {{-}}

{{MedalBox|sport=Men's road bicycle racing|country={{GBR2}}|medals= {{Medal|Comp|Olympic Games}} {{Medal|Bronze|2012 London|Event}} {{Medal|Sport|Men's triathlon}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|Commonwealth Games}} {{Medal|Gold|2014 Glasgow|Event}} }} <pre style="overflow: auto;"> {{MedalBox|sport=Men's road bicycle racing|country={{GBR2}}|medals= {{Medal|Comp|Olympic Games}} {{Medal|Bronze|2012 London|Event}} {{Medal|Sport|Men's triathlon}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|Commonwealth Games}} {{Medal|Gold|2014 Glasgow|Event}} }} </pre> {{-}}

Where an athlete has competed for multiple countries or in multiple sports it will be necessary to use the '''Country''' or '''Sport''' Medal types, in addition to the main sport and country_code listings in the MedalTableTop template

* '''Relevant country (or team)''' – This is usually the first section showing the person's relevant country (or team). ** '''Country''' – Enter the country's three letter code in curly brackets (e.g. {{tl|CHN}} ), including "the" where appropriate (e.g. the {{tl|USA}}, the {{tl|URS}}, the {{tl|MHL}}, the {{tl|UAE}}, the {{tl|GBR}}, the {{tl|BAH}}, the {{tl|NED}}, the {{tl|PHI}}, the {{tl|SEY}}, the {{tl|GAM}}, the {{tl|SOL}}). In rare cases the correct input may be something else (e.g. a team name). ** '''Independent''' - This is used for independent athletes. * '''Sport''' – This states the sport that the athlete is competing in (e.g. Women's swimming)

== Examples ==

=== MedalTableTop === For competitors who have competed in the same sport for the same country, the templates should be ordered ''Sport'', ''Country'', ''Competition1'', ''Award'', ''Competition2'', ''Award'' and so on.

{{MedalTableTop|name=Athlete name |image=Example-serious.jpg |image_size=150px |alt=Alt text for image |sport=Men's athletics |country_code=AUS |medals= {{Medal|Competition|Olympic Games}} {{Medal|Gold | 2000 Sydney | 100 m }} {{Medal|Competition|Commonwealth Games}} {{Medal|Silver | 2006 Melbourne | 200 m }} {{Medal|Bronze | 2006 Melbourne | 400 m }} }} <pre style="overflow: auto;"> {{MedalTableTop |name=Athlete name |image=Example-serious.jpg |image_size=150px |alt=Alt text for image |sport=Men's athletics |country_code=AUS |medals= {{Medal|Competition|Olympic Games}} {{Medal|Gold|2000 Sydney | 100 m }} {{Medal|Competition|Commonwealth Games}} {{Medal|Silver|2006 Melbourne | 200 m }} {{Medal|Bronze|2006 Melbourne | 400 m }} }} </pre> {{-}}

{{hidden begin| title = Example: Competitor who has won medals in different sports, competing for the same country | titlestyle = background: #B0C4DE; border: 1px solid #B0C4DE; text-align:center; | bodystyle = background: #F9F9F9; padding: 0.5em 1em 0em 1em; border: 1px solid #B0C4DE; }} {{MedalTableTop|country_code=GBR2 |medals= {{Medal|Sport| Women's rowing }} {{Medal|Competition| Olympic Games }} {{Medal|Silver| 2004 Athens | Quadruple sculls }} {{Medal|Sport| Women's track cycling }} {{Medal|Competition| Olympic Games }} {{Medal|Gold| 2008 Beijing | Individual pursuit }} }} <pre style="overflow: auto;"> {{MedalTableTop |country_code=GBR2 |medals= {{Medal|Sport| Women's rowing }} {{Medal|Competition| Olympic Games }} {{Medal|Silver| 2004 Athens | Quadruple sculls }} {{Medal|Sport| Women's track cycling }} {{Medal|Competition| Olympic Games }} {{Medal|Gold| 2008 Beijing | Individual pursuit }} }} </pre> For competitors who have won medals in different sports, competing for the same country, the templates should be ordered ''Country'', ''Sport1'', ''Competition'', ''Award'', ''Sport2'', ''Competition'', ''Award'' and so on. The example shown is based on Rebecca Romero.{{clear}} {{hidden end}}

{{hidden begin| title = Example: Competitor who has won medals in the same sport, competing for different countries | titlestyle = background: #B0C4DE; border: 1px solid #B0C4DE; text-align:center; | bodystyle = background: #F9F9F9; padding: 0.5em 1em 0em 1em; border: 1px solid #B0C4DE; }} {{MedalTableTop|sport=Women's badminton |medals= {{Medal|Competition| Olympic Games }} {{Medal|Country | {{INA}} }} {{Medal|Silver| 1996 Atlanta | Singles }} {{Medal|Country | the {{NED}} }} {{Medal|Silver| 2004 Athens | Singles }} }} <pre style="overflow: auto;"> {{MedalTableTop |sport=Women's badminton |medals= {{Medal|Competition| Olympic Games }} {{Medal|Country | {{INA}} }} {{Medal|Silver| 1996 Atlanta | Singles }} {{Medal|Country | the {{NED}} }} {{Medal|Silver| 2004 Athens | Singles }} }} </pre> For competitors who have won medals in the same sport at the same competition, competing for different countries, the templates should be ordered ''Sport'', ''Competition'', ''Country1'', ''Award'', ''Country2'', ''Award'' and so on. The example shown is from Mia Audina. {{clear}} {{MedalTableTop|sport=Women's badminton |medals= {{Medal|Country | {{DEN}} }} {{Medal|Competition| Olympic Games }} {{Medal|Silver| 1996 Atlanta | Singles }} {{Medal|Competition|European Championships }} {{Medal|Bronze| 2002 Malmö | Singles }} {{Medal|Country| {{SWE}} }} {{Medal|Competition| Olympic Games }} {{Medal|Silver| 2004 Athens | Singles }} }} <pre style="overflow: auto;"> {{MedalTableTop |sport=Women's badminton |medals= {{Medal|Country | {{DEN}} }} {{Medal|Competition| Olympic Games }} {{Medal|Silver| 1996 Atlanta | Singles }} {{Medal|Competition|European Championships }} {{Medal|Bronze| 2002 Malmö | Singles }} {{Medal|Country| {{SWE}} }} {{Medal|Competition| Olympic Games }} {{Medal|Silver| 2004 Athens | Singles }} }} </pre> For competitors who have won medals in the same sport at different competitions, competing for different countries, the templates should be ordered ''Sport'', ''Country1'', ''Competition1'', ''Award'', ''Competition2'', ''Award'', ''Country2'', ''Competition1'', ''Award'' and so on.{{clear}} {{hidden end}}

{{hidden begin| title = Example: Medal table embedded within an infobox | titlestyle = background: #B0C4DE; border: 1px solid #B0C4DE; text-align:center; | bodystyle = background: #F9F9F9; padding: 0.5em 1em 0em 1em; border: 1px solid #B0C4DE; }} {{Infobox swimmer| name = Allison Schmitt | image = <!-- Only free-content images are allowed for depicting living people -- see WP:NONFREE. --> | alt = | caption = | full_name = Allison Rodgers Schmitt | nicknames = "Schmitty", "Al", "Allie" | national_team = {{USA}} | strokes = Freestyle | club = Ann Arbor Swim Club,<br />Club Wolverine,<br />Athens Bulldog Swim Club,<br />North Baltimore Aquatic Club | collegeteam = University of Georgia | birth_date = {{Birth date and age|1990|6|7|mf=y}} | birth_place = Pittsburgh, Pennsylvania, U.S. | death_date = | death_place = | height = 6 ft 1 in | weight = 163 lb | show-medals = yes | medaltemplates = {{MedalSport | Women's swimming }} {{MedalCountry | the United States }} {{MedalCount | Olympic Games | 3 | 1 | 2 | World Championships (LC) | 1 | 2 | 0 | World Championships (SC) | 3 | 0 | 0 | Pan Pacific Championships | 2 | 0 | 0 | total = yes }} {{MedalCompetition | Olympic Games }} {{MedalGold | 2012 London | 200 m freestyle }} {{MedalGold | 2012 London | 4×200 m freestyle }} {{MedalGold | 2012 London | 4×100 m medley }} {{MedalSilver | 2012 London | 400 m freestyle }} {{MedalBronze | 2008 Beijing | 4×200 m freestyle }} {{MedalBronze | 2012 London | 4×100 m freestyle }} {{MedalCompetition | World Championships (LC) }} {{MedalGold | 2011 Shanghai | 4×200 m freestyle }} {{MedalSilver | 2009 Rome | 200 m freestyle }} {{MedalSilver | 2009 Rome | 4×200 m freestyle }} {{MedalCompetition | World Championships (SC) }} {{MedalGold | 2012 Istanbul | 200 m freestyle }} {{MedalGold | 2012 Istanbul | 4×100 m freestyle }} {{MedalGold | 2012 Istanbul | 4×200 m freestyle }} {{MedalCompetition | Pan Pacific Championships }} {{MedalGold | 2010 Irvine | 200 m freestyle }} {{MedalGold | 2010 Irvine | 4×200 m freestyle }} }} <pre style="overflow: auto;"> {{Infobox swimmer | name = Allison Schmitt | image = <!-- Only free-content images are allowed for depicting living people -- see WP:NONFREE. --> | alt = | caption = | full_name = Allison Rodgers Schmitt | nicknames = "Schmitty", "Al", "Allie" | national_team = {{USA}} | strokes = Freestyle | club = Ann Arbor Swim Club,<br />Club Wolverine,<br />Athens Bulldog Swim Club,<br />North Baltimore Aquatic Club | collegeteam = University of Georgia | birth_date = {{Birth date and age|1990|6|7|mf=y}} | birth_place = Pittsburgh, Pennsylvania, U.S. | death_date = | death_place = | height = 6 ft 1 in | weight = 163 lb | show-medals = yes | medaltemplates = {{MedalSport | Women's swimming }} {{MedalCountry | the United States }} {{MedalCount | Olympic Games | 3 | 1 | 2 | World Championships (LC) | 1 | 2 | 0 | World Championships (SC) | 3 | 0 | 0 | Pan Pacific Championships | 2 | 0 | 0 | total = yes }} {{MedalCompetition | Olympic Games }} {{MedalGold | 2012 London | 200 m freestyle }} {{MedalGold | 2012 London | 4×200 m freestyle }} {{MedalGold | 2012 London | 4×100 m medley }} {{MedalSilver | 2012 London | 400 m freestyle }} {{MedalBronze | 2008 Beijing | 4×200 m freestyle }} {{MedalBronze | 2012 London | 4×100 m freestyle }} {{MedalCompetition | World Championships (LC) }} {{MedalGold | 2011 Shanghai | 4×200 m freestyle }} {{MedalSilver | 2009 Rome | 200 m freestyle }} {{MedalSilver | 2009 Rome | 4×200 m freestyle }} {{MedalCompetition | World Championships (SC) }} {{MedalGold | 2012 Istanbul | 200 m freestyle }} {{MedalGold | 2012 Istanbul | 4×100 m freestyle }} {{MedalGold | 2012 Istanbul | 4×200 m freestyle }} {{MedalCompetition | Pan Pacific Championships }} {{MedalGold | 2010 Irvine | 200 m freestyle }} {{MedalGold | 2010 Irvine | 4×200 m freestyle }} }} </pre> For use within Infobox basketball biography, Infobox sportsperson, Infobox swimmer, Infobox track athlete, and other infobox template that support an "embed" function for the medal table. Formatting for the medal table embedded within an infobox generally follows the established formatting of the other examples provided, but duplicate wiki links for the sport name ("MedalSport") and represented country ("MedalCountry") may be eliminated within the embedded medal table.{{clear}} {{hidden end}}

=== MedalBox === Here is a basic demonstration of the MedalBox template usage: {{MedalBox|title=International medals|sport=Men's ice hockey|country={{ih|CAN}}|medals= {{Medal|Competition|World Junior Championships}} {{Medal|Gold|2005 Grand Forks|}} {{Medal|Silver|2004 Helsinki|}} {{Medal|Competition|World Junior U18 Championships}} {{Medal|Gold|2003 Yaroslavl|}} {{Medal|Competition|Eight Nations Cup}} {{Medal|Gold|2002 Slovakia|}} }} <pre style="overflow: auto;"> {{MedalBox|title=International medals|sport=Men's ice hockey|country={{ih|CAN}}|medals= {{Medal|Competition|World Junior Championships}} {{Medal|Gold|2005 Grand Forks|}} {{Medal|Silver|2004 Helsinki|}} {{Medal|Competition|World Junior U18 Championships}} {{Medal|Gold|2003 Yaroslavl|}} {{Medal|Competition|Eight Nations Cup}} {{Medal|Gold|2002 Slovakia|}} }} </pre> {{-}}

== Historical templates == {{hatnote|The section contains TemplateData that is invisible except when viewed on the page it refers to.}}

; Deprecated TableTop templates : {{tlx|MedalTop}} and {{tlx|MedalTopPic}} – use {{tlx|MedalTableTop}} with {{tlx|Medal|Competition|Olympic Games}} : <s>{{tlx|MedalTop3}}</s> – (for Paralympic Games) use {{tlx|MedalTableTop}} : <s>{{tlx|MedalTableTopPic}}</s> – use {{tlx|MedalTableTop}} with the same parameters

; Deprecated Competition templates : {{tlx|MedalOlympics}} – use {{tlx|Medal|Competition|Olympic Games}} : <s>{{tlx|MedalParalympic}}</s> – use {{tlx|Medal|Competition|Paralympic Games}} : {{tlx|MedalWorldChampionships}} – use {{tlx|Medal|Competition|World Championships}} : {{tlx|MedalEuropeanChampionships}} – use {{tlx|Medal|Competition|European Championships}}

; Deprecated Medal templates : {{tlx|MedalGold}} : {{tlx|MedalSilver}} : {{tlx|MedalBronze}}<!-- The below causes TemplateData to be generated only for the appropriate pages -->{{#switch:{{FULLPAGENAME}}|Template:MedalBronze|Template:MedalSilver|Template:MedalGold={{collapse|1={{Format TemplateData|JSON={ "description": "The template {{PAGENAME}} is depreciated; you should use {{tl|Medal}} instead. This template is just a shortcut to it.", "params": { "1": { "label": "First field", "description": "Free-form text describing the event; appears in a table cell", "type": "line" }, "2": { "label": "Second field", "description": "Free-form text describing the event; appears in a table cell", "type": "line" } } } }}|2=TemplateData for MedalGold, MedalSilver and MedalBronze.}}}} : For competitions differing from Gold, Silver and Bronze terminology : {{tlx|MedalW}}<br /> : {{tlx|MedalRU}}<br />

; Alias for {{tlp|Medal|Sport|''text''}} : {{tlx|MedalSport}} – Use {{tlx|Medal|Sport|''text''}}.<!-- The below causes TemplateData to be generated only for the appropriate pages -->{{#switch:{{FULLPAGENAME}}|Template:MedalSport={{collapse|1={{Format TemplateData|JSON={ "description": "The template {{PAGENAME}} is no longer recommended; you may use &#123;&#123;Medal&#124;Sport&#124;''name of sport''&#125;&#125; instead. They have the same effect.", "params": { "1": { "label": "Name of sport", "description": "The name of the sport; may contain wikilinks.", "example": "Men's bobsled", "type": "line" } } } }}|2=TemplateData for MedalSport.}}}}

; Deprecated closing template : {{tlx|MedalBottom}} – table now automatically closes by using the |medals= parameter and moving two curly brackets to the end of the templates. <includeonly>{{Sandbox other||

}} </includeonly> <noinclude>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata -->

}}</noinclude>