Bản mẫu:Infobox Olympic event

Bách khoa toàn thư mở Wikipedia
Buớc tưới chuyển hướng Bước tới tìm kiếm
Biểu tượng tài liệu Tài liệu bản mẫu [xem] [sửa] [lịch sử] [làm mới]

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

{{{event}}}
tại Thế vận hội
[[Tập tin:{{{image}}}|frameless]]
{{{caption}}}
Các địa điểm{{{venues}}}
Địa điểm{{{venue}}}
Thời gian{{{dates}}}
Thời gian{{{date}}}
Số nội dung{{{num_events}}}
Số VĐV{{{competitors}}} từ {{{nations}}} quốc gia
{{{team_descriptor}}}{{{teams}}}
Thời gian về nhất{{{win_value}}}
Người đoạt huy chương
1 {{{gold}}}
1 {{{gold2}}}
1 {{{gold3}}}
2 {{{silver}}}
2 {{{silver2}}}
2 {{{silver3}}}
3 {{{bronze}}}
3 {{{bronze2}}}
3 {{{bronze3}}}
← {{{prev}}}
{{{next}}} →
{{Infobox Olympic event
| event = 
| games = 
| image = 
| caption = 
| venue = <!-- or: venues -->
| date = <!-- or: dates, use {{Start date|YYYY|MM|DD}} -->
| num_events = 
| competitors = 
| nations = 
| teams = 
| win_value = 
| gold = 
| goldNOC = 
| gold2 = 
| goldNOC2 = 
| gold3 = 
| goldNOC3 = 
| silver = 
| silverNOC = 
| silver2 = 
| silverNOC2 = 
| silver3 = 
| silverNOC3 = 
| bronze = 
| bronzeNOC = 
| bronze2 = 
| bronzeNOC2 = 
| bronze3 = 
| bronzeNOC3 = 
| prev = 
| next = 
}}

Các thông số[sửa mã nguồn]

event
Required for infobox title
games
String such as Mùa hè 2008 or Mùa đông 2006, for example
image
(Optional) complete image syntax
caption
(Optional) displays under the image
venue or venues
Required
date or dates
Required, date(s) of the competition. Use {{Start date}} (and {{End date}}) for the first (and last), over multiple lines if necessary.
competitors
Optional, total number of competitors for individual events
nations
Optional, total number of unique nations represented in this event
teams
Optional, number of teams in the tournament for team sports
governing_body
Optional, name of International Governing body for the sport
win_value
Optional, winning time or score. Use win_label = Winning score to change the label from Winning time to Winning score, for example.
gold, silver, bronze
Athlete name or team name. Use gold = {{flagIOCteam|CHN|Mùa hè 2008}} (for example) for a team name, instead of giving a full list of athletes. For duos and small teams, separate entries with {{Plainlist}}
goldNOC, silverNOC, bronzeNOC
(Optional) country code for the gold medal winner. Do not specify this if the gold parameter specifies a team name instead of an individual name.
gold2 and goldNOC2
As for gold and goldNOC, but used for situations where there is a tie for first place and two gold medals are awarded (The template currently supports up to three of each medal type.).
prev
Link to article on the same event/sport from the previous edition of the Olympic Games
next
Link to article on the same event/sport from the following edition of the Olympic Games

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

Men's 400 metre individual medley
tại Thế vận hội
Michael Phelps Ryan Lochte Laszlo Cseh medals 2008 Olympics.jpg
Medal winners
Địa điểmBeijing National Aquatics Center
Thời gian9 tháng 8, 2008 (2008-08-09) (heats)
10 tháng 8, 2008 (2008-08-10) (final)
Số VĐV29 từ 22 quốc gia
Người đoạt huy chương
1 Michael Phelps  Hoa Kỳ
2 László Cseh  Hungary
3 Ryan Lochte  Hoa Kỳ
← 2004
2012 →


{{Infobox Olympic event
| event = Men's 400 metre individual medley
| games = 2008 Summer
| image = Michael Phelps Ryan Lochte Laszlo Cseh medals 2008 Olympics.jpg
| image_size = 240px
| caption = Medal winners
| venue = [[Beijing National Aquatics Center]]
| dates = {{Start date|2008|08|09}} (heats)<br/>{{End date|2008|08|10}} (final)
| competitors = 29
| nations = 22
| gold = [[Michael Phelps]]
| goldNOC = USA
| silver = [[László Cseh]]
| silverNOC = HUN
| bronze = [[Ryan Lochte]]
| bronzeNOC = USA
| prev = [[Swimming at the 2004 Summer Olympics – Men's 400 metre individual medley|2004]]
| next = [[Swimming at the 2012 Summer Olympics – Men's 400 metre individual medley|2012]]
}}

Microformat[sửa mã nguồn]

The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
Classes used

The HTML classes this microformat uses include:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent
Please do not rename or remove these classes
nor collapse nested elements which use them.