Editing
Template:Medal templates documentation
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==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 [[sport of athletics|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 [[sport of athletics|athletics]] | country_code = USA | medals = {{Medal|Sport}} }} </pre> {{clear}} {{MedalTableTop | name = no | sport = Women's [[basketball]] | country = {{bkw|POL}} | medals = {{MedalCompetition | [[EuroBasket Women|European Championships]] }} {{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }} }} <pre style="overflow: auto;"> {{MedalTableTop | name = no | sport = Women's [[basketball]] | country = {{bkw|POL}} | medals = {{MedalCompetition | [[EuroBasket Women|European Championships]] }} {{MedalGold | [[EuroBasket Women 1999|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 [[WP:Accessibility|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 (sport)|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 {{BAH}}), GAM (the {{GAM}}), GBR (the {{GBR}}), MHL (the {{MHL}}), NED (the {{NED}}), PHI (the {{PHI}}), SEY (the {{SEY}}), SOL (the {{SOL}}), UAE (the {{UAE}}), URS (the {{URS}}), and USA (the {{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 Summer Olympics|2012 London]]|[[Beach volleyball at the 2012 Summer Olympics β Men's tournament|Team]]}} }} <pre style="overflow: auto;"> {{MedalBox|title=International medals|sport=Men's [[beach volleyball]]|country={{BRA}}|medals= {{Medal|Competition|[[Olympic Games]]}} {{Medal|Silver|[[2012 Summer Olympics|2012 London]]|[[Beach volleyball at the 2012 Summer Olympics β Men's tournament|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 [[sport of athletics|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 [[sport of athletics|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 Summer Olympics|2008 Beijing]], [[2010 Commonwealth Games|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 Summer Olympics|2012 London]]|Event}} {{Medal|Sport|Men's [[triathlon]]}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|[[Commonwealth Games]]}} {{Medal|Gold|[[2014 Commonwealth Games|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 Summer Olympics|2012 London]]|Event}} {{Medal|Sport|Men's [[triathlon]]}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|[[Commonwealth Games]]}} {{Medal|Gold|[[2014 Commonwealth Games|2014 Glasgow]]|Event}} }} </pre> {{-}} {{MedalBox|sport=Men's [[road bicycle racing]]|country={{GBR2}}|medals= {{Medal|Comp|[[Olympic Games]]}} {{Medal|Bronze|[[2012 Summer Olympics|2012 London]]|Event}} {{Medal|Sport|Men's [[triathlon]]}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|[[Commonwealth Games]]}} {{Medal|Gold|[[2014 Commonwealth Games|2014 Glasgow]]|Event}} }} <pre style="overflow: auto;"> {{MedalBox|sport=Men's [[road bicycle racing]]|country={{GBR2}}|medals= {{Medal|Comp|[[Olympic Games]]}} {{Medal|Bronze|[[2012 Summer Olympics|2012 London]]|Event}} {{Medal|Sport|Men's [[triathlon]]}} {{Medal|Country|{{ENG}}}} {{Medal|Comp|[[Commonwealth Games]]}} {{Medal|Gold|[[2014 Commonwealth Games|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 [[List of IOC country codes|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 Olympians at the Olympic Games|independent athletes]]. * '''Sport''' β This states the sport that the athlete is competing in (e.g. Women's [[swimming (sport)|swimming]])
Summary:
Please note that all contributions to IDU Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
IDU Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
To edit this page, please answer the question that appears below (
more info
):
Who is the wiki admin
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information