Difference between revisions of "Template:Infobox Southeast Asian Games event"

From blackwiki
Jump to navigation Jump to search
imported>Boyconga278
(Updated)
imported>PanchoS
(turn into a wrapper of Template:Infobox sports competition event; move documentation to subpage)
Line 1: Line 1:
<table class="infobox vevent" cellpadding="3" style="width:24em; text-align:left; font-size:90%; line-height:1.5em; border-collapse:collapse;">
+
{{Infobox sports competition event
<tr><td colspan="2" class="summary" style="text-align:center; font-size:125%; font-weight:bold; border-bottom:1px solid #aaa;">{{{event}}}<br />at the {{#switch:{{{games}}}
+
| event          = {{{event|}}}
|1959 = 1959 Southeast Asian Peninsular Games
+
| governing_body = SEAGF
|1961 = 1961 Southeast Asian Peninsular Games
+
| year          = {{{year|{{{games|}}}}}}
|1965 = 1965 Southeast Asian Peninsular Games
+
| image          = {{{image|}}}
|1967 = 1967 Southeast Asian Peninsular Games
+
| image_size    = {{{image_size|}}}
|1969 = 1969 Southeast Asian Peninsular Games
+
| alt            = {{{alt|}}}
|1971 = 1971 Southeast Asian Peninsular Games
+
| caption        = {{{caption|}}}
|1973 = 1973 Southeast Asian Peninsular Games
+
| venue          = {{{venue|}}}
|1975 = 1975 Southeast Asian Peninsular Games
+
| venues        = {{{venues|}}}
|1977 = 1977 Southeast Asian Games
+
| location      = {{{location|}}}
|1979 = 1979 Southeast Asian Games
+
| date          = {{{date|}}}
|1981 = 1981 Southeast Asian Games
+
| dates          = {{{dates|}}}
|1983 = 1983 Southeast Asian Games
+
| start_date    = {{{start_date|}}}
|1985 = 1985 Southeast Asian Games
+
| end_date      = {{{end_date|}}}
|1987 = 1987 Southeast Asian Games
+
| competitors    = {{{competitors|}}}
|1989 = 1989 Southeast Asian Games
+
| nations       = {{{nations|}}}
|1991 = 1991 Southeast Asian Games
+
| teams          = {{{teams|}}}
|1993 = 1993 Southeast Asian Games
+
| win_label      = {{{win_label|}}}
|1995 = 1995 Southeast Asian Games
+
| win_value      = {{{win_value|}}}
|1997 = 1997 Southeast Asian Games
+
| win_score      = {{{win_score|}}}
|1999 = 1999 Southeast Asian Games
+
| win_time      = {{{win_time|}}}
|2001 = 2001 Southeast Asian Games
+
| website        = {{{website|}}}
|2003 = 2003 Southeast Asian Games
+
| gold          = {{{gold|}}}
|2005 = 2005 Southeast Asian Games
+
| gold_nation    = {{{gold_nation|{{{goldSEAGF|}}}}}}
|2007 = 2007 Southeast Asian Games
+
| gold2         = {{{gold2|}}}
|2009 = 2009 Southeast Asian Games
+
| gold2_nation  = {{{gold2_nation|{{{goldSEAGF2|}}}}}}
|2011 = 2011 Southeast Asian Games
+
| gold3         = {{{gold3|}}}
|2013 = 2013 Southeast Asian Games
+
| gold3_nation  = {{{gold3_nation|{{{goldSEAGF3|}}}}}}
|2015 = 2015 Southeast Asian Games
+
| silver         = {{{silver|}}}
|2017 = 2017 Southeast Asian Games
+
| silver_nation  = {{{silver_nation|{{{silverSEAGF|}}}}}}
|2019 = 2019 Southeast Asian Games
+
| silver2       = {{{silver2|}}}
|2021 = 2021 Southeast Asian Games
+
| silver2_nation = {{{silver_nation|{{{silverSEAGF2|}}}}}}
|#default = Southeast Asian Games
+
| silver3       = {{{silver3|}}}
}}</td></tr>
+
| silver3_nation = {{{silver_nation|{{{silverSEAGF3|}}}}}}
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; border-bottom:1px solid #aaa;"> {{{image}}} {{#if:{{{caption|}}}|<br /><span style="font-size:95%">{{{caption}}}</span> }}</td></tr>}}<!--
+
| bronze         = {{{bronze|}}}
-->{{#if:{{{venues|}}}|<tr><th>Venues</th><td>{{{venues}}}</td></tr>}}<!--
+
| bronze_nation  = {{{bronze_nation|{{{bronzeSEAGF|}}}}}}
-->{{#if:{{{venue|}}}|<tr><th>Venue</th><td>{{{venue}}}</td></tr>}}<!--
+
| bronze2       = {{{bronze2|}}}
-->{{#if:{{{dates|}}}|<tr><th>Dates</th><td>{{{dates}}}</td></tr>}}<!--
+
| bronze2_nation = {{{bronze2_nation|{{{bronzeSEAGF2|}}}}}}
-->{{#if:{{{date|}}}|<tr><th>Date</th><td>{{{date}}}</td></tr>}}<!--
+
| bronze3       = {{{bronze3|}}}
-->{{#if:{{{competitors|}}}|<tr><th>Competitors</th><td>{{{competitors}}}{{#if:{{{nations|}}}|&nbsp;from&nbsp;{{{nations}}}&nbsp;{{#ifeq:{{{nations}}}|1|nation|nations}}}}</td></tr>}}<!--
+
| bronze3_nation = {{{bronze3_nation|{{{bronzeSEAGF3|}}}}}}
-->{{#if:{{{teams|}}}|<tr><th>Teams</th><td>{{{teams}}}</td></tr>}}<!--
+
| longnames      = {{{longnames|}}}
-->{{#if:{{{win_value|}}}|<tr><th>{{{win_label|Winning&nbsp;time}}}</th><td>{{{win_value}}}</td></tr>}}<!--
+
| previous      = {{{previous|{{{prev|}}}}}}
-->{{#if:{{{gold|}}}{{{silver|}}}{{{bronze|}}}|
+
| next          = {{{next|}}}
<tr><th colspan="2" style="border-top:1px solid #aaa;">Medalists</th></tr>
+
}}<noinclude>
<tr><td colspan="2"><table style="background-color:#f9f9f9;"><!--
 
-->{{#if:{{{gold|}}}|<tr style="vertical-align:top;"><td>[[File:Gold medal icon.svg|14px|Gold medal]]&nbsp;</td><td class="nowraplinks">{{{gold}}}{{#if:{{{goldSEAGF|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{goldSEAGF}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{gold2|}}}|<tr style="vertical-align:top;"><td>[[File:Gold medal icon.svg|14px|Gold medal]]&nbsp;</td><td class="nowraplinks">{{{gold2}}}{{#if:{{{goldSEAGF2|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{goldSEAGF2}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{gold3|}}}|<tr style="vertical-align:top;"><td>[[File:Gold medal icon.svg|14px|Gold medal]]&nbsp;</td><td class="nowraplinks">{{{gold3}}}{{#if:{{{goldSEAGF3|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{goldSEAGF3}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{silver|}}}|<tr style="vertical-align:top;"><td>[[File:Silver medal icon.svg|14px|Silver medal]]&nbsp;</td><td class="nowraplinks">{{{silver}}}{{#if:{{{silverSEAGF|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{silverSEAGF}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{silver2|}}}|<tr style="vertical-align:top;"><td>[[File:Silver medal icon.svg|14px|Silver medal]]&nbsp;</td><td class="nowraplinks">{{{silver2}}}{{#if:{{{silverSEAGF2|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{silverSEAGF2}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{silver3|}}}|<tr style="vertical-align:top;"><td>[[File:Silver medal icon.svg|14px|Silver medal]]&nbsp;</td><td class="nowraplinks">{{{silver3}}}{{#if:{{{silverSEAGF3|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{silverSEAGF3}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{bronze|}}}|<tr style="vertical-align:top;"><td>[[File:Bronze medal icon.svg|14px|Bronze medal]]&nbsp;</td><td class="nowraplinks">{{{bronze}}}{{#if:{{{bronzeSEAGF|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{bronzeSEAGF}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{bronze2|}}}|<tr style="vertical-align:top;"><td>[[File:Bronze medal icon.svg|14px|Bronze medal]]&nbsp;</td><td class="nowraplinks">{{{bronze2}}}{{#if:{{{bronzeSEAGF2|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{bronzeSEAGF2}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
-->{{#if:{{{bronze3|}}}|<tr style="vertical-align:top;"><td>[[File:Bronze medal icon.svg|14px|Bronze medal]]&nbsp;</td><td class="nowraplinks">{{{bronze3}}}{{#if:{{{bronzeSEAGF3|}}}|{{#if:{{{longnames|}}}|<br />|</td><td>&nbsp;}}{{flagSEAGF|{{{bronzeSEAGF3}}}|{{{games|}}}}}}}</td></tr>}}<!--
 
--></table></td></tr>}}<!--
 
-->{{#if:{{{prev|}}}{{{next|}}}|<tr class="noprint"><td style="text-align:left; border-top:1px solid #aaa; padding:0.2em;">{{#if:{{{prev|}}}|«{{{prev}}}|&nbsp;}}</td><td style="text-align:right; border-top:1px solid #aaa; padding:0.2em;">{{#if:{{{next|}}}|{{{next}}}»|&nbsp;}}</td></tr>}}<!--
 
--></table><noinclude>{{Documentation|content=
 
{{Convert to use Infobox}}
 
==Usage==
 
<pre>
 
{{Infobox Southeast Asian Games event
 
|event =
 
|games =
 
|image =
 
|caption =
 
|venue =
 
|dates = {{Start date|df=yes|YYYY|MM|DD}}
 
|competitors =
 
|nations =
 
|teams =
 
|win_value =
 
|gold =
 
|goldSEAGF =
 
|gold2 =
 
|goldSEAGF2 =
 
|silver =
 
|silverSEAGF =
 
|bronze =
 
|bronzeSEAGF =
 
|prev =
 
|next =
 
}}
 
</pre>
 
  
;event: Required for infobox title
+
{{documentation}}
;games: Year such as <code>2015</code> or <code>1959</code>, for example
+
</noinclude>
;image: (Optional) complete image syntax
 
;caption: (Optional) displays under the image
 
;venue or venues: Required
 
;date or dates: Required, date(s) of the competition.  Use {{Tl|Start date}} (and {{Tl|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 <code>win_label = Winning score</code> to change the label from '''Winning time''' to '''Winning score''', for example.
 
;gold, silver, bronze: Athlete name or team name. Use <code><nowiki>gold = {{flagSEAGFteam|VIE|2013}}</nowiki></code> (for example) for a team name, instead of giving a full list of athletes. For duos and small teams, separate entries with {{Tl|Plainlist}}
 
;goldSEAGF, silverSEAGF, bronzeSEAGF: (Optional) [[Southeast Asian Games#Participating countries|country code]] for the gold medal winner. Do not specify this if the <code>gold</code> parameter specifies a team name instead of an individual name.
 
;gold2 and goldSEAGF2: As for <code>gold</code> and <code>goldSEAGF</code>, 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 Southeast Asian Games
 
;next: Link to article on the same event/sport from the following edition of the Southeast Asian Games
 
 
 
==Example==
 
<pre>
 
{{Infobox Southeast Asian Games event
 
|event = Women's 10 metre air pistol pairs
 
|games = 2013
 
|image =
 
|caption = Medal winners
 
|venue = [[North Dagon Shooting Range]]
 
|dates = {{Start date|df=yes|2013|12|14}}
 
|competitors = 18 pairs
 
|nations = 6
 
|win_label = Winning points
 
|win_value = 759<sup>21
 
|gold = [[Nguyễn Minh Châu]]
 
|goldSEAGF = VIE
 
|silver = [[Teo Shun Xie]]
 
|silverSEAGF = SIN
 
|bronze = [[Lê Thị Hoàng Ngọc]]
 
|bronzeSEAGF = VIE
 
|prev = [[Shooting at the 2011 Southeast Asian Games|2011]]
 
|next = [[Shooting at the 2015 Southeast Asian Games – Women's 10 metre air pistol pairs|2015]]
 
}}
 
</pre>
 
{{Infobox Southeast Asian Games event
 
|event = Women's 10 metre air pistol pairs
 
|games = 2013
 
|image =
 
|caption = Medal winners
 
|venue = [[North Dagon Shooting Range]]
 
|dates = {{Start date|df=yes|2013|12|14}}
 
|competitors = 18 pairs
 
|nations = 6
 
|win_label = Winning points
 
|win_value = 759<sup>21
 
|gold = [[Nguyễn Minh Châu]]
 
|goldSEAGF = VIE
 
|silver = [[Teo Shun Xie]]
 
|silverSEAGF = SIN
 
|bronze = [[Lê Thị Hoàng Ngọc]]
 
|bronzeSEAGF = VIE
 
|prev = [[Shooting at the 2011 Southeast Asian Games|2011]]
 
|next = [[Shooting at the 2015 Southeast Asian Games – Women's 10 metre air pistol pairs|2015]]
 
}}
 
[[Category:Southeast Asian Games infobox templates]]
 
}}</noinclude>
 

Revision as of 20:20, 12 March 2016

Template:SEAGF year

[[Category:Infobox templates|Template:Remove first word]]

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

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

Usage

{{Infobox Southeast Asian 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

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={{flagSEAGFteam|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 Southeast Asian Games
next 
Link to article on the same event/sport from the following edition of the Southeast Asian Games

Example

Fencing – Women's team épée
at the 2015 Template:SEAGF year
80px
VenueOCBC Arena Hall 2
Date7 June 2015 (2015-06-07)
Competitors6 national teams
Medalists
gold medal   22x20px [[Vietnam at the 2015 Template:SEAGF year|Vietnam]]
silver medal   22x20px [[Philippines at the 2015 Template:SEAGF year|Philippines]]
bronze medal   22x20px [[Singapore at the 2015 Template:SEAGF year|Singapore]]
bronze medal   22x20px [[Indonesia at the 2015 Template:SEAGF year|Indonesia]]
← 2011
2017 →
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox Southeast Asian Games event
| event          = Fencing – Women's team épée
| year           = 2015 
| image          = Fencing pictogram.svg
| image_size     = 80px
| caption        = 
| venue          = [[Singapore Sports Hub|OCBC Arena Hall 2]]
| date           = {{Start date|2015|06|07|df=y}}
| competitors    = 23
| nations        = 6
| gold           = {{plainlist|
* [[Nguyễn Thanh Vân]]
* [[Nguyễn Thị Như Hoa]]
* [[Trần Thị Len]]
* [[Trần Thị Thùy Trinh]]
}}
| gold_nation    = VIE
| silver         = {{plainlist|
* [[Abella Hanniel]]
* [[Estimada Anna Gabriella]]
* [[Harlene Raguin]]
* [[Pangilinan Keren]]
}}
| silver_nation  = PHI
| bronze         = {{plainlist|
* [[Lim Cheryl]]
* [[Lim Elizabeth Ann Yu Yan]]
* [[Lim Victoria Ann Xiu Yan]]
* [[Rahardja Rania Herli]]
}}
| bronze_nation  = SIN
| bronze2        = {{plainlist|
* [[Idar Isnawaty]]
* [[Megawati Megawati]]
* [[Nurhidayati Jeanned]]
* [[Pertiwi Dian]]
}}
| bronze2_nation = INA
| previous       = [[Fencing at the 2011 Southeast Asian Games#Individual Épée|2011]]
| next           = [[Fencing at the 2017 Southeast Asian Games – Women's team épée|2017]]
}}

Microformat

Template:UF-hcal

See also