Difference between revisions of "Template:FlagIPCmedalist/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Andy M. Wang
(Create sandbox version of Template:FlagIPCmedalist)
 
imported>Andy M. Wang
(code=yes)
Line 1: Line 1:
{{#switch: {{{2}}}  
+
{{#ifeq:{{{code}}}|yes|{{#switch: {{{2}}}  
 
   |AUS |BEL |DEN |ESP |EUN |FRA |FRG |GBR |IPA |IPP |IRL |ITA |LUX |NED |NZL |RSA |SUI |TPE = [[Image:{{country_flag_IPC_alias_{{{2}}}|{{{3|}}}}}|22x20px|border|alt=|link=]]
 
   |AUS |BEL |DEN |ESP |EUN |FRA |FRG |GBR |IPA |IPP |IRL |ITA |LUX |NED |NZL |RSA |SUI |TPE = [[Image:{{country_flag_IPC_alias_{{{2}}}|{{{3|}}}}}|22x20px|border|alt=|link=]]
 
   |#default = [[Image:{{country_flag_IOC_alias_{{{2}}}|{{{3|}}}}}|22x20px|border|alt=|link=]]
 
   |#default = [[Image:{{country_flag_IOC_alias_{{{2}}}|{{{3|}}}}}|22x20px|border|alt=|link=]]
}}&nbsp;{{{1}}}<br>''[[{{country_IOC_alias_{{{2}}}|{{{3|}}}}} at the {{{3|}}} Paralympics|{{{name|{{country_IOC_alias_{{{2}}}|{{{3|}}}}}}}}]]&nbsp;<span style="font-size:90%;">({{{2}}})</span>''<noinclude>
+
}}&nbsp;{{Trim|{{{1}}}}<br />''[[{{country_IOC_alias_{{{2}}}|{{{3|}}}}} at the {{{3|}}} Paralympics|{{{name|{{country_IOC_alias_{{{2}}}|{{{3|}}}}}}}}]]&nbsp;<span style="font-size:90%;">({{{2}}})</span>''|{{Trim|{{{1}}}}<br />{{#switch: {{{2}}}
 +
  |AUS |BEL |DEN |ESP |EUN |FRA |FRG |GBR |IPA |IPP |IRL |ITA |LUX |NED |NZL |RSA |SUI |TPE = [[Image:{{country_flag_IPC_alias_{{{2}}}|{{{3|}}}}}|22x20px|border|alt=|link=]]
 +
  |#default = [[Image:{{country_flag_IOC_alias_{{{2}}}|{{{3|}}}}}|22x20px|border|alt=|link=]]
 +
}}&nbsp;''[[{{country_IOC_alias_{{{2}}}|{{{3|}}}}} at the {{{3|}}} Paralympics|{{{name|{{country_IOC_alias_{{{2}}}|{{{3|}}}}}}}}]]''}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Paralympics templates|{{PAGENAME}}]]
 
[[Category:Paralympics templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 22:17, 1 May 2016

{{#ifeq:{{{code}}}|yes|[[Image:{{country_flag_IOC_alias_{{{2}}}|}}|22x20px|border|alt=|link=]] {{Trim|{{{1}}}}
[[{{country_IOC_alias_{{{2}}}|}} at the Paralympics|{{country_IOC_alias_{{{2}}}|}}]] ({{{2}}})|{{{1}}}}
[[Image:{{country_flag_IOC_alias_{{{2}}}|}}|22x20px|border|alt=|link=]] [[{{country_IOC_alias_{{{2}}}|}} at the Paralympics|{{country_IOC_alias_{{{2}}}|}}]]

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

Usage

Default usage:

  • {{FlagIPCmedalist|[[James Anderson (swimmer)|Jim Anderson]]|GBR|2004 Summer}}
Jim Anderson
 Great Britain

The template gives the option to display the country code, although this is discouraged by MOS guidelines.

  • {{FlagIPCmedalist|[[James Anderson (swimmer)|Jim Anderson]]|GBR|2004 Summer|code=yes}}
Jim Anderson
 Great Britain

See also

Output style → Country name Country (code) Athlete (country) Athlete
Country
Country code
Olympic Games {{FlagIOC}} {{FlagIOCteam}} {{FlagIOCathlete}} {{FlagIOCmedalist}} {{FlagIOCshort}}
Other games {{FlagIOC2}} {{FlagIOC2team}} {{FlagIOC2athlete}} {{FlagIOC2medalist}} {{FlagIOC2short}}
Paralympic Games {{FlagIPC}} {{FlagIPCteam}} {{FlagIPCathlete}} {{FlagIPCmedalist}} {{FlagIPCshort}}
Pan American {{FlagPASO}} {{FlagPASOteam}} {{FlagPASOathlete}} {{FlagPASOmedalist}}
Parapan American {{FlagPPASO}}
Commonwealth {{FlagCGF}} {{FlagCGFteam}} {{FlagCGFathlete}} {{FlagCGFmedalist}}
Southeast Asian {{FlagSEAGF}} {{FlagSEAGFteam}} {{FlagSEAGFathlete}} {{FlagSEAGFmedalist}}
World Games {{FlagIWGA}}
Central American and Caribbean Games {{FlagCAC}}
Asian Games {{FlagOCA}}
"Nation at Championships"-style {{Flaglinkteam}} {{FlagATHCHathlete}}
Generic {{Flag}} {{Flagteam}} {{Flagathlete}} {{Flagmedalist}}
Generic (variant) {{Flaglink}} {{Flaglinkmedalist}}