Difference between revisions of "Template:Infobox Olympic event"

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
(From sandbox: added spaces between the next/prev links and their arrows, per edit request)
imported>Zackmann08
(updating below styling)
Line 76: Line 76:
 
}}
 
}}
  
−
| below       =
+
| below = {{align|left|{{#if: {{{prev|}}}|←{{autolink|{{{prev|}}}}} }}}}{{align|right|{{#if: {{{next|}}}|{{autolink|{{{next|}}}}}→}}}}
−
{{align|left|{{#if: {{{prev|}}}|{{autolink|{{{prev|}}} ← }} }}}}{{align|right|{{#if: {{{next|}}}|→ {{autolink|{{{next|}}}}} }}}}
+
| belowclass = hlist noprint nowrap
−
| belowclass   = hlist noprint nowrap
+
| belowstyle = {{#if: {{{prev|}}}{{{next|}}} | border-top: 1px solid #aaa; padding-top: 3px; }}
−
| belowstyle   = {{#if: {{{prev|}}}{{{next|}}} | border-top: 1px solid #aaa; padding-top: 3px; }}
 
−
 
 
 
}}</includeonly>{{main other|{{#if:{{{gold|}}}|{{#if:{{{goldNOC|}}}
 
}}</includeonly>{{main other|{{#if:{{{gold|}}}|{{#if:{{{goldNOC|}}}
 
||[[Category:Infobox Olympic event using medalist parameter without NOC parameter]]
 
||[[Category:Infobox Olympic event using medalist parameter without NOC parameter]]

Revision as of 23:33, 16 January 2017

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{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 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 = {{flagIOCteam|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

Men's 400 metre individual medley
at the Games of the XXIX Olympiad
Michael Phelps Ryan Lochte Laszlo Cseh medals 2008 Olympics.jpg
Medal winners
VenueBeijing National Aquatics Center
DatesAugust 9, 2008 (2008-08-09) (heats)
August 10, 2008 (2008-08-10) (final)
Competitors29Template:Spacefrom 22 nations
Medalists
1st place, gold medalist(s) Michael Phelps  United States
Template:Silver2 László Cseh  Hungary
3rd place, bronze medalist(s) Ryan Lochte  United States
[[Category:Infobox templates|Template:Remove first word ]]
←2004
2012→
[[Category:Infobox templates|Template:Remove first word]]
{{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

Template:UF-hcal

Tracking categories

See also

Supporting template
Similar templates