টেমপ্লেট:MedalTableTop

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
সরাসরি যাও: পরিভ্রমণ, অনুসন্ধান
MedalTableTop
পদক রেকর্ড
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

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 (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.

Parameters[সম্পাদনা]

MedalTableTop[সম্পাদনা]

Michael Johnson
Alternative text here
Johnson at the London Olympic Stadium
পদক রেকর্ড
Men's athletics
 যুক্তরাষ্ট্র-এর প্রতিনিধিত্বকারী
{{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}}
}}
পদক রেকর্ড
Women's basketball
 পোল্যান্ড-এর প্রতিনিধিত্বকারী
European Championships
স্বর্ণ পদক - প্রথম স্থান 1999 Poland Team competition
{{MedalTableTop | name = no | sport = Women's [[basketball]] | country = {{bkw|POL}} | medals =
{{MedalCompetition | [[EuroBasket Women|European Championships]] }}
{{MedalGold | [[EuroBasket Women 1999|1999 Poland]] | Team competition }}
}}
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, 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  বাহামা দ্বীপপুঞ্জ), GAM (the  গাম্বিয়া), GBR (the  যুক্তরাজ্য), MHL (the  মার্শাল দ্বীপপুঞ্জ), NED (the  নেদারল্যান্ডস), PHI (the  ফিলিপাইন), SEY (the  সেশেল), SOL (the  সলোমন দ্বীপপুঞ্জ), UAE (the  সংযুক্ত আরব আমিরাত), URS (the  সোভিয়েত ইউনিয়ন), and USA (the  যুক্তরাষ্ট্র). 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 displays  ব্রাজিল (same output as with |country_code=BRA), {{bkw|Poland}} which displays  পোল্যান্ড (links to Poland women's national basketball team article), or {{ih|CAN}} which displays  কানাডা (links to Canada men's national ice hockey team). Include "the" where appropriate (e.g. the {{BAH}}, the {{GAM}}, the {{GBR}}, the {{MHL}}, the {{NED}}, the {{PHI}}, the {{SEY}}, the {{SOL}}, the {{UAE}}, 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
 ব্রাজিল-এর প্রতিনিধিত্বকারী
Olympic Games
রৌপ্য পদক - দ্বিতীয় স্থান 2012 London Team
{{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]]}}
}}

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 displays  ব্রাজিল (links to Brazil article), {{bkw|Poland}} which displays  পোল্যান্ড (links to Poland women's national basketball team article), or {{ih|CAN}} which displays  কানাডা (links to Canada men's national ice hockey team). Include "the" where appropriate (e.g. the {{BAH}}, the {{GAM}}, the {{GBR}}, the {{MHL}}, the {{NED}}, the {{PHI}}, the {{SEY}}, the {{SOL}}, the {{UAE}}, 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[সম্পাদনা]

পদক রেকর্ড
Men's athletics
 যুক্তরাষ্ট্র-এর প্রতিনিধিত্বকারী
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
বিজয়ী 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
দ্বিতীয় স্থান 2012 TEST 100 m
দ্বিতীয় স্থান 2012 TEST 100 m
তৃতীয় স্থান 2012 TEST 100 m
তৃতীয় স্থান 2012 TEST 100 m
অযোগ্য 2012 TEST 100 m
অযোগ্য 2012 TEST 100 m
Olympic rings with white rims.svg পিয়ের দে কুবের্তিন পদক 2012
Olympic rings with white rims.svg পিয়ের দে কুবের্তিন পদক 2012
Men's bobsled
 জামাইকা-এর প্রতিনিধিত্বকারী
World Bobsled Championships
অযোগ্য 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|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}}
}}

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[সম্পাদনা]

পদক রেকর্ড
অযোগ্য 2012 TEST 100 m[১]
{{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

TrueSpirit[সম্পাদনা]

পদক রেকর্ড
Olympic rings with white rims.svg পিয়ের দে কুবের্তিন পদক 2012
{{MedalTableTop|name=no|medals=
{{Medal|TrueSpirit|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[সম্পাদনা]

পদক রেকর্ড
Men's road bicycle racing
 গ্রেট ব্রিটেন-এর প্রতিনিধিত্বকারী
Olympic Games
ব্রোঞ্জ পদক - তৃতীয় স্থান 2012 London Event
Men's triathlon
 ইংল্যান্ড-এর প্রতিনিধিত্বকারী
Commonwealth Games
স্বর্ণ পদক - প্রথম স্থান 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}}
}}


পদক রেকর্ড
Men's road bicycle racing
 গ্রেট ব্রিটেন-এর প্রতিনিধিত্বকারী
Olympic Games
ব্রোঞ্জ পদক - তৃতীয় স্থান 2012 London Event
Men's triathlon
 ইংল্যান্ড-এর প্রতিনিধিত্বকারী
Commonwealth Games
স্বর্ণ পদক - প্রথম স্থান 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

  • 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 {{UAE}}, the {{GBR}}, the {{BAH}}, the {{NED}}, the {{PHI}}, the {{SEY}}, the {{GAM}}, the {{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.

Athlete name
Alt text for image
পদক রেকর্ড
Men's athletics
 অস্ট্রেলিয়া-এর প্রতিনিধিত্বকারী
Olympic Games
স্বর্ণ পদক - প্রথম স্থান 2000 Sydney 100 m
Commonwealth Games
রৌপ্য পদক - দ্বিতীয় স্থান 2006 Melbourne 200 m
ব্রোঞ্জ পদক - তৃতীয় স্থান 2006 Melbourne 400 m
{{MedalTableTop |name=Athlete name |image=Example-serious.jpg |image_size=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 }}
}}





MedalBox[সম্পাদনা]

Here is a basic demonstration of the MedalBox template usage:

International medals
Men's ice hockey
 কানাডা-এর প্রতিনিধিত্বকারী
World Junior Championships
স্বর্ণ পদক - প্রথম স্থান 2005 Grand Forks
রৌপ্য পদক - দ্বিতীয় স্থান 2004 Helsinki
World Junior U18 Championships
স্বর্ণ পদক - প্রথম স্থান 2003 Yaroslavl
Eight Nations Cup
স্বর্ণ পদক - প্রথম স্থান 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.