Jump to content

Fyrimynd:Infobox Olympic games/doc

Frá Wikipedia, hin frælsa alfrøðin
{{Infobox Olympic games|Year|Season| <!-- 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 -->
}}

Some parameters are not customizable and display a default value according to mandatory parameters Year and Season:

  • Host city
Name of the city where the Games were hosted (values provided by sub-template {{Infobox Olympic games/host city}})
  • Events
Total number of events and sports contested at the Games (values provided by sub-template {{Infobox Olympic games/events}})
  • Opening ceremony
Date of the opening ceremony of the Games (values provided by sub-template {{Infobox Olympic games/opening ceremony}})
  • Closing ceremony
Date of the closing ceremony of the Games (values provided by sub-template {{Infobox Olympic games/closing ceremony}})

Here is an example of the infobox displaying content about the 2000 Summer Olympics:

XXIII Olympisku leikirnir
Vertsbýur Sarajevo, Jugoslavia
Luttakandi tjóðir 144
Luttakandi ítróttafólk 6,829 (5,263 men, 1,566 women)
Kappingar 221 in 21 sports
Byrjunarhátíðarhald July 28
Endahátíðarhald August 12
Læt upp alment President Ronald Reagan
Ítróttarfólksins lyfti Edwin Moses (athlete)
Dómarans lyfti Sharon Heber
Olympiskur kyndil Rafer Johnson (decathlete)
Stadion Los Angeles Memorial Coliseum
{{Infobox Olympic games|1984|Summer|
<!-- Commented out: | image                  =  1984 Summer Olympics logo.svg --> 
| alt                    =  
| image_size             =  250
| caption                =  Los Angeles 1984 Olympic Games official emblem
| motto                  =  
| nations_participating  =  144
| athletes_participating =  6,829 (5,263 men, 1,566 women)
| events                 =  221 in 21 sports
| officially_opened_by   =  [[President of the United States|President]] [[Ronald Reagan]]
| officially_closed_by   =  
| athlete's_oath         =  [[Edwin Moses]] (athlete)
| judge's_oath           =  Sharon Heber
| Olympic_torch          =  [[Rafer Johnson]] (decathlete)
}}

Microformat

[rætta wikitekst]

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.