Template:MedalCountry: Difference between revisions
-infobox from noinclude |
Deleatur yhe (talk | contribs) m 1 revision imported |
(No difference)
| |
Latest revision as of 15:02, 9 September 2026
| Representing {{{1}}} |
|---|
| This template should be used for athletes who have competed for different countries. There are many examples from the break up of the USSR as well as athletes from the UK competing at the Commonwealth Games. Other athletes have switched nationality, for example Wilson Kipketer was Kenyan but competed for Denmark too. |
| This template is used on approximately 95,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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; width: fit-content;">
Johnson at the London Olympic Stadium | ||
| Medal record | ||
|---|---|---|
| Men's athletics | ||
| Representing the | ||
| Medal record | ||
|---|---|---|
| Women's basketball | ||
| Representing | ||
| European Championships | ||
| Gold medal – first place | 1999 Poland | Team competition |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Women's basketball | ||
| Representing | ||
| European Championships | ||
| Gold medal – first place | 1999 Poland | Team competition |
- Basic usage
- <syntaxhighlight lang="wikitext" style="margin: 0.25rem auto; overflow: auto; padding: 0.1rem 0.33rem; width: fit-content;">
- <syntaxhighlight lang="wikitext" style="margin: 0.25rem auto; overflow: auto; padding: 0.1rem 0.33rem; width: fit-content;">
| Medal record |
|---|
- <syntaxhighlight lang="text" class="" style="" inline="1">name</syntaxhighlight> – 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 <syntaxhighlight lang="text" class="" style="" inline="1">no</syntaxhighlight> in the field.
- <syntaxhighlight lang="text" class="" style="" inline="1">image</syntaxhighlight> – 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.
- <syntaxhighlight lang="text" class="" style="" inline="1">image_size</syntaxhighlight> (or <syntaxhighlight lang="text" class="" style="" inline="1">imagesize</syntaxhighlight>) – 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.
- <syntaxhighlight lang="text" class="" style="" inline="1">alt</syntaxhighlight> – This provides a description of the image for accessibility users or those using weak connections.
- <syntaxhighlight lang="text" class="" style="" inline="1">caption</syntaxhighlight> – This adds a short description to describe the image. Try to be brief, using just a few words.
- <syntaxhighlight lang="text" class="" style="" inline="1">header</syntaxhighlight> – 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.
- <syntaxhighlight lang="text" class="" style="" inline="1">sport</syntaxhighlight> – 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. - <syntaxhighlight lang="text" class="" style="" inline="1">country_code</syntaxhighlight> – 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 File:Flag of the Bahamas.svg Bahamas), GMB (the File:Flag of The Gambia.svg Gambia), GBR (the Error creating thumbnail: United Kingdom), MHL (the File:Flag of the Marshall Islands.svg Marshall Islands), NLD (the File:Flag of the Netherlands.svg Netherlands), PHL (the File:Flag of the Philippines.svg Philippines), SYC (the File:Flag of Seychelles.svg Seychelles), SLB (the File:Flag of the Solomon Islands.svg Solomon Islands), ARE (the File:Flag of the United Arab Emirates.svg 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. - <syntaxhighlight lang="text" class="" style="" inline="1">country</syntaxhighlight> – May be used in place of <syntaxhighlight lang="text" class="" style="" inline="1">country_code</syntaxhighlight> to display the country name using text or templates, such as
{{BRA}}which displays Error creating thumbnail: Brazil (same output as with <syntaxhighlight lang="wikitext" inline style="display: none;" />|country_code=BRA),{{Bkw|Poland}}which displays
Poland (linked to the Poland women's national basketball team article), or {{Ih|CAN}}which displays File:Flag of Canada (Pantone).svg Canada (linked to the Canada men's national ice hockey team article). 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 {{Country}} template (e.g. {{Medal|Country|{{BRA}}}} or {{Medal|Country|{{Bkw|POL}}}}). - <syntaxhighlight lang="text" class="" style="" inline="1">medals</syntaxhighlight> – 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
| Medal record |
|---|
| International medals | ||
|---|---|---|
| Men's beach volleyball | ||
| Representing Error creating thumbnail: Brazil | ||
| Olympic Games | ||
| Silver medal – second place | 2012 London | Team |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| International medals | ||
|---|---|---|
| Men's beach volleyball | ||
| Representing Error creating thumbnail: Brazil | ||
| Olympic Games | ||
| Silver medal – second place | 2012 London | Team |
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
- <syntaxhighlight lang="wikitext" style="margin: 0.25rem auto; overflow: auto; padding: 0.1rem 0.33rem; width: fit-content;">
- <syntaxhighlight lang="text" class="" style="" inline="1">color</syntaxhighlight> – This option changes the color of the box header. If omitted, the default is light grey.
- <syntaxhighlight lang="text" class="" style="" inline="1">title</syntaxhighlight> – This parameter allows you to customise the box title. If omitted, the default is "Medal record".
- <syntaxhighlight lang="text" class="" style="" inline="1">sport</syntaxhighlight> – This displays the athlete's primary sport (e.g. "Men's beach volleyball"). This option supersedes the "{{Medal|Sport}}" template function.
- <syntaxhighlight lang="text" class="" style="" inline="1">country</syntaxhighlight> – This displays the athlete's primary country or team using text or a template, such as
{{BRA}}which displays Error creating thumbnail: Brazil (linked to the Brazil article),{{Bkw|Poland}}which displays
Poland (linked to the Poland women's national basketball team article), or {{Ih|CAN}}which displays File:Flag of Canada (Pantone).svg Canada (linked to the Canada men's national ice hockey team article). 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}}}}). - <syntaxhighlight lang="text" class="" style="" inline="1">medals</syntaxhighlight> – 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 | ||
| Gold medal – first place | 2012 TEST | 100 m |
| Gold medal – first place | 2012 TEST | 100 m |
| Silver medal – second place | 2012 TEST | 100 m |
| Silver medal – second place | 2012 TEST | 100 m |
| Bronze medal – third place | 2012 TEST | 100 m |
| Bronze medal – third place | 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 |
| First place | 2012 TEST | 100 m |
| First place | 2012 TEST | 100 m |
| Second place | 2012 TEST | 100 m |
| Second place | 2012 TEST | 100 m |
| Third place | 2012 TEST | 100 m |
| Third place | 2012 TEST | 100 m |
| Disqualified | 2012 TEST | 100 m |
| Disqualified | 2012 TEST | 100 m |
| File:Olympic rings.svg | Pierre de Coubertin medal | 2012 |
| File:Olympic rings.svg | Pierre de Coubertin medal | 2012 |
| Men's bobsled | ||
| Representing | ||
| World Bobsled Championships | ||
| Disqualified | 2013 TEST | Bobsled |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Men's athletics | ||
| Representing the | ||
| Olympic Games | ||
| Gold medal – first place | 2012 TEST | 100 m |
| Gold medal – first place | 2012 TEST | 100 m |
| Silver medal – second place | 2012 TEST | 100 m |
| Silver medal – second place | 2012 TEST | 100 m |
| Bronze medal – third place | 2012 TEST | 100 m |
| Bronze medal – third place | 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 |
| First place | 2012 TEST | 100 m |
| First place | 2012 TEST | 100 m |
| Second place | 2012 TEST | 100 m |
| Second place | 2012 TEST | 100 m |
| Third place | 2012 TEST | 100 m |
| Third place | 2012 TEST | 100 m |
| Disqualified | 2012 TEST | 100 m |
| Disqualified | 2012 TEST | 100 m |
| File:Olympic rings.svg | Pierre de Coubertin medal | 2012 |
| File:Olympic rings.svg | Pierre de Coubertin medal | 2012 |
| Men's bobsled | ||
| Representing | ||
| World Bobsled Championships | ||
| Disqualified | 2013 TEST | Bobsled |
The Medal template is multi-purpose and allows for all varieties of entries within the medal table.
- Basic usage
- <syntaxhighlight lang="wikitext" style="margin: 0.25rem auto; overflow: auto; padding: 0.1rem 0.33rem; width: fit-content;">
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 (<syntaxhighlight lang="text" class="" style="" inline="1">G</syntaxhighlight>)
- Silver (<syntaxhighlight lang="text" class="" style="" inline="1">S</syntaxhighlight>)
- Bronze (<syntaxhighlight lang="text" class="" style="" inline="1">B</syntaxhighlight>)
- Winner (<syntaxhighlight lang="text" class="" style="" inline="1">W</syntaxhighlight>)
- Runnerup (<syntaxhighlight lang="text" class="" style="" inline="1">RU</syntaxhighlight>)
- First (<syntaxhighlight lang="text" class="" style="" inline="1">1st</syntaxhighlight>)
- Second (<syntaxhighlight lang="text" class="" style="" inline="1">2nd</syntaxhighlight>)
- Third (<syntaxhighlight lang="text" class="" style="" inline="1">3rd</syntaxhighlight>)
- Disqualified (<syntaxhighlight lang="text" class="" style="" inline="1">DQ</syntaxhighlight>)
- TrueSpirit (<syntaxhighlight lang="text" class="" style="" inline="1">PdC</syntaxhighlight>)
Disqualified
| Medal record | ||
|---|---|---|
| Disqualified | 2012 TEST | 100 m[1] |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Disqualified | 2012 TEST | 100 m[2] |
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 | ||
|---|---|---|
| File:Olympic rings.svg | Pierre de Coubertin medal | 2012 |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| File:Olympic rings.svg | Pierre de Coubertin medal | 2012 |
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 Error creating thumbnail: Great Britain | ||
| Olympic Games | ||
| Bronze medal – third place | 2012 London | Event |
| Men's triathlon | ||
| Representing File:Flag of England.svg England | ||
| Commonwealth Games | ||
| Gold medal – first place | 2014 Glasgow | Event |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Men's road bicycle racing | ||
| Representing Error creating thumbnail: Great Britain | ||
| Olympic Games | ||
| Bronze medal – third place | 2012 London | Event |
| Men's triathlon | ||
| Representing File:Flag of England.svg England | ||
| Commonwealth Games | ||
| Gold medal – first place | 2014 Glasgow | Event |
| Medal record | ||
|---|---|---|
| Men's road bicycle racing | ||
| Representing Error creating thumbnail: Great Britain | ||
| Olympic Games | ||
| Bronze medal – third place | 2012 London | Event |
| Men's triathlon | ||
| Representing File:Flag of England.svg England | ||
| Commonwealth Games | ||
| Gold medal – first place | 2014 Glasgow | Event |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Men's road bicycle racing | ||
| Representing Error creating thumbnail: Great Britain | ||
| Olympic Games | ||
| Bronze medal – third place | 2012 London | Event |
| Men's triathlon | ||
| Representing File:Flag of England.svg England | ||
| Commonwealth Games | ||
| Gold medal – first place | 2014 Glasgow | Event |
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 IOC 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 | ||
| Gold medal – first place | 2000 Sydney | 100 m |
| Commonwealth Games | ||
| Silver medal – second place | 2006 Melbourne | 200 m |
| Bronze medal – third place | 2006 Melbourne | 400 m |
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Men's athletics | ||
| Representing | ||
| Olympic Games | ||
| Gold medal – first place | 2000 Sydney | 100 m |
| Commonwealth Games | ||
| Silver medal – second place | 2006 Melbourne | 200 m |
| Bronze medal – third place | 2006 Melbourne | 400 m |
Competitor who has won medals in different sports, competing for the same country
| Medal record | ||
|---|---|---|
| Representing Error creating thumbnail: Great Britain | ||
| Women's rowing | ||
| Olympic Games | ||
| Silver medal – second place | 2004 Athens | Quadruple sculls |
| Women's track cycling | ||
| Olympic Games | ||
| Gold medal – first place | 2008 Beijing | Individual pursuit |
<syntaxhighlight lang="wikitext" style="font-size: 0.95em; overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Representing Error creating thumbnail: Great Britain | ||
| Women's rowing | ||
| Olympic Games | ||
| Silver medal – second place | 2004 Athens | Quadruple sculls |
| Women's track cycling | ||
| Olympic Games | ||
| Gold medal – first place | 2008 Beijing | Individual pursuit |
Competitor who has won medals in the same sport, competing for different countries
| Medal record | ||
|---|---|---|
| Women's badminton | ||
| Olympic Games | ||
| Representing File:Flag of Indonesia.svg Indonesia | ||
| Silver medal – second place | 1996 Atlanta | Singles |
| Representing the File:Flag of the Netherlands.svg Netherlands | ||
| Silver medal – second place | 2004 Athens | Singles |
<syntaxhighlight lang="wikitext" style="font-size: 0.95em; overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Women's badminton | ||
| Olympic Games | ||
| Representing File:Flag of Indonesia.svg Indonesia | ||
| Silver medal – second place | 1996 Atlanta | Singles |
| Representing the File:Flag of the Netherlands.svg Netherlands | ||
| Silver medal – second place | 2004 Athens | Singles |
| Medal record | ||
|---|---|---|
| Women's badminton | ||
| Representing File:Flag of Denmark.svg Denmark | ||
| Olympic Games | ||
| Silver medal – second place | 1996 Atlanta | Singles |
| European Championships | ||
| Bronze medal – third place | 2002 Malmö | Singles |
| Representing | ||
| Olympic Games | ||
| Silver medal – second place | 2004 Athens | Singles |
<syntaxhighlight lang="wikitext" style="font-size: 0.95em; overflow: auto; width: fit-content;">
| Medal record | ||
|---|---|---|
| Women's badminton | ||
| Representing File:Flag of Denmark.svg Denmark | ||
| Olympic Games | ||
| Silver medal – second place | 1996 Atlanta | Singles |
| European Championships | ||
| Bronze medal – third place | 2002 Malmö | Singles |
| Representing | ||
| Olympic Games | ||
| Silver medal – second place | 2004 Athens | Singles |
Medal table embedded within an infobox
| Personal information | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full name | Allison Rodgers Schmitt | ||||||||||||||||||||||||||||||||||||||||||||||||
| Nicknames |
| ||||||||||||||||||||||||||||||||||||||||||||||||
| National team | |||||||||||||||||||||||||||||||||||||||||||||||||
| Born | June 7, 1990 Pittsburgh, Pennsylvania, U.S. | ||||||||||||||||||||||||||||||||||||||||||||||||
| Height | 6 ft 1 in (185 cm) | ||||||||||||||||||||||||||||||||||||||||||||||||
| Weight | 163 lb (74 kg) | ||||||||||||||||||||||||||||||||||||||||||||||||
| Sport | |||||||||||||||||||||||||||||||||||||||||||||||||
| Sport | Swimming | ||||||||||||||||||||||||||||||||||||||||||||||||
| Strokes | Freestyle | ||||||||||||||||||||||||||||||||||||||||||||||||
| Club |
| ||||||||||||||||||||||||||||||||||||||||||||||||
| College team | University of Georgia | ||||||||||||||||||||||||||||||||||||||||||||||||
Medal record
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Personal information | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Full name | Allison Rodgers Schmitt | ||||||||||||||||||||||||||||||||||||||||||||||||
| Nicknames |
| ||||||||||||||||||||||||||||||||||||||||||||||||
| National team | |||||||||||||||||||||||||||||||||||||||||||||||||
| Born | June 7, 1990 Pittsburgh, Pennsylvania, U.S. | ||||||||||||||||||||||||||||||||||||||||||||||||
| Height | 6 ft 1 in (185 cm) | ||||||||||||||||||||||||||||||||||||||||||||||||
| Weight | 163 lb (74 kg) | ||||||||||||||||||||||||||||||||||||||||||||||||
| Sport | |||||||||||||||||||||||||||||||||||||||||||||||||
| Sport | Swimming | ||||||||||||||||||||||||||||||||||||||||||||||||
| Strokes | Freestyle | ||||||||||||||||||||||||||||||||||||||||||||||||
| Club |
| ||||||||||||||||||||||||||||||||||||||||||||||||
| College team | University of Georgia | ||||||||||||||||||||||||||||||||||||||||||||||||
Medal record
| |||||||||||||||||||||||||||||||||||||||||||||||||
MedalBox
Here is a basic demonstration of the MedalBox template usage:
<syntaxhighlight lang="wikitext" style="overflow: auto; width: fit-content;">
TemplateData
TemplateData for MedalCountry
Historical templates
Deprecated TableTop templates
{{MedalTop}}– 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 rubrics
Alias for {{Medal|Sport|text}}
{{MedalSport}}– Use{{Medal|Sport|text}}
Deprecated closing template
{{MedalBottom}}– table now automatically closes by using the |medals= parameter and medal templates prior to the final paired curly brackets at the end of the template.