Jump to content

Template:Infobox Commonwealth Games event/doc

From Wikipedia, the free encyclopedia

This is a customized wrapper for Template:Infobox sports competition event.

Usage

[edit]
{{Infobox Commonwealth Games event
| event         =
| year          =
| image         =
| image_size    =
| alt           =
| caption       =
| venue         =
| venues        =
| date          =
| start_date    = {{Start date|YYYY|MM|DD|df=y}}
| end_date      = {{End date|YYYY|MM|DD|df=y}}
| competitors   =
| nations       =
| teams         =
| win_label     =
| win_value     =
| website       = {{Official URL|}}
| gold          =
| gold_nation   =
| gold2         =
| gold2_nation  =
| silver        =
| silver_nation =
| bronze        =
| bronze_nation =
| previous      =
| next          =
}}

Parameters

[edit]
event
(required) Name of the individual event only
year
(required) Year such as 2006 or 1954, for example
image
file name of the image
image_size
(optional) specify width or size in px
alt
alt text for the image
caption
(optional) displayed below the image
venue or venues
(either of the two is required)
date
required for single-day events.
start_date and end_date
required for multi-day events. Use {{Start date|YYYY|MM|DD|df=y}} and {{End date|YYYY|MM|DD|df=y}}
competitors
(optional) total number of competitors for individual events
teams
(optional, only in team-sports) number of teams in the tournament for team sports
nations
(optional) total number of unique nations represented
win_time or win_score
winning time or score; choice of parameter affects the label.
win_label and win_value
use this to specify an alternative label and value
gold, silver, bronze
Athlete name or team name. Use |gold={{flag CGF team|IND|2010}} (for example) for a team name, instead of giving a full list of athletes. For duos and small teams, separate entries with {{plainlist}}
gold_nation, silver_nation, bronze_nation
(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 gold2_nation
As for |gold= and |gold_nation=, 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.).
previous
Link to article on the same event/sport from the previous edition of the Commonwealth Games
next
Link to article on the same event/sport from the following edition of the Commonwealth Games

Example

[edit]
Women's 10 metre air pistol pairs
at the 2010 Commonwealth Games
Medal winners
VenueDr. Karni Singh Shooting Range
Date12 October 2010 (2010-10-12)
Competitors8 pairs from 8 nations
Winning points75921
Medalists
gold medal    India
silver medal    Australia
bronze medal    Canada
← 2006
2014 →
{{Infobox Commonwealth Games event
| event         = Women's 10 metre air pistol pairs
| year          = 2010
| image         = 2010 CWG 10 metre air pistol pairs women.png
| image_size    = 240px
| caption       = Medal winners
| venue         = [[Dr. Karni Singh Shooting Range]]
| date          = {{Start date|2010|10|12|df=yes}}
| competitors   = 8 pairs
| nations       = 8
| win_label     = Winning points
| win_value     = 759<sup>21</sup>
| gold          = [[Heena Sidhu]]<br />[[Annu Raj Singh]]
| gold_nation   = IND
| silver        = [[Dina Aspandiyarova]]<br />[[Pamela McKenzie]]
| silver_nation = AUS
| bronze        = [[Dorothy Ludwig]]<br />[[Lynda Hare]]
| bronze_nation = CAN
| previous      = [[Shooting at the 2006 Commonwealth Games – Women's 10 metre air pistol pairs|2006]]
| next          = [[Shooting at the 2014 Commonwealth Games – Women's 10 metre air pistol pairs|2014]]
}}

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.

See also

[edit]