Jump to content

ഫലകം: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.

The medal infobox consists of two templates:

  • {{MedalTableTop}} – for starting the table (image optional)
  • {{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.

Michael Johnson
Alternative text here
Johnson at the London Olympic Stadium
Medal record
Men's athletics
Representing the  അമേരിക്കൻ ഐക്യനാടുകൾ
{{MedalTableTop
| name = Michael Johnson
| image = Michael Johnson at London Olympic Stadium 2010-07 1.JPG
| imagesize = 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}}
}}
Basic usage
{{MedalTableTop |name= |image= |imagesize= |alt= |caption= |sport= |country_code= |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.
  • 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, GBR2 = Great Britain) to generate the country that the athlete represents in the second line of the medal record. 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.
  • 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.
International medals
Men's ice hockey
Representing  കാനഡ
World Championship
Silver medal – second place 1989 Sweden Ice hockey
{{MedalBox|title=International medals|sport=Men's [[ice hockey]]|country={{ih|CAN}}|medals=
{{MedalCompetition|[[Ice Hockey World Championships|World Championship]]}}
{{Medal|Silver|[[1989 World Ice Hockey Championships|1989 Sweden]]|Ice hockey}}
}}

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 ice hockey"). This option supersedes the "Medal|Sport" template function.
  • country This displays the athlete's primary country or team (e.g. "{{CAN}}"). This option supersedes the "Medal|Country" template function.
  • 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 record
Men's athletics
Representing the  അമേരിക്കൻ ഐക്യനാടുകൾ
Olympic Games
Gold medal – first place 2012 TEST 100 m
Silver medal – second place 2012 TEST 100 m
Bronze medal – third place 2012 TEST 100 m
Winner 2012 TEST 100 m
Runner-up 2012 TEST 100 m
First place 2012 TEST 100 m
Second place 2012 TEST 100 m
Third place 2012 TEST 100 m
2012 TEST 100 m
Disqualified 2012 TEST 100 m
Men's bobsled
Representing  ജമൈക്ക
World Bobsled Championships
Disqualified 2013 TEST Bobsled
{{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|Silver|2012 TEST|100 m}}
{{Medal|Bronze|2012 TEST|100 m}}
{{Medal|Winner|2012 TEST|100 m}}
{{Medal|Runnerup|2012 TEST|100 m}}
{{Medal|First|2012 TEST|100 m}}
{{Medal|Second|2012 TEST|100 m}}
{{Medal|Third|2012 TEST|100 m}}
{{Medal|Playoffs|2012 TEST|100 m}}
{{Medal|Disqualified|2012 TEST|100 m}}
{{Medal|Sport|Men's [[bobsled]]}}
{{Medal|Country|{{JAM}}}}
{{Medal|Comp|World Bobsled Championships}}
{{Medal|DQ|2013 TEST|Bobsled}}
}}

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)
    • Playoffs (PO)
    • Disqualified (DQ)
Medal record
Pierre de Coubertin medal 2012
{{MedalTableTop|name=no|medals=
{{Medal|TrueSpirit|2012}}
}}

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

Medal record
Disqualified 2012 TEST 100 m[1]
{{MedalTableTop|name=no|medals=
{{Medal|Disqualified|2012 TEST|100 m}}<ref>Reason for disqualification</ref>
}}

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.

  1. Reason for disqualification

Multiple countries/sports

[തിരുത്തുക]
Medal record
Men's road bicycle racing
Representing  യുണൈറ്റഡ് കിങ്ഡം
Olympic Games
Bronze medal – third place 2012 London Event
Men's triathlon
Representing  ഇംഗ്ലണ്ട്
Commonwealth Games
Gold medal – first place 2014 Glasgow Event
{{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}}
}}
Medal record
Men's road bicycle racing
Representing  യുണൈറ്റഡ് കിങ്ഡം
Olympic Games
Bronze medal – third place 2012 London Event
Men's triathlon
Representing  ഇംഗ്ലണ്ട്
Commonwealth Games
Gold medal – first place 2014 Glasgow Event
{{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}}
}}

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

  • Country This is usually the first section showing the person's relevant country (or team). Enter the country's three letter code in curly brackets (e.g. {{CHN}} ), including "the" where appropriate (e.g. the {{USA}} ). In rare cases the correct input may be something else (e.g. a team name). Independent is used for independent athletes.
  • Sport This states the sport that the athlete is competing in (e.g. Women's swimming)

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.

Athlete name
Alt text for image
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
{{MedalTableTop |name=Athlete name |image=Example-serious.jpg |imagesize=150px |alt=Alt text for image |sport=Men's [[sport of athletics|athletics]] |country_code=AUS |medals=
{{Medal|Competition|[[Olympic Games]]}}
{{Medal|Gold|[[2000 Summer Olympics|2000 Sydney]] | [[Athletics at the 2000 Summer Olympics – Men's 100 metres|100 m]] }}
{{Medal|Competition|[[Commonwealth Games]]}}
{{Medal|Silver|[[2006 Commonwealth Games|2006 Melbourne]] | [[Athletics at the 2006 Commonwealth Games|200 m]] }}
{{Medal|Bronze|2006 Melbourne | 400 m }}
}}
Example: Competitor who has won medals in different sports, competing for the same country
Medal templates documentation
Medal record
Representing  യുണൈറ്റഡ് കിങ്ഡം
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
{{MedalTableTop |country_code=GBR2 |medals=
{{Medal|Sport| Women's [[Rowing (sport)|rowing]] }}
{{Medal|Competition| [[Olympic Games]] }}
{{Medal|Silver| [[2004 Summer Olympics|2004 Athens]] | [[Rowing at the 2004 Summer Olympics - Women's quadruple sculls|Quadruple sculls]] }}
{{Medal|Sport| Women's [[track cycling]] }}
{{Medal|Competition| Olympic Games }}
{{Medal|Gold| [[2008 Summer Olympics|2008 Beijing]] | [[Cycling at the 2008 Summer Olympics - Women's individual pursuit|Individual pursuit]] }}
}}

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.

Example: Competitor who has won medals in the same sport, competing for different countries
Medal templates documentation
Medal record
Women's badminton
Olympic Games
Representing  ഇന്തോനേഷ്യ
Silver medal – second place 1996 Atlanta Singles
Representing the  നെതർലൻ്റ്സ്
Silver medal – second place 2004 Athens Singles
{{MedalTableTop |sport=Women's [[badminton]] |medals=
{{Medal|Competition| [[Olympic Games]] }}
{{Medal|Country | {{INA}} }}
{{Medal|Silver| [[1996 Summer Olympics|1996 Atlanta]] | [[Badminton at the 1996 Summer Olympics|Singles]] }}
{{Medal|Country | the {{NED}} }}
{{Medal|Silver| [[2004 Summer Olympics|2004 Athens]] | [[Badminton at the 2004 Summer Olympics - Women's singles|Singles]] }}
}}

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 templates documentation
Medal record
Women's badminton
Representing  ഡെന്മാർക്ക്
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
{{MedalTableTop |sport=Women's [[badminton]] |medals=
{{Medal|Country | {{DEN}} }}
{{Medal|Competition| [[Olympic Games]] }}
{{Medal|Silver| [[1996 Summer Olympics|1996 Atlanta]] | [[Badminton at the 1996 Summer Olympics|Singles]] }}
{{Medal|Competition|[[European Badminton Championships|European Championships]] }}
{{Medal|Bronze| [[2002 European Badminton Championships|2002 Malmö]] | Singles }}
{{Medal|Country| {{SWE}} }}
{{Medal|Competition| [[Olympic Games]] }}
{{Medal|Silver| [[2004 Summer Olympics|2004 Athens]] | [[Badminton at the 2004 Summer Olympics - Women's singles|Singles]] }}
}}

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.

Example: Medal table embedded within an infobox
Allison Schmitt
വ്യക്തിവിവരങ്ങൾ
മുഴുവൻ പേര്Allison Rodgers Schmitt
വിളിപ്പേര്(കൾ)"Schmitty", "Al", "Allie"
National team അമേരിക്കൻ ഐക്യനാടുകൾ
ജനനം (1990-06-07) ജൂൺ 7, 1990  (34 വയസ്സ്)
Pittsburgh, Pennsylvania, U.S.
ഉയരം6 ft 1 in (1.85 m)
ഭാരം163 lb (74 kg)
Sport
കായികയിനംSwimming
StrokesFreestyle
ClubAnn Arbor Swim Club,
Club Wolverine,
Athens Bulldog Swim Club,
North Baltimore Aquatic Club
College teamUniversity of Georgia
{{Infobox swimmer
| name           = Allison Schmitt
| image          = <!-- Only free-content images are allowed for depicting living people -- see [[WP:NONFREE]]. -->
| alt            =
| caption        =
| fullname       = Allison Rodgers Schmitt
| nicknames      = "Schmitty", "Al", "Allie"
| national_team  = {{USA}}
| strokes        = [[Freestyle swimming|Freestyle]]
| club           = Ann Arbor Swim Club,<br />Club Wolverine,<br />Athens Bulldog Swim Club,<br />[[North Baltimore Aquatic Club]]
| collegeteam    = [[Georgia Bulldogs swimming and diving|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         = {{convert|6|ft|1|in|m|abbr=on}}
| weight         = {{convert|163|lb|kg|abbr=on}}
| medaltemplates =
{{MedalSport | Women's swimming }}
{{MedalCountry | the United States }}
{{MedalCount
| [[Swimming at the Summer Olympics|Olympic Games]] | 3 | 1 | 2
| [[FINA World Aquatics Championships|World Championships (LC)]] | 1 | 2 | 0
| [[FINA World Swimming Championships (25 m)|World Championships (SC)]] | 3 | 0 | 0
| [[Pan Pacific Swimming Championships|Pan Pacific Championships]] | 2 | 0 | 0
| '''Total''' | '''9''' | '''3''' | '''2'''
}}
{{MedalCompetition | [[Swimming at the Summer Olympics|Olympic Games]] }}
{{MedalGold | [[2012 Summer Olympics|2012 London]] | [[Swimming at the 2012 Summer Olympics – Women's 200 metre freestyle|200 m freestyle]] }}
{{MedalGold | 2012 London | [[Swimming at the 2012 Summer Olympics – Women's 4 × 200 metre freestyle relay|4×200 m freestyle]] }}
{{MedalGold | 2012 London | [[Swimming at the 2012 Summer Olympics – Women's 4 × 100 metre medley relay|4×100 m medley]] }}
{{MedalSilver | 2012 London | [[Swimming at the 2012 Summer Olympics – Women's 400 metre freestyle|400 m freestyle]] }}
{{MedalBronze | [[2008 Summer Olympics|2008 Beijing]] | [[Swimming at the 2008 Summer Olympics – Women's 4 × 200 metre freestyle relay|4×200 m freestyle]] }}
{{MedalBronze | 2012 London | [[Swimming at the 2012 Summer Olympics – Women's 4 × 100 metre freestyle relay|4×100 m freestyle]] }}
{{MedalCompetition | [[FINA World Aquatics Championships|World Championships (LC)]] }}
{{MedalGold | [[2011 World Aquatics Championships|2011 Shanghai]] | [[Swimming at the 2011 World Aquatics Championships – Women's 4 × 200 metre freestyle relay|4×200 m freestyle]] }}
{{MedalSilver | [[Swimming at the 2009 World Aquatics Championships|2009 Rome]] | [[Swimming at the 2009 World Aquatics Championships – Women's 200 metre freestyle|200 m freestyle]] }}
{{MedalSilver | 2009 Rome | [[Swimming at the 2009 World Aquatics Championships – Women's 4 × 200 metre freestyle relay|4×200 m freestyle]] }}
{{MedalCompetition | [[FINA World Swimming Championships (25 m)|World Championships (SC)]] }}
{{MedalGold | [[2012 FINA World Swimming Championships (25 m)|2012 Istanbul]] | [[2012 FINA World Swimming Championships (25 m) – Women's 200 metre freestyle|200 m freestyle]] }}
{{MedalGold | 2012 Istanbul | [[2012 FINA World Swimming Championships (25 m) – Women's 4 × 100 metre freestyle relay|4×100 m freestyle]] }}
{{MedalGold | 2012 Istanbul | [[2012 FINA World Swimming Championships (25 m) – Women's 4 × 200 metre freestyle relay|4×200 m freestyle]] }}
{{MedalCompetition | [[Pan Pacific Swimming Championships|Pan Pacific Championships]] }}
{{MedalGold | [[2010 Pan Pacific Swimming Championships|2010 Irvine]] | [[2010 Pan Pacific Swimming Championships – Women's 200 metre freestyle|200 m freestyle]] }}
{{MedalGold | 2010 Irvine | [[Swimming at the 2015 Pan American Games – Women's 4 × 200 metre freestyle relay|4×200 m freestyle]] }}
}}

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.

Here is a basic demonstration of the MedalBox template usage:

International medals
Men's ice hockey
Representing  കാനഡ
World Junior Championships
Gold medal – first place 2005 Grand Forks
Silver medal – second place 2004 Helsinki
World Junior U18 Championships
Gold medal – first place 2003 Yaroslavl
Eight Nations Cup
Gold medal – first place 2002 Slovakia
{{MedalBox|title=International medals|sport=Men's [[ice hockey]]|country={{ih|CAN}}|medals=
{{Medal|Competition|[[World Junior Ice Hockey Championships|World Junior Championships]]}}
{{Medal|Gold|[[2005 World Junior Ice Hockey Championships|2005 Grand Forks]]|}}
{{Medal|Silver|[[2004 World Junior Ice Hockey Championships|2004 Helsinki]]|}}
{{Medal|Competition|[[IIHF World U18 Championships|World Junior U18 Championships]]}}
{{Medal|Gold|[[2003 IIHF World U18 Championships|2003 Yaroslavl]]|}}
{{Medal|Competition|[[Ivan Hlinka Memorial Tournament|Eight Nations Cup]]}}
{{Medal|Gold|[[2002 Ivan Hlinka Memorial Tournament|2002 Slovakia]]|}}
}}

Historical templates

[തിരുത്തുക]
Deprecated TableTop templates
{{MedalTop}} and {{MedalTopPic}} – use {{MedalTableTop}} with {{Medal|Competition|Olympic Games}}
{{MedalTop3}} – (for Paralympic Games) use {{MedalTableTop}}
{{MedalTableTopPic}} – use {{MedalTableTop}} with the same parameters
Deprecated Competition templates
{{MedalOlympic}} – use {{Medal|Competition|Olympic Games}}
{{MedalParalympic}} – use {{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}}
Deprecated closing template
{{MedalBottom}} - table now automatically closes by using the |medals= parameter and moving two curly brackets to the end of the templates.

Tracking categories

[തിരുത്തുക]
"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Medal_templates_documentation&oldid=2259007" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്