Bản mẫu:MedalBottom

Bách khoa toàn thư mở Wikipedia

|}

Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Hộp thông tin huy chương 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.

Cách sử dụng[sửa mã nguồn]

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.

Thông số[sửa mã nguồn]

MedalTableTop[sửa mã nguồn]

Michael Johnson
Alternative text here
Johnson tại sân vận động Olympic Luân Đôn
Thành tích huy chương
Nam của Điền kinh
Đại diện cho  Hoa Kỳ
Cách sử dụng đơn giản
{{MedalTableTop|image=|imagesize=|alt=|caption=|name=|sport=|country_code=|medals=}}
  • 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 Tập tin: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.
  • 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.
  • header This optional field can be used to change the text in the opening "Thành tích huy chương" 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. Nam của bơi lội) 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.

Medal[sửa mã nguồn]

Thành tích huy chương
Nam của Điền kinh
Đại diện cho  Hoa Kỳ
Thế vận hội
Huy chương vàng – vị trí thứ nhất TEST 2012 100 m
Huy chương bạc – vị trí thứ hai TEST 2012 100 m
Huy chương đồng – vị trí thứ ba TEST 2012 100 m
Vô địch TEST 2012 100 m
Á quân TEST 2012 100 m
Vị trí thứ nhất TEST 2012 100 m
Vị trí thứ hai TEST 2012 100 m
Vị trí thứ ba TEST 2012 100 m
TEST 2012 100 m
Bị loại TEST 2012 100 m
Nam của bobsled
Đại diện cho  Jamaica
Vô địch Bobsled thế giới
Bị loại TEST 2013 Bobsled

The Medal template is a multi-purpose one which allows for all varieties of entries within the medal table.

Cách sử dụng đơn giản
{{Medal|TYPE|FIELD1|FIELD2}}

There are four major types:

  • Competition This states the general competition at which the following medals were achieved (e.g. Thế vận hội, 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. Bắc Kinh 2008, Delhi 2010) and the medalling event or category (e.g. pole vault, 56 kg, 50 m freestyle). The medal types are (with shortcut in brackets):
    • Vàng (G)
    • Bạc (S)
    • Đồng (B)
    • Vô địch (W)
    • Á quân (RU)
    • Hạng nhất (1st)
    • Hạng nhì (2nd)
    • Hạng ba (3rd)
    • Playoffs (PO)
    • Bị loại (DQ)
Thành tích huy chương
Huy chương Pierre de Coubertin 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.

Thành tích huy chương
Bị loại TEST 2012 100 m[1]

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

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. Nữ của bơi lội)

MedalBox[sửa mã nguồn]

Huy chương quốc tế
Nam của Khúc côn cầu trên băng
Đại diện cho  Canada
Giải vô địch thế giới
Huy chương bạc – vị trí thứ hai Thụy Điển 1989 Khúc côn cầu trên băng

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

Cách sử dụng đơn giản
{{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 "Thành tích huy chương".
  • sport This displays the athlete's primary sport (e.g. "Nam của Khúc côn cầu trên băng"). 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.

Ví dụ[sửa mã nguồn]

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.

{{MedalTableTop|image=Example-serious.jpg|imagesize=150px|alt=Alt text for image|name=Tên vận động viên
|sport=Nam của [[Điền kinh]]|country_code=AUS|medals=
{{Medal|Competition|[[Thế vận hội]]}}
{{Medal|Gold|[[Thế vận hội Mùa hè 2000|Sydney 2000]] | [[Điền kinh tại Thế vận hội Mùa hè 2000 – Nam 100 mét|100 m]] }}
{{Medal|Competition|[[Đại hội thể thao Khối Thịnh vượng chung]]}}
{{Medal|Silver|[[Đại hội thể thao Khối Thịnh vượng chung 2006|Melbourne 2006]] | [[Điền kinh tại Đại hội thể thao Khối Thịnh vượng chung 2006|200 m]] }}
{{Medal|Bronze|Melbourne 2006| 400 m }}
}}
Tên vận động viên
Alt text for image
Thành tích huy chương
Nam của Điền kinh
Đại diện cho  Úc
Thế vận hội
Huy chương vàng – vị trí thứ nhất Sydney 2000 100 m
Đại hội thể thao Khối Thịnh vượng chung
Huy chương bạc – vị trí thứ hai Melbourne 2006 200 m
Huy chương đồng – vị trí thứ ba Melbourne 2006 400 m
Example: Competitor who has won medals in different sports, competing for the same country
MedalBottom
Thành tích huy chương
Đại diện cho  Anh
Nữ của Chèo thuyền
Thế vận hội
Huy chương bạc – vị trí thứ hai Athens 2004 Quadruple sculls
Nữ của Xe đạp lòng chảo
Olympic Games
Huy chương vàng – vị trí thứ nhất Bắc Kinh 2008 Đạp cá nhân

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
MedalBottom
Thành tích huy chương
Nữ của cầu lông
Thế vận hội
Đại diện cho  Indonesia
Huy chương bạc – vị trí thứ hai Atlanta 1996 Cá nhân
Đại diện cho  Hà Lan
Huy chương bạc – vị trí thứ hai Athens 2004 Cá nhân

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.

MedalBottom
Thành tích huy chương
Nữ của cầu lông
Đại diện cho  Đan Mạch
Thế vận hội
Huy chương bạc – vị trí thứ hai Atlanta 1996 Cá nhân
Giải vô địch châu Âu
Huy chương đồng – vị trí thứ ba Malmö 2002 Cá nhân
Đại diện cho  Thụy Điển
Thế vận hội
Huy chương bạc – vị trí thứ hai Athens 2004 Cá nhân

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
Mary Wayte
Thông tin cá nhân
Họ và tênMary Alice Wayte
National team Hoa Kỳ
SinhMercer Island, Washington
Cao5 ft 9 in (1,75 m)
Nặng128 lb (58 kg)
Thể thao
Môn thể thaoBơi
Kiểu bơiFreestyle, Individual medley
Câu lạc bộChinook Aquatic Club
Đội tuyển sinh viênĐại học Florida
Thành tích huy chương
Nữ của bơi lội
Đại diện cho Hoa Kỳ
Thế vận hội
Huy chương vàng – vị trí thứ nhất 1984 Los Angeles 200 m freestyle
Huy chương vàng – vị trí thứ nhất 1984 Los Angeles 4x100 m freestyle
Huy chương bạc – vị trí thứ hai 1988 Seoul 4x100 m medley
Huy chương đồng – vị trí thứ ba 1988 Seoul 4x100 m freestyle
World Championships (LC)
Huy chương bạc – vị trí thứ hai 1986 Madrid 4x200 m freestyle
Pan American Games
Huy chương vàng – vị trí thứ nhất 1983 Caracas 4x100 m freestyle
Huy chương bạc – vị trí thứ hai 1983 Caracas 200 m freestyle
Pan Pacific Championships
Huy chương vàng – vị trí thứ nhất 1985 Tokyo 4x200 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.

Medalbox[sửa mã nguồn]

Here is a basic demonstration of the MedalBox template usage:

{{MedalBox|title=Huy chương quốc tế|sport=Nam của [[Khúc côn cầu trên băng]]|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]]|}}
}}
Huy chương quốc tế
Nam của Khúc côn cầu trên băng
Đại diện cho  Canada
World Junior Championships
Huy chương vàng – vị trí thứ nhất 2005 Grand Forks
Huy chương bạc – vị trí thứ hai 2004 Helsinki
World Junior U18 Championships
Huy chương vàng – vị trí thứ nhất 2003 Yaroslavl
Eight Nations Cup
Huy chương vàng – vị trí thứ nhất 2002 Slovakia

Lịch sử các bản mẫu[sửa mã nguồn]

Deprecated TableTop templates
{{MedalTop}}{{MedalTopPic}} – sử dụng {{MedalTableTop}} with {{Medal|Competition|Thế vận hội}}
{{MedalTop3}} – (for Paralympic Games) sử dụng {{MedalTableTop}}
{{MedalTableTopPic}} – sử dụng {{MedalTableTop}} with the same parameters
Deprecated Competition templates
{{MedalOlympic}} – sử dụng {{Medal|Competition|Olympic Games}}
{{MedalParalympic}} – sử dụng {{Medal|Competition|Paralympic Games}}
{{MedalWorldChampionships}} – sử dụng {{Medal|Competition|World Championships}}
{{MedalEuropeanChampionships}} – sử dụng {{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.

Theo dõi chuyên mục[sửa mã nguồn]