ទំព័រគំរូ:Infobox Olympic event
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template adds an automatically generated short description. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of article. |
This template uses Lua: |
Usage
[កែប្រែ]{{{event}}} | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:{{{image}}}|frameless]] {{{caption}}} | ||||||||||||||||||||||||||||||
ទីកន្លែង | {{{venues}}} | |||||||||||||||||||||||||||||
ទីកន្លែង | {{{venue}}} | |||||||||||||||||||||||||||||
Dates | {{{dates}}} | |||||||||||||||||||||||||||||
កាលបរិច្ឆេទ | {{{date}}} | |||||||||||||||||||||||||||||
No. ចំនួនព្រឹត្តិការណ៍ | {{{num_events}}} | |||||||||||||||||||||||||||||
អ្នកប្រកួតប្រជែង | {{{competitors}}} from {{{nations}}} nations | |||||||||||||||||||||||||||||
{{{team_descriptor}}} | {{{teams}}} | |||||||||||||||||||||||||||||
Winning time | {{{win_value}}} | |||||||||||||||||||||||||||||
Medalists | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
{{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 =
}}
Parameters
[កែប្រែ]- event
- Required for infobox title
- games
- String such as
2008 Summer
or2006 Winter
, for example - image
- (Optional) image filename only
- image_size
- (Optional) defaults to 220px
- alt
- (Optional) alt text, see WP:MOSALT for more
- caption
- (Optional) displays under the image
- venue or venues
- Required
- num_events
- (Optional) total number of competitions for one "event" such as Alpine skiing
- 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
- 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 = {{flag IOC team|CHN|2008 Summer}}
(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
andgoldNOC
, 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
Example
[កែប្រែ]Men's 400 metre individual medley | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Medal winners | |||||||||||||||
ទីកន្លែង | Beijing National Aquatics Center | ||||||||||||||
Dates | 9 សីហា 2008 សីហា 10, 2008 (final) | (heats)||||||||||||||
អ្នកប្រកួតប្រជែង | 29 from 22 nations | ||||||||||||||
Medalists | |||||||||||||||
| |||||||||||||||
{{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
[កែប្រែ]The HTML mark up produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.
Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates; but do not use any of these if the date is before 1583 CE).
URLs will only be included if you use {{URL}}.
hCalendar uses HTML classes including:
- 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 categories
[កែប្រែ]See also
[កែប្រែ]- Supporting template
- Similar templates