Bản mẫu:Infobox Pan American Games event/doc

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

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

{{Infobox Pan American Games event
| event       = 
| year        = 
| image       = 
| image_size  = 
| alt         = 
| caption     = 
| venue       = 
| venues      = 
| date        = 
| start_date  = {{Start date|YYYY|MM|DD|mf=y}}
| end_date    = {{End date|YYYY|MM|DD|mf=y}}
| competitors = 
| nations     = 
| teams       = 
| win_label   = 
| win_value   = 
| website     = {{Official URL|}}
| gold        = 
| goldNOC     = 
| gold2       = 
| goldNOC2    = 
| silver      = 
| silverNOC   = 
| bronze      = 
| bronzeNOC   = 
| prev        = 
| next        = 
}}

Tham số[sửa mã nguồn]

event
(required) Name of the individual event only
year
(required) Year such as 2006 or 1954, for example
image
file name of the image
image_size
(optional) specify width or size in px
alt
alt text for the image
caption
(optional) displayed below the image
venue or venues
(either of the two is required)
date
required for single-day events.
start_date and end_date
required for multi-day events. Use {{Start date|YYYY|MM|DD|mf=y}} and {{End date|YYYY|MM|DD|mf=y}}
competitors
(optional) total number of competitors for individual events
teams
(optional, only in team-sports) number of teams in the tournament for team sports
nations
(optional) total number of unique nations represented
win_time or win_score
winning time or score; choice of parameter affects the label.
win_label and win_value
use this to specify an alternative label and value
gold, silver, bronze
Athlete name or team name. Use |gold={{flagPASOteam|IND|2010}} (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) PASO 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 |gold_nation=, 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 Pan American Games
next
Link to article on the same event/sport from the following edition of the Pan American Games

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

Individual event[sửa mã nguồn]

Boxing at the 2011 Pan American Games – Welterweight

Boxing – Men's welterweight
tại Đại hội Thể thao Liên châu Mỹ
Địa điểmExpo Guadalajara Arena
Ngày bắt đầu22 tháng 10 năm 2011 (2011-10-22)
Ngày kết thúc29 tháng 10 năm 2011 (2011-10-29)
Vận động viên11 từ 11 quốc gia
Danh sách huy chương
Huy chương gold    Cuba
Huy chương silver    México
Huy chương bronze    Canada
Huy chương bronze    Brasil
← 2007
2015 →
{{Infobox Pan American Games event
| event       = Boxing – Men's welterweight
| year        = 2011
| image       = Boxing pictogram.svg
| image_size  = 80px
| venue       = [[Expo Guadalajara Arena]]
| start_date  = {{start date|2011|10|22}}
| end_date    = {{end date|2011|10|29}}
| competitors = 11
| nations     = 11
| gold        = [[Carlos Banteux]]
| goldNOC     = CUB
| silver      = [[Oscar Molina]]
| silverNOC   = MEX
| bronze      = [[Mian Hussain]]
| bronzeNOC   = CAN
| bronze2     = [[Myke Carvalho]]
| bronzeNOC2  = BRA
| prev        = [[Boxing at the 2007 Pan American Games|2007]]
| next        = [[Boxing at the 2015 Pan American Games – Men's Welterweight|2015]]
}}

Team event[sửa mã nguồn]

Archery at the 2015 Pan American Games – Men's team

Archery – Men's team
tại Đại hội Thể thao Liên châu Mỹ 2015
Địa điểmVarsity Stadium
Các ngàyJuly 14–17
Vận động viên21 từ 7 quốc gia
Danh sách huy chương
Huy chương gold    México
Huy chương silver    Hoa Kỳ
Huy chương bronze    Brasil
← 2011
{{Infobox Pan American Games event
| event       = Archery – Men's team
| games       = 2015
| image       = Archery pictogram.svg
| image_size  = 80px
| caption     = 
| venue       = [[Varsity Stadium]]
| dates       = July 14–17
| competitors = 21
| nations     = 7
| win_value   = 
| win_label   = Winning score
| gold        = {{ubl|[[Juan René Serrano]]  |[[Ernesto Horacio Boardman]]|[[Luis Álvarez (archer)|Luis Álvarez]]}}
| goldNOC     = MEX
| silver      = {{ubl|[[Zach Garrett]] |[[Brady Ellison]]|[[Collin Klimitchek]]}}
| silverNOC   = USA
| bronze      = {{ubl|[[Marcus Vinicius D'Almeida]]|[[Bernardo Oliveira]]|[[Daniel Xavier]]}}
| bronzeNOC   = BRA
| prev        = [[Archery at the 2011 Pan American Games – Men's team|2011]]
| next        = 
}}

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.

Tracking category[sửa mã nguồn]

Xem thêm[sửa mã nguồn]