Template:Infobox country at games: Difference between revisions

From Omniversalis
Content added Content deleted
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user 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}} = [[International Association of Athletics Federations|IAAF]] code
|{{#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}} = [[List of IOC country codes|IPC code]]
|{{#if:{{{NPC|}}}|1}} = {{W|List of IOC country codes|IPC code}}
|{{#if:{{{CGA|}}}|1}} = [[List of CGF country codes|CGF]] code
|{{#if:{{{CGA|}}}|1}} = {{W|List of CGF country codes|CGF}} code
|{{#if:{{{NF|}}}|1}} = [[List of FINA member federations|FINA]] code
|{{#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 = [[National Olympic Committee|NOC]]
| label2 = {{W|National Olympic Committee|NOC}}
| data2 = {{{NOCname|}}}
| data2 = {{{NOCname|}}}
| label3 = [[National Paralympic Committee|NPC]]
| label3 = {{W|National Paralympic Committee|NPC}}
| data3 = {{{NPCname|}}}
| data3 = {{{NPCname|}}}
| label4 = [[Commonwealth Games Federation|CGA]]
| label4 = {{W|Commonwealth Games Federation|CGA}}
| data4 = {{{CGAname|}}}
| data4 = {{{CGAname|}}}
| label5 = NF
| 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=&#32;and&#32;
| data11 = {{#if:{{{competitors|}}}|{{{competitors}}} {{#if:{{{competitors_men|}}}{{{competitors_women|}}}|({{Separated entries|conjunction=&#32;and&#32;
| {{#if:{{{competitors_men|}}}|{{{competitors_men}}}&nbsp;men}}
| {{#if:{{{competitors_men|}}}|{{{competitors_men}}}{{#ifeq:{{{competitors_men}}}|1|&nbsp;man|&nbsp;men}}}}
| {{#if:{{{competitors_women|}}}|{{{competitors_women}}}&nbsp;women}}
| {{#if:{{{competitors_women|}}}|{{{competitors_women}}}{{#ifeq:{{{competitors_women}}}|1|&nbsp;woman|&nbsp;women}}}}
}})}} {{#if:{{{sports|}}}{{{events|}}}|in {{Separated entries|conjunction=&#32;and&#32;
}})}} {{#if:{{{sports|}}}{{{events|}}}|in {{Separated entries|conjunction=&#32;and&#32;
| {{#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&nbsp;bearer]]|Flag&nbsp;bearer}}
| label12 = {{#ifexist:{{{year}}} {{{games}}} national flag bearers|[[{{{year}}} {{{games}}} national flag bearers|Flag&nbsp;bearer {{#if:{{{flagbearer_close|}}}|(opening)}}]]|Flag&nbsp;bearer {{#if:{{{flagbearer_close|}}}|(opening)}}}}
| data12 = {{{flagbearer|}}}
| data12 = {{if empty|{{{flagbearer|}}}|{{{flagbearer_open|}}}}}
| label13 = {{#ifexist:{{{year}}} {{{games}}} medal table|[[{{{year}}} {{{games}}} medal table|Medals]]|Medals}}{{#if:{{{rank|}}}|<br><span style="font-weight: normal;">Ranked {{Ordinal|{{{rank}}}}}</span>}}
| label13 = {{#ifexist:{{{year}}} {{{games}}} closing ceremony|[[{{{year}}} {{{games}}} closing ceremony|Flag&nbsp;bearer (closing)]]|Flag&nbsp;bearer (closing)}}
| data13 = {{#if:{{{gold|}}}{{{silver|}}}{{{bronze|}}}|
| 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>
<th scope="col" style="padding-top: 0.4em; background: silver; text-align: center;">Silver</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>
<th scope="col" style="padding-top: 0.4em; text-align: center;">Total</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%;">
<td style="width: 25%; padding-bottom: 0.3em; background: gold; text-align: center;">{{formatnum:{{{gold|}}}}}</td>
<dd style="position: absolute; left: 50%; bottom: 0.1em; margin: 0; width: 25%; font-size: 125%;">{{formatnum:{{{bronze|}}}}}</dd>
<td style="width: 25%; padding-bottom: 0.3em; background: silver; text-align: center;">{{formatnum:{{{silver|}}}}}</td>
<dt style="position: absolute; left: 75%; top: 0.1em; margin: 0; width: 25%;">Total</dt>
<td style="width: 25%; padding-bottom: 0.3em; background: #c96; text-align: center;">{{formatnum:{{{bronze|}}}}}</td>
<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>
</dl>}}
<td style="width: 25%; padding-bottom: 0.3em; text-align: center;">{{#iferror:{{#expr:{{{gold|}}}+{{{silver|}}}+{{{bronze|}}}}}||{{formatnum:{{#expr:{{{gold|}}}+{{{silver|}}}+{{{bronze|}}}}}}}}}</td>
| label15 = Officials
</tr>
| data15 = {{{officials|}}}<!--
</table>}}

| label14 = Officials
***
| data14 = {{{officials|}}}
Previous appearances
***


-->
| header15 = {{#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]])}}}}
| data16 = {{#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|}}}}}
| 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|}}}}}
| class16 = hlist
| class21 = hlist
| header17 = {{#if:{{{summerappearances|}}}|Summer appearances}}
| data18 = {{{summerappearances|}}}
| header22 = {{#if:{{{summerappearances|}}}|Summer appearances}}
| class18 = hlist
| data23 = {{{summerappearances|}}}
| class23 = hlist
| header19 = {{#if:{{{winterappearances|}}}|Winter appearances}}
| data20 = {{{winterappearances|}}}
| header24 = {{#if:{{{winterappearances|}}}|Winter appearances}}
| class20 = hlist
| data25 = {{{winterappearances|}}}
| class25 = hlist
| header21 = {{#if:{{{youthappearances|}}}|Youth appearances}}
| data22 = {{{youthappearances|}}}
| header26 = {{#if:{{{youthappearances|}}}|Youth appearances}}
| class22 = hlist
| data27 = {{{youthappearances|}}}
| class27 = hlist


| header25 = {{#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]])}} }}}}
| 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]])}} }}}}
| data26 = {{#if:{{{CGA|}}}|{{#ifeq:{{{games|}}}|Commonwealth Youth Games||{{Infobox country at games/Commonwealth|{{country alias|{{{CGA}}}|games=Commonwealth Games}}|{{{app_begin_year|}}}|{{{app_end_year|}}} }} }}}}
| 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|}}} }} }}}}


| header27 = {{#if:{{{seealso|}}}|Other related appearances}}
| header32 = {{#if:{{{seealso|}}}|Other related appearances}}
| data33 = {{#ifeq:{{{seealso|}}}|auto|{{See also {{{games}}}|{{{NOC|{{{NPC|{{{IAAF|{{{CGA|{{{NF|}}}}}}}}}}}}}}} }}|{{{seealso|}}}}}
| data28 = {{{seealso|}}}
| class28 = hlist
| class33 = hlist


| below = {{#if:{{{previous|}}}|{{align|left|&larr; {{{previous|}}}}}}} {{#if:{{{next|}}}|{{align|right|{{{next|}}} &rarr;}}}}
| below = {{#if:{{{previous|}}}|{{align|left|&larr; {{{previous|}}}}}}} {{#if:{{{next|}}}|{{align|right|{{{next|}}} &rarr;}}}}

Latest revision as of 16:48, 14 May 2022