Template:Medal templates documentation
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:
- {{MedalTableTop}} – for starting the table where the other template(s) aren't in an infobox. Do not use {{MedalTableTop}} or {{MedalTop}} inside an infobox.
- {{Medal}} – for the several elements within the table
A further template ({{MedalBox}}) is used for listing medals in the middle of the main article text. Do not use {{MedalBox}} inside an infobox.
Parameters
MedalTableTop
Johnson at the London Olympic Stadium | ||
Medal record | ||
---|---|---|
Men's athletics | ||
Representing the ![]() | ||
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Johnson at the London Olympic Stadium | ||
Medal record | ||
---|---|---|
Men's athletics | ||
Representing the ![]() | ||
</syntaxhighlight>
Medal record | ||
---|---|---|
Women's basketball | ||
Representing ![]() | ||
European Championships | ||
![]() |
1999 Poland | Team competition |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Women's basketball | ||
Representing ![]() | ||
European Championships | ||
![]() |
1999 Poland | Team competition |
</syntaxhighlight>
- Basic usage
- {{MedalTableTop |name= |image= |image_size= |alt= |caption= |sport= |country_code= |medals= }}
- {{MedalTableTop |name= |image= |image_size= |alt= |caption= |sport= |country= |medals= }}
- 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 {{Medal|Sport}} 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 {{Medal|Sport}} template usage to list the different sports.
- country_code – This option uses the country code (e.g. USA = United States, CHN = China, GBN = 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: BHS (the
Bahamas), GMB (the
Gambia), GBR (the
United Kingdom), MHL (the
Marshall Islands), NLD (the
Netherlands), PHL (the
Philippines), SYC (the
Seychelles), SLB (the
Solomon Islands), ARE (the
United Arab Emirates), URS (the
Soviet Union), and USA (the
United States). This replaces the need for {{Medal|Country}} 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 {{Medal|Country}} 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
{{BRA}}
which displaysBrazil (same output as with
|country_code=BRA
),{{bkw|Poland}}
which displaysPoland (links to Poland women's national basketball team article), or
{{ih|CAN}}
which displaysCanada (links to Canada men's national ice hockey team). Include "the" where appropriate (e.g. the {{BHS}}, the {{GMB}}, the {{GBR}}, the {{MHL}}, the {{NLD}}, the {{PHL}}, the {{SYC}}, the {{SLB}}, the {{ARE}}, the {{URS}}, the {{USA}}). This replaces the need for the {{Medal|Country}} template (e.g. {{Medal|Country|{{BRA}}}} or {{Medal|Country|{{bkw|POL}}}}).
- medals – This is the only compulsory field as this is used to place medals and descriptions within the infobox through the {{Medal}} template. To work correctly it must be the last field in the main template.
MedalBox
International medals | ||
---|---|---|
Men's beach volleyball | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2012 London | Team |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
International medals | ||
---|---|---|
Men's beach volleyball | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2012 London | Team |
</syntaxhighlight>
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
- {{MedalBox |color= |title= |sport= |country= |medals= }}
- 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
{{BRA}}
which displaysBrazil (links to Brazil article),
{{bkw|Poland}}
which displaysPoland (links to Poland women's national basketball team article), or
{{ih|CAN}}
which displaysCanada (links to Canada men's national ice hockey team). Include "the" where appropriate (e.g. the {{BHS}}, the {{GMB}}, the {{GBR}}, the {{MHL}}, the {{NLD}}, the {{PHL}}, the {{SYC}}, the {{SLB}}, the {{ARE}}, the {{URS}}, the {{USA}}). This replaces the need for the {{Medal|Country}} template (e.g. {{Medal|Country|{{BRA}}}} or {{Medal|Country|{{bkw|POL}}}}).
- medals – This is the only compulsory field as this is used to place medals and descriptions within the box through the {{Medal}} template. To work correctly it must be the last field in the main template.
Medal
Medal record | ||
---|---|---|
Men's athletics | ||
Representing the ![]() | ||
Olympic Games | ||
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
Winner | 2012 TEST | 100 m |
Winner | 2012 TEST | 100 m |
Runner-up | 2012 TEST | 100 m |
Runner-up | 2012 TEST | 100 m |
Runner-up | 2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
Disqualified | 2012 TEST | 100 m |
Disqualified | 2012 TEST | 100 m |
![]() |
Pierre de Coubertin medal | 2012 |
![]() |
Pierre de Coubertin medal | 2012 |
Men's bobsled | ||
Representing ![]() | ||
World Bobsled Championships | ||
Disqualified | 2013 TEST | Bobsled |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Men's athletics | ||
Representing the ![]() | ||
Olympic Games | ||
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
Winner | 2012 TEST | 100 m |
Winner | 2012 TEST | 100 m |
Runner-up | 2012 TEST | 100 m |
Runner-up | 2012 TEST | 100 m |
Runner-up | 2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
![]() |
2012 TEST | 100 m |
Disqualified | 2012 TEST | 100 m |
Disqualified | 2012 TEST | 100 m |
![]() |
Pierre de Coubertin medal | 2012 |
![]() |
Pierre de Coubertin medal | 2012 |
Men's bobsled | ||
Representing ![]() | ||
World Bobsled Championships | ||
Disqualified | 2013 TEST | Bobsled |
</syntaxhighlight>
The Medal template is a multi-purpose one which allows for all varieties of entries within the medal table.
- Basic usage
- {{Medal|TYPE|FIELD1|FIELD2}}
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
Medal record | ||
---|---|---|
Disqualified | 2012 TEST | 100 m[1] |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Disqualified | 2012 TEST | 100 m[2] |
</syntaxhighlight>
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.
TrueSpirit
Medal record | ||
---|---|---|
![]() |
Pierre de Coubertin medal | 2012 |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
![]() |
Pierre de Coubertin medal | 2012 |
</syntaxhighlight>
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
Medal record | ||
---|---|---|
Men's road bicycle racing | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2012 London | Event |
Men's triathlon | ||
Representing ![]() | ||
Commonwealth Games | ||
![]() |
2014 Glasgow | Event |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Men's road bicycle racing | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2012 London | Event |
Men's triathlon | ||
Representing ![]() | ||
Commonwealth Games | ||
![]() |
2014 Glasgow | Event |
</syntaxhighlight>
Medal record | ||
---|---|---|
Men's road bicycle racing | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2012 London | Event |
Men's triathlon | ||
Representing ![]() | ||
Commonwealth Games | ||
![]() |
2014 Glasgow | Event |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Men's road bicycle racing | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2012 London | Event |
Men's triathlon | ||
Representing ![]() | ||
Commonwealth Games | ||
![]() |
2014 Glasgow | Event |
</syntaxhighlight>
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. {{CHN}} ), including "the" where appropriate (e.g. the {{USA}}, the {{URS}}, the {{MHL}}, the {{ARE}}, the {{GBR}}, the {{BHS}}, the {{NLD}}, the {{PHL}}, the {{SYC}}, the {{GMB}}, the {{SLB}}). 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.
![]() | ||
Medal record | ||
---|---|---|
Men's athletics | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2000 Sydney | 100 m |
Commonwealth Games | ||
![]() |
2006 Melbourne | 200 m |
![]() |
2006 Melbourne | 400 m |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
![]() | ||
Medal record | ||
---|---|---|
Men's athletics | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
2000 Sydney | 100 m |
Commonwealth Games | ||
![]() |
2006 Melbourne | 200 m |
![]() |
2006 Melbourne | 400 m |
</syntaxhighlight>
Medal record | ||
---|---|---|
Representing ![]() | ||
Women's rowing | ||
Olympic Games | ||
![]() |
2004 Athens | Quadruple sculls |
Women's track cycling | ||
Olympic Games | ||
![]() |
2008 Beijing | Individual pursuit |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Representing ![]() | ||
Women's rowing | ||
Olympic Games | ||
![]() |
2004 Athens | Quadruple sculls |
Women's track cycling | ||
Olympic Games | ||
![]() |
2008 Beijing | Individual pursuit |
</syntaxhighlight>
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.Medal record | ||
---|---|---|
Women's badminton | ||
Olympic Games | ||
Representing ![]() | ||
![]() |
1996 Atlanta | Singles |
Representing the ![]() | ||
![]() |
2004 Athens | Singles |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Women's badminton | ||
Olympic Games | ||
Representing ![]() | ||
![]() |
1996 Atlanta | Singles |
Representing the ![]() | ||
![]() |
2004 Athens | Singles |
</syntaxhighlight> 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.
Medal record | ||
---|---|---|
Women's badminton | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
1996 Atlanta | Singles |
European Championships | ||
![]() |
2002 Malmö | Singles |
Representing ![]() | ||
Olympic Games | ||
![]() |
2004 Athens | Singles |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Medal record | ||
---|---|---|
Women's badminton | ||
Representing ![]() | ||
Olympic Games | ||
![]() |
1996 Atlanta | Singles |
European Championships | ||
![]() |
2002 Malmö | Singles |
Representing ![]() | ||
Olympic Games | ||
![]() |
2004 Athens | Singles |
</syntaxhighlight>
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.<syntaxhighlight lang="wikitext" style="overflow: auto;">
Personal information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Full name | Allison Rodgers Schmitt | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nickname(s) | "Schmitty", "Al", "Allie" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
National team | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Born | Pittsburgh, Pennsylvania, U.S. | June 7, 1990|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Height | 6 ft 1 in (185 cm) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Weight | 163 lb (74 kg) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sport | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sport | Swimming | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Strokes | Freestyle | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Club | Ann Arbor Swim Club, Club Wolverine, Athens Bulldog Swim Club, North Baltimore Aquatic Club | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
College team | University of Georgia | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Medal record
|
</syntaxhighlight>
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.MedalBox
Here is a basic demonstration of the MedalBox template usage:
International medals | ||
---|---|---|
Men's ice hockey | ||
Representing ![]() | ||
World Junior Championships | ||
![]() |
2005 Grand Forks | |
![]() |
2004 Helsinki | |
World Junior U18 Championships | ||
![]() |
2003 Yaroslavl | |
Eight Nations Cup | ||
![]() |
2002 Slovakia |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
International medals | ||
---|---|---|
Men's ice hockey | ||
Representing ![]() | ||
World Junior Championships | ||
![]() |
2005 Grand Forks | |
![]() |
2004 Helsinki | |
World Junior U18 Championships | ||
![]() |
2003 Yaroslavl | |
Eight Nations Cup | ||
![]() |
2002 Slovakia |
</syntaxhighlight>
Historical templates
- Deprecated TableTop templates
{{MedalTop}}
and{{MedalTopPic}}
– use{{MedalTableTop}}
with{{Medal|Competition|Olympic Games}}
– (for Paralympic Games) use{{MedalTop3}}
{{MedalTableTop}}
– use{{MedalTableTopPic}}
{{MedalTableTop}}
with the same parameters
- Deprecated Competition templates
{{MedalOlympics}}
– use{{Medal|Competition|Olympic Games}}
– use{{MedalParalympic}}
{{Medal|Competition|Paralympic Games}}
{{MedalWorldChampionships}}
– use{{Medal|Competition|World Championships}}
{{MedalEuropeanChampionships}}
– use{{Medal|Competition|European Championships}}
- Deprecated Medal templates
{{MedalGold}}
{{MedalSilver}}
{{MedalBronze}}
- For competitions differing from Gold, Silver and Bronze terminology
{{MedalW}}
{{MedalRU}}
- Alias for {{Medal|Sport|text}}
{{MedalSport}}
– Use{{Medal|Sport|text}}
.
- Deprecated closing template
{{MedalBottom}}
– table now automatically closes by using the |medals= parameter and moving two curly brackets to the end of the templates.