Difference between revisions of "Template:FlagIPCathlete"

From blackwiki
Jump to navigation Jump to search
imported>Andy M. Wang
(trim leading/trailing whitespace per recent change at Template:FlagIOC2athlete, etc)
imported>Primefac
(rmv deleted template calls)
Line 1: Line 1:
 
{{#switch: {{{2}}}  
 
{{#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=]]
+
   |ESP |EUN |IPA |IPP |RSA |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;{{Trim|{{{1}}}}}&nbsp;<span style="font-size:90%;">([[{{country_IOC_alias_{{{2}}}|{{{3|}}}}} at the {{{3|}}} Paralympics|{{Trim|{{{2}}}}}]])</span><noinclude>{{documentation}}</noinclude>
 
}}&nbsp;{{Trim|{{{1}}}}}&nbsp;<span style="font-size:90%;">([[{{country_IOC_alias_{{{2}}}|{{{3|}}}}} at the {{{3|}}} Paralympics|{{Trim|{{{2}}}}}]])</span><noinclude>{{documentation}}</noinclude>

Revision as of 00:07, 7 December 2016

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

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

This template is used to simplify creation of Paralympic results articles. It expands upon the infrastructure developed for the {{FlagIPC}} template to render the following additions to an athlete's name:

  • flag icon for the athlete's nation before the name
  • country code for the athlete's nation after the name
  • wikilink from the country code to the appropriate "Nation at the year Paralympics" article

Usage

{{FlagIPCathlete|athlete|code|games}}

athlete 
Any text string, usually a wikilinked name. Could also be a pair of names, for example.
code 
Three letter code as per List of IOC country codes
games 
String of the form "<year> Summer" or "<year> Winter"

Note that the combination of code and games parameters will automatically choose the correct flag for the nation (including historical flags for nations in which they have changed over the years) and the correct wikilink to the nation's article.

Examples

{{flagIPCathlete | [[Ron Stein]] | USA | 1960 Summer }}

[[Image:Template:Country flag IOC alias USA|22x20px|border|alt=|link=]] Ron Stein ([[Template:Country IOC alias USA at the 1960 Summer Paralympics|USA]])

{{flagIPCathlete | [[Annemie Schneider]] | FRG | 1976 Winter }}

[[Image:Template:Country flag IOC alias FRG|22x20px|border|alt=|link=]] Annemie Schneider ([[Template:Country IOC alias FRG at the 1976 Winter Paralympics|FRG]])

For comparison, the output of {{flagIPCmedalist | [[Annemie Schneider]] | FRG | 1976 Winter }} is:

Annemie Schneider
 West Germany

Supporting templates

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}}