Templat:Infobox Commonwealth Games event

Sukan Komanwel
Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

Ini adalah pembalut untuk Templat:Infobox sports competition event.

Penggunaan sunting

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

Parameter sunting

event
(perlu) Nama pertandingan sahaja
year
(perlu) Tahun cth 2006 atau 1954
image
nama fail imej
image_size
(pilihan) nyatakan lebar atau saiz dalam px
alt
alt text untuk imej
caption
(pilihan) dipaparkan di bawah imej
venue or venues
(salah satunya mesti dinyatakan)
date
perlu jika pertandingan hanya dalam satu hari.
start_date and end_date
perlu untuk pertandingan dalam banyak hari. Guna {{Start date|YYYY|MM|DD|df=y}} dan {{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={{flagCGFteam|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

Contoh sunting

Women's 10 metre air pistol pairs
di 2010 Sukan Komanwel
Medal winners
TempatDr. Karni Singh Shooting Range
Tarikh12 Oktober 2010 (2010-10-12)
Pesaing8 pairs dari 8 negara
Winning points75921
Pemenang pingat
gold medal    India
silver medal    Australia
bronze medal    Kanada
← 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]]
}}

Mikroformat sunting

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.

Lihat juga sunting