Difference between revisions of "Template:Infobox Universiade event"
Jump to navigation
Jump to search
imported>Zackmann08 (typo) |
imported>Zackmann08 (updating to use Template:infobox) |
||
| Line 1: | Line 1: | ||
| − | < | + | <includeonly>{{Infobox |
| − | < | + | | bodyclass = infobox vevent |
| − | {{# | + | | bodystyle = width:24em |
| − | + | | above = {{{event|}}}<br /><div style="font-size:85%">at the {{Infobox Universiade event/titles|{{{games}}} Universiade}}</div> | |
| − | + | ||
| − | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|220px}}}|alt={{{alt|}}}}} | |
| − | + | | caption = {{{caption|}}} | |
| − | + | ||
| − | + | | labelstyle = white-space:nowrap; | |
| − | + | ||
| − | + | | label1 = Venues | |
| − | + | | data1 = {{{venues|}}} | |
| − | + | ||
| − | + | | label2 = Venue | |
| − | + | | data2 = {{{venue|}}} | |
| − | + | ||
| − | + | | label3 = Dates | |
| − | + | | data3 = {{{dates|}}} | |
| − | + | ||
| − | + | | label4 = Date | |
| − | + | | data4 = {{{date|}}} | |
| − | + | ||
| − | + | | label5 = Competitors | |
| − | + | | data5 = {{#if:{{{competitors|}}}|{{{competitors|}}}{{#if:{{{nations|}}}| from {{{nations}}} {{#ifeq:{{{nations}}}|1|nation|nations}}}} }} | |
| − | + | ||
| + | | label6 = Teams | ||
| + | | data6 = {{{teams|}}} | ||
| + | |||
| + | | label7 = {{#if: {{{win_label|}}} | {{{win_label}}} | Winning time }} | ||
| + | | data7 = {{{win_value|}}} | ||
| + | |||
| + | | header8 = {{#if: {{{gold|}}}{{{gold2|}}}{{{gold3|}}}{{{silver|}}}{{{silver2|}}}{{{silver3|}}}{{{bronze|}}}{{{bronze2|}}}{{{bronze3|}}} | Medalists }} | ||
| + | |||
| + | | data9 = {{Infobox3cols | ||
| + | | child = yes | ||
| + | |||
| + | | label1 = {{Gold1}} | ||
| + | | data1b = {{{gold|}}}{{#if:{{{longnames|}}} | {{#if:{{{goldNOC|}}} | <br />{{flagIOC2|{{{goldNOC|}}}|{{{games|}}}}} }}}} | ||
| + | | data1c = {{#if:{{{longnames|}}} || {{#if:{{{goldNOC|}}} | {{flagIOC2|{{{goldNOC}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label2 = {{Gold1}} | ||
| + | | data2b = {{{gold2|}}}{{#if:{{{longnames|}}} | {{#if:{{{goldNOC2|}}} | <br />{{flagIOC2|{{{goldNOC2}}}|{{{games|}}}}} }}}} | ||
| + | | data2c = {{#if:{{{longnames|}}} || {{#if:{{{goldNOC2|}}} | {{flagIOC2|{{{goldNOC2}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label3 = {{Gold1}} | ||
| + | | data3b = {{{gold3|}}}{{#if:{{{longnames|}}} | {{#if:{{{goldNOC3|}}} | <br />{{flagIOC2|{{{goldNOC3}}}|{{{games|}}}}} }}}} | ||
| + | | data3c = {{#if:{{{longnames|}}} || {{#if:{{{goldNOC3|}}} | {{flagIOC2|{{{goldNOC3}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label4 = {{Silver2}} | ||
| + | | data4b = {{{silver|}}}{{#if:{{{longnames|}}} | {{#if:{{{silverNOC|}}} | <br />{{flagIOC2|{{{silverNOC}}}|{{{games|}}}}} }}}} | ||
| + | | data4c = {{#if:{{{longnames|}}} || {{#if:{{{silverNOC|}}} | {{flagIOC2|{{{silverNOC}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label5 = {{Silver2}} | ||
| + | | data5b = {{{silver2|}}}{{#if:{{{longnames|}}} | {{#if:{{{silverNOC2|}}} | <br />{{flagIOC2|{{{silverNOC2}}}|{{{games|}}}}} }}}} | ||
| + | | data5c = {{#if:{{{longnames|}}} || {{#if:{{{silverNOC2|}}} | {{flagIOC2|{{{silverNOC2}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label6 = {{Silver2}} | ||
| + | | data6b = {{{silver3|}}}{{#if:{{{longnames|}}} | {{#if:{{{silverNOC3|}}} | <br />{{flagIOC2|{{{silverNOC3}}}|{{{games|}}}}} }}}} | ||
| + | | data6c = {{#if:{{{longnames|}}} || {{#if:{{{silverNOC3|}}} | {{flagIOC2|{{{silverNOC3}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label7 = {{Bronze3}} | ||
| + | | data7b = {{{bronze|}}}{{#if:{{{longnames|}}} | {{#if:{{{bronzeNOC|}}} | <br />{{flagIOC2|{{{bronzeNOC}}}|{{{games|}}}}} }}}} | ||
| + | | data7c = {{#if:{{{longnames|}}} || {{#if:{{{bronzeNOC|}}} | {{flagIOC2|{{{bronzeNOC}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label8 = {{Bronze3}} | ||
| + | | data8b = {{{bronze2|}}}{{#if:{{{longnames|}}} | {{#if:{{{bronzeNOC2|}}} | <br />{{flagIOC2|{{{bronzeNOC2}}}|{{{games|}}}}} }}}} | ||
| + | | data8c = {{#if:{{{longnames|}}} || {{#if:{{{bronzeNOC2|}}} | {{flagIOC2|{{{bronzeNOC2}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | | label9 = {{Bronze3}} | ||
| + | | data9b = {{{bronze3|}}}{{#if:{{{longnames|}}} | {{#if:{{{bronzeNOC3|}}} | <br />{{flagIOC2|{{{bronzeNOC3}}}|{{{games|}}}}} }}}} | ||
| + | | data9c = {{#if:{{{longnames|}}} || {{#if:{{{bronzeNOC3|}}} | {{flagIOC2|{{{bronzeNOC3}}}|{{{games|}}}}} }}}} | ||
| + | |||
| + | }} | ||
| + | |||
| + | | below = {{align|left|{{#if: {{{prev|}}}|←{{autolink|{{{prev|}}}}} }}}}{{align|right|{{#if: {{{next|}}}|{{autolink|{{{next|}}}}}→}}}} | ||
| + | | belowclass = hlist noprint nowrap | ||
| + | | belowstyle = {{#if: {{{prev|}}}{{{next|}}} | border-top: 1px solid #aaa; padding-top: 3px; }} | ||
| + | }}</includeonly><noinclude> | ||
| + | {{documentation}} | ||
| + | </noinclude> | ||
Revision as of 23:34, 16 January 2017
| 30px | This template uses Lua: |
Template:Parameter names example
Usage
{{Infobox Universiade event
| event =
| games =
| image =
| caption =
| venue =
| dates = {{Start date|YYYY|MM|DD}}
| competitors =
| nations =
| teams =
| governing_body =
| win_value =
| gold =
| goldNOC =
| gold2 =
| goldNOC2 =
| silver =
| silverNOC =
| bronze =
| bronzeNOC =
| prev =
| next =
}}
- event
- Required for infobox title
- games
- String such as
2011 Summeror2011 Winter, for example - image
- (Optional) complete image syntax
- caption
- (Optional) displays under the image
- venue or venues
- Required
- date or dates
- 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
- governing_body
- Optional, name of International Governing body for the sport
- win_value
- Optional, winning time or score. Use
win_label = Winning scoreto change the label from Winning time to Winning score, for example. - gold, silver, bronze
- Athlete/team name. Use
gold = {{flagIOC2team|CAN|2011 Summer Universiade}}, 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
goldparameter specifies a team name instead of an individual name. - gold2 and goldNOC2
- As for
goldandgoldNOC, 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 Universiade
- next
- Link to article on the same event/sport from the following edition of the Universiade
| The above documentation is transcluded from Template:Infobox Universiade event/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |