Bản mẫu:Hộp thông tin Thế vận hội

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

Bản mẫu:Bad documentation

Cách sử dụng sửa

{{Hộp thông tin Thế vận hội|Năm|Mùa| <!-- IMPORTANT: keep the pipe after "Season" on the same line for the template to work properly -->
| image                  =  <!-- internal link to the logo image file -->
| alt                    =  <!-- alternative text for the logo image -->
| image_size             =  <!-- custom size for the logo image -->
| caption                =  <!-- optional caption for the logo-->
| motto                  =  <!-- the motto/slogan of the Games -->
| nations_participating  =  <!-- total number of participating National Olympic Committees (NOCs) -->
| athletes_participating =  <!-- total number of participating athletes -->
| officially_opened_by   =  <!-- person who officially opened the Games -->
| athlete's_oath         =  <!-- athlete who swore the Olympic Oath -->
| judge's_oath           =  <!-- judge/official who swore the Olympic Oath -->
| coach's_oath           =  <!-- coach who swore the Olympic Oath -->
| Olympic_torch          =  <!-- last torch bearer -->
| previous               =  <!-- for events with no Summer/Winter: The previous Games -->
| next                   =  <!-- For events with no Summer/Winter: The next Games -->
| SpreviousS             =  <!-- for Summer articles only: The previous Olympic Summer Games -->
| SnextS                 =  <!-- for Summer articles only: The next Olympic Summer Games -->
| Sprevious              =  <!-- for Summer articles only: The previous Olympic Winter Games -->
| Snext                  =  <!-- for Summer articles only: The next Olympic Winter Games -->
| Wprevious              =  <!-- for Winter articles only: The previous Olympic Winter Games -->
| Wnext                  =  <!-- for Winter articles only: The next Olympic Winter Games -->
| WpreviousS             =  <!-- for Winter articles only: The previous Olympic Summer Games -->
| WnextS                 =  <!-- for Winter articles only: The next Olympic Summer Games -->
}}

Một số tham số không thể tùy chỉnh và hiển thị một giá trị mặc định theo các tham số bắt buộc YearSeason:

  • Thành phố chủ nhà
Tên thành phố nơi Đại hội thể thao đã được tổ chức (các giá trị được cung cấp bởi bản mẫu con {{Hộp thông tin Thế vận hội/thành phố chủ nhà}})
  • Nội dung
Tổng số nội dung và môn thể thao được tranh tài tại Đại hội thể thao (các giá trị được cung cấp bởi bản mẫu con {{Hộp thông tin Thế vận hội/nội dung thi đấu}})
  • Sân vận động Olympic
Tên sân vận động Olympic chính của Đại hội thể thao (các giá trị được cung cấp bởi bản mẫu con {{Hộp thông tin Thế vận hội/sân vận động}})
  • Lễ khai mạc
Ngày lễ khai mạc của Đại hội thể thao (các giá trị được cung cấp bởi bản mẫu con {{Hộp thông tin Thế vận hội/lễ khai mạc}})
  • Lễ bế mạc
Ngày lễ bế mạc của Đại hội thể thao (các giá trị được cung cấp bởi bản mẫu con {{Hộp thông tin Thế vận hội/lễ bế mạc}})

Ví dụ sửa

Dưới đây là một ví dụ của hộp thông tin hiển thị nội dung về Thế vận hội Mùa hè 2000:

Ví dụ hình ảnh
Biểu trưng chính thức của Thế vận hội Sydney 2000
Khẩu hiệuChia sẻ tinh thần
{{Hộp thông tin Thế vận hội|2000|Mùa hè|
| image                  =  Example.svg 
| alt                    =  Ví dụ hình ảnh
| image_size             =  200
| caption                =  Biểu trưng chính thức của Thế vận hội Sydney 2000
| motto                  =  Chia sẻ tinh thần
| nations_participating  =  199
| athletes_participating =  10.651<br />(6.582 nam, 4.069 nữ)
| officially_opened_by   =  [[William Deane]]
| athlete's_oath         =  [[Rechelle Hawkes]]
| judge's_oath           =  [[Peter Kerr (bóng nước)|Peter Kerr]]
| Olympic_torch          =  [[Cathy Freeman]]
| SpreviousS             =  [[Thế vận hội Mùa hè 1996|Atlanta 1996]]
| SnextS                 =  [[Thế vận hội Mùa hè 2004|Athens 2004]]
| Sprevious              =  [[Thế vận hội Mùa đông 1998|Nagano 1998]]
| Snext                  =  [[Thế vận hội Mùa đông 2002|Thành phố Salt Lake 2002]]
}}

Siêu định dạng sửa

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.