• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Infobox Olympic event/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Infobox Olympic event
This is the template sandbox page for Template:Infobox Olympic event (diff).
See also the companion subpage for test cases.
Template documentationviewedithistorypurge
WarningThis template is used on approximately 8,000 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, override it by adding {{Short description}} at the top of the article.
This template uses Lua:
  • Module:Infobox (sandbox)
  • Module:InfoboxImage (sandbox)
  • Module:Check for unknown parameters (sandbox)

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Example
  • 4 Microformat
  • 5 TemplateData
  • 6 Tracking categories
  • 7 See also

Usage

edit
{{{event}}}
at the Games of the Olympiad
[[File:{{{image}}}|frameless]]
{{{caption}}}
Venues{{{venues}}}
Venue{{{venue}}}
Dates{{{dates}}}
Date{{{date}}}
No. of events{{{num_events}}}
Competitors{{{competitors}}} from {{{nations}}} nations
{{{team_descriptor}}}{{{teams}}}
Winning time{{{win_value}}}
Medalists
1st place, gold medalist(s) {{{gold}}}
1st place, gold medalist(s) {{{gold2}}}
1st place, gold medalist(s) {{{gold3}}}
2nd place, silver medalist(s) {{{silver}}}
2nd place, silver medalist(s) {{{silver2}}}
2nd place, silver medalist(s) {{{silver3}}}
3rd place, bronze medalist(s) {{{bronze}}}
3rd place, bronze medalist(s) {{{bronze2}}}
3rd place, bronze medalist(s) {{{bronze3}}}
← {{{prev}}}
{{{next}}} →
{{Infobox Olympic event
| event = 
| games = 
| image = 
| image_size = 
| 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

edit
event
Required for infobox title
games
String such as 2008 Summer or 2006 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 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

Example

edit
Men's 400 metre individual medley
at the Games of the XXIX Olympiad
Medal winners
VenueBeijing National Aquatics Center
DatesAugust 9, 2008 (2008-08-09) (heats)
August 10, 2008 (2008-08-10) (final)
Competitors29 from 22 nations
Medalists
1st place, gold medalist(s) Michael Phelps  United States
2nd place, silver medalist(s) László Cseh  Hungary
3rd place, bronze medalist(s) Ryan Lochte  United States
← 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

edit
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 of this microformat 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.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox Olympic event in articles based on its TemplateData.

TemplateData for Infobox Olympic event

Template Data

Infobox for a specific Olympic event

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
eventevent

Title for the infobox

Stringrequired
gamesgames

no description

Example
String such as 2008 Summer or 2006 Winter
Stringoptional
imageimage

no description

Unknownoptional
image_sizeimage_size

no description

Default
defaults to 220px
Stringoptional
altalt

no description

Unknownoptional
captioncaption

no description

Unknownoptional
venuevenue venues

no description

Stringrequired
datesdates

no description

Example
Use {{Start date}} (and {{End date}}) for the first (and last)
Unknownrequired
datedate

no description

Unknownoptional
num_eventsnum_events

Total number of competitions for one "event" such as Alpine skiing

Numberoptional
teamsteams

Number of teams in the tournament for team sports

Numberoptional
nationsnations

Total number of unique nations represented in this event

Numberoptional
competitorscompetitors

Total number of competitors for individual events

Numberoptional
competitors_mencompetitors_men

no description

Unknownoptional
competitors_womencompetitors_women

no description

Unknownoptional
team_descriptorteam_descriptor

no description

Unknownoptional
win_labelwin_label

Change the label from Winning time

Example
win_label = Winning score
Stringoptional
win_valuewin_value

Winning time or score. Use win_label = Winning score to change the label from Winning time to Winning score

Stringoptional
goldgold

Athlete name or team name

Example
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}}
Stringoptional
gold2gold2

As for gold, but used for situations where there is a tie for first place and two gold medals are awarded

Stringoptional
gold3gold3

no description

Unknownoptional
silversilver

Athlete name or team name

Unknownoptional
silver2silver2

As for gold, but used for situations where there is a tie for second place and two silver medals are awarded

Stringoptional
silver3silver3

no description

Unknownoptional
bronzebronze

Athlete name or team name

Unknownoptional
bronze2bronze2

As for gold, but used for situations where there is a tie for third place and two bronze medals are awarded

Stringoptional
bronze3bronze3

no description

Unknownoptional
longnameslongnames

no description

Unknownoptional
goldNOCgoldNOC

Country code for the gold medal winner. Do not specify this if the gold parameter specifies a team name instead of an individual name.

Stringoptional
goldNOC2goldNOC2

no description

Unknownoptional
goldNOC3goldNOC3

no description

Unknownoptional
silverNOCsilverNOC

Country code for the silver medal winner

Stringoptional
silverNOC2silverNOC2

no description

Unknownoptional
silverNOC3silverNOC3

no description

Unknownoptional
silver4silver4

no description

Unknownoptional
silverNOC4silverNOC4

no description

Unknownoptional
bronzeNOCbronzeNOC

Country code for the bronze medal winner

Stringoptional
bronzeNOC2bronzeNOC2

no description

Unknownoptional
bronzeNOC3bronzeNOC3

no description

Unknownoptional
prevprev

Link to article on the same event/sport from the previous edition of the Olympic Games

Page nameoptional
nextnext

Link to article on the same event/sport from the following edition of the Olympic Games

Page nameoptional

Tracking categories

edit
  • Category:Pages using infobox Olympic event with unknown parameters (4)
  • Category:Pages using Infobox Olympic event with invalid games text (0)
  • Category:Infobox Olympic event using medalist parameter without NOC parameter (347)

See also

edit
Supporting template
  • Template:Infobox Olympic event/games text
Similar templates
  • Template:Infobox Paralympic event
  • Template:Infobox sports competition event
  • Template:Infobox Asian Games event
  • Template:Infobox Commonwealth Games event
  • Template:Infobox Pan American Games event
  • Template:Infobox SEA Games event
The above documentation is transcluded from Template:Infobox Olympic event/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Infobox_Olympic_event/sandbox&oldid=1346368661"