Template:Infobox country at games: Difference between revisions
Content added Content deleted
(update template call) |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
| bodystyle = width: 25em; |
| bodystyle = width: 25em; |
||
| above = {{{country|{{country alias|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}|games={{{games}}}}}}}} at the<br>{{#ifexist:{{{games_link|}}}|[[{{{games_link|}}}]]|{{{year|}}} {{{games}}}}} |
| above = {{{country|{{country alias|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}|games={{{games}}}|year={{{year}}}}}}}} at the<br>{{#ifexist:{{{games_link|}}}|[[{{{games_link|}}}]]|{{{year|}}} {{{games}}}}} |
||
| aboveclass = nowrap summary |
| aboveclass = nowrap summary |
||
| abovestyle = border-bottom: 1px solid #aaa; |
| abovestyle = border-bottom: 1px solid #aaa; |
||
Line 10: | Line 10: | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{country|}}}|{{Getalias|{{{country}}}|flag}}|{{country alias|{{{NOC|{{{IAAF|{{{NF|{{{CGA|{{{NPC|}}}}}}}}}}}}}}}|flag=yes|year={{{year|}}}|games={{{games|}}} }} }}|alt={{{alt|}}}}} |
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{country|}}}|{{Getalias|{{{country}}}|flag}}|{{country alias|{{{NOC|{{{IAAF|{{{NF|{{{CGA|{{{NPC|}}}}}}}}}}}}}}}|flag=yes|year={{{year|}}}|games={{{games|}}} }} }}|alt={{{alt|}}}}} |
||
| caption = {{{flagcaption|}}} |
| caption = {{{flagcaption|}}}<!-- |
||
*** |
|||
Country details |
|||
*** |
|||
--> |
|||
| label1 = {{#switch:1 |
| label1 = {{#switch:1 |
||
|{{#if:{{{IAAF|}}}|1}} = |
|{{#if:{{{IAAF|}}}|1}} = {{W|International Association of Athletics Federations|IAAF}} code |
||
|{{#if:{{{NOC|}}}|1}} = [[List of IOC country codes|IOC code]] |
|{{#if:{{{NOC|}}}|1}} = [[List of IOC country codes|IOC code]] |
||
|{{#if:{{{NPC|}}}|1}} = |
|{{#if:{{{NPC|}}}|1}} = {{W|List of IOC country codes|IPC code}} |
||
|{{#if:{{{CGA|}}}|1}} = |
|{{#if:{{{CGA|}}}|1}} = {{W|List of CGF country codes|CGF}} code |
||
|{{#if:{{{NF|}}}|1}} = |
|{{#if:{{{NF|}}}|1}} = {{W|List of FINA member federations|FINA}} code |
||
}} |
}} |
||
| data1 = {{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}{{#if:{{{oldcode|}}}|<br>({{{oldcode}}} used at these Games)}} |
| data1 = {{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}{{#if:{{{oldcode|}}}|<br>({{{oldcode}}} used at these Games)}} |
||
| rowstyle1 = font-weight: bold; |
| rowstyle1 = font-weight: bold; |
||
| label2 = |
| label2 = {{W|National Olympic Committee|NOC}} |
||
| data2 = {{{NOCname|}}} |
| data2 = {{{NOCname|}}} |
||
| label3 = |
| label3 = {{W|National Paralympic Committee|NPC}} |
||
| data3 = {{{NPCname|}}} |
| data3 = {{{NPCname|}}} |
||
| label4 = |
| label4 = {{W|Commonwealth Games Federation|CGA}} |
||
| data4 = {{{CGAname|}}} |
| data4 = {{{CGAname|}}} |
||
| label5 = |
| label5 = {{W|Sports governing body|National federation}} |
||
| data5 = {{{NFname|}}} |
| data5 = {{{NFname|}}} |
||
| label6 = National federation |
| label6 = {{W|Sports governing body|National federation}} |
||
| data6 = {{{fedname|}}} |
| data6 = {{{fedname|}}} |
||
| label7 = Website |
| label7 = Website |
||
| data7 = {{{website|}}} |
| data7 = {{{website|}}}<!-- |
||
*** |
|||
Games details |
|||
*** |
|||
--> |
|||
| header10 = {{Br separated entries |
| header10 = {{Br separated entries |
||
| 1 = {{#if:{{{location|}}}|in <span class="location">{{{location}}}</span>}} |
| 1 = {{#if:{{{location|}}}|in <span class="location">{{{location}}}</span>}} |
||
Line 40: | Line 50: | ||
| label11 = Competitors |
| label11 = Competitors |
||
| data11 = {{#if:{{{competitors|}}}|{{{competitors}}} {{#if:{{{competitors_men|}}}{{{competitors_women|}}}|({{Separated entries|conjunction= and  |
| data11 = {{#if:{{{competitors|}}}|{{{competitors}}} {{#if:{{{competitors_men|}}}{{{competitors_women|}}}|({{Separated entries|conjunction= and  |
||
| {{#if:{{{competitors_men|}}}|{{{competitors_men}}} men}} |
| {{#if:{{{competitors_men|}}}|{{{competitors_men}}}{{#ifeq:{{{competitors_men}}}|1| man| men}}}} |
||
| {{#if:{{{competitors_women|}}}|{{{competitors_women}}} women}} |
| {{#if:{{{competitors_women|}}}|{{{competitors_women}}}{{#ifeq:{{{competitors_women}}}|1| woman| women}}}} |
||
}})}} {{#if:{{{sports|}}}{{{events|}}}|in {{Separated entries|conjunction= and  |
}})}} {{#if:{{{sports|}}}{{{events|}}}|in {{Separated entries|conjunction= and  |
||
| {{#if:{{{sports|}}}|{{{sports}}} {{#ifeq:{{{sports}}}|1|sport|sports}}}} |
| {{#if:{{{sports|}}}|{{{sports}}} {{#ifeq:{{{sports}}}|1|sport|sports}}}} |
||
| {{#if:{{{events|}}}|{{{events}}} {{#ifeq:{{{events}}}|1|event|events}}}} |
| {{#if:{{{events|}}}|{{{events}}} {{#ifeq:{{{events}}}|1|event|events}}}} |
||
}}}}}} |
}}}}}} |
||
| label12 = {{#ifexist:{{{year}}} {{{games}}} national flag bearers|[[{{{year}}} {{{games}}} national flag bearers|Flag bearer]]|Flag bearer}} |
| label12 = {{#ifexist:{{{year}}} {{{games}}} national flag bearers|[[{{{year}}} {{{games}}} national flag bearers|Flag bearer {{#if:{{{flagbearer_close|}}}|(opening)}}]]|Flag bearer {{#if:{{{flagbearer_close|}}}|(opening)}}}} |
||
| data12 = {{{flagbearer|}}} |
| data12 = {{if empty|{{{flagbearer|}}}|{{{flagbearer_open|}}}}} |
||
| label13 = {{#ifexist:{{{year}}} {{{games}}} |
| label13 = {{#ifexist:{{{year}}} {{{games}}} closing ceremony|[[{{{year}}} {{{games}}} closing ceremony|Flag bearer (closing)]]|Flag bearer (closing)}} |
||
| data13 |
| data13 = {{{flagbearer_close|}}} |
||
| label14 = {{#ifexist:{{{year}}} {{{games}}} medal table|[[{{{year}}} {{{games}}} medal table|Medals]]|Medals}}{{#if:{{{rank|}}}|<br><span style="font-weight: normal;">Ranked {{Ordinal|{{{rank}}}}}</span>}} |
|||
<table style="width:100%; border-collapse: collapse; line-height: 1;"> |
|||
| data14 = {{#if:{{{gold|}}}{{{silver|}}}{{{bronze|}}}| |
|||
<tr> |
|||
<dl style="position: relative; margin: 0; min-width: 14em; height: 3em; text-align: center; background: linear-gradient(to right, gold 25%, silver 25%, silver 50%, #c96 50%, #c96 75%, transparent 75%);"> |
|||
<th scope="col" style="padding-top: 0.4em; background: gold; text-align: center;">Gold</td> |
|||
<dt style="position: absolute; left: 0%; top: 0.1em; margin: 0; width: 25%;">Gold</dt> |
|||
<dd style="position: absolute; left: 0%; bottom: 0.1em; margin: 0; width: 25%; font-size: 125%;">{{formatnum:{{{gold|}}}}}</dd> |
|||
<th scope="col" style="padding-top: 0.4em; background: #c96; text-align: center;">Bronze</td> |
|||
<dt style="position: absolute; left: 25%; top: 0.1em; margin: 0; width: 25%;">Silver</dt> |
|||
<dd style="position: absolute; left: 25%; bottom: 0.1em; margin: 0; width: 25%; font-size: 125%;">{{formatnum:{{{silver|}}}}}</dd> |
|||
</tr> |
|||
<dt style="position: absolute; left: 50%; top: 0.1em; margin: 0; width: 25%;">Bronze</dt> |
|||
<tr style="font-size: 125%;"> |
|||
<dd style="position: absolute; left: 50%; bottom: 0.1em; margin: 0; width: 25%; font-size: 125%;">{{formatnum:{{{bronze|}}}}}</dd> |
|||
<dt style="position: absolute; left: 75%; top: 0.1em; margin: 0; width: 25%;">Total</dt> |
|||
<dd style="position: absolute; left: 75%; bottom: 0.1em; margin: 0; width: 25%; font-size: 125%;">{{#iferror:{{#expr:{{{gold|}}}+{{{silver|}}}+{{{bronze|}}}}}||{{formatnum:{{#expr:{{{gold|}}}+{{{silver|}}}+{{{bronze|}}}}}}}}}</dd> |
|||
⚫ | |||
<td style="width: 25%; padding-bottom: 0.3em; text-align: center;">{{#iferror:{{#expr:{{{gold|}}}+{{{silver|}}}+{{{bronze|}}}}}||{{formatnum:{{#expr:{{{gold|}}}+{{{silver|}}}+{{{bronze|}}}}}}}}}</td> |
|||
⚫ | |||
</tr> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
*** |
|||
⚫ | |||
Previous appearances |
|||
*** |
|||
--> |
|||
⚫ | | |
||
| |
| header20 = {{#if:{{{appearances|}}}|{{{games}}} appearances {{#ifexist:{{{country|{{country alias|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}|games={{{games}}}}}}}} at the {{{games}}}|([[{{{country|{{country alias|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}|games={{{games}}}}}}}} at the {{{games}}}|overview]])}}}} |
||
⚫ | | data21 = {{#ifeq:{{{appearances|}}}|auto|{{Team appearances list|begin_year={{{app_begin_year|}}}|end_year={{{app_end_year|}}}|interval={{{app_interval|}}}|team={{{country|{{country alias|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}}|games={{{games}}}}} }}}|competition={{{games|}}}|{{{omit1|}}}|{{{omit2|}}}|{{{omit3|}}}|{{{omit4|}}}|{{{omit5|}}}|{{{omit6|}}}|{{{omit7|}}}|{{{omit8|}}}|{{{omit9|}}}|{{{omit10|}}}}}|{{{appearances|}}}}} |
||
| |
| class21 = hlist |
||
| header17 = {{#if:{{{summerappearances|}}}|Summer appearances}} |
|||
| |
| header22 = {{#if:{{{summerappearances|}}}|Summer appearances}} |
||
| |
| data23 = {{{summerappearances|}}} |
||
| class23 = hlist |
|||
| header19 = {{#if:{{{winterappearances|}}}|Winter appearances}} |
|||
| |
| header24 = {{#if:{{{winterappearances|}}}|Winter appearances}} |
||
| |
| data25 = {{{winterappearances|}}} |
||
| class25 = hlist |
|||
| header21 = {{#if:{{{youthappearances|}}}|Youth appearances}} |
|||
| |
| header26 = {{#if:{{{youthappearances|}}}|Youth appearances}} |
||
| |
| data27 = {{{youthappearances|}}} |
||
| class27 = hlist |
|||
| |
| header30 = {{#if:{{{CGA|}}}|{{#ifeq:{{{games|}}}|Commonwealth Youth Games||Commonwealth Games appearances {{#ifexist:{{country alias|{{{CGA}}}|games=Commonwealth Games}} at the Commonwealth Games|([[{{country alias|{{{CGA}}}|games=Commonwealth Games}} at the Commonwealth Games|overview]])}} }}}} |
||
| |
| data31 = {{#if:{{{CGA|}}}|{{#ifeq:{{{games|}}}|Commonwealth Youth Games||{{Infobox country at games/Commonwealth|{{country alias|{{{CGA}}}|games=Commonwealth Games}}|{{{app_begin_year|}}}|{{{app_end_year|}}} }} }}}} |
||
| |
| header32 = {{#if:{{{seealso|}}}|Other related appearances}} |
||
| data33 = {{#ifeq:{{{seealso|}}}|auto|{{See also {{{games}}}|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}} }}|{{{seealso|}}}}} |
|||
| data28 = {{{seealso|}}} |
|||
| |
| class33 = hlist |
||
| below = {{#if:{{{previous|}}}|{{align|left|← {{{previous|}}}}}}} {{#if:{{{next|}}}|{{align|right|{{{next|}}} →}}}} |
| below = {{#if:{{{previous|}}}|{{align|left|← {{{previous|}}}}}}} {{#if:{{{next|}}}|{{align|right|{{{next|}}} →}}}} |