Difference between revisions of "Template:FlagIPCathlete/doc"
Jump to navigation
Jump to search
imported>Zyxw (→Examples: update) |
imported>Zyxw (remove unnecessary header, add details on supporting templates, prevent /sandbox from being including in category, remove interwiki links now at Wikidata) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- | + | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
| − | + | ||
This template is used to simplify creation of Paralympic results articles. It expands upon the infrastructure developed for the {{tl|FlagIPC}} template to render the following additions to an athlete's name: | This template is used to simplify creation of Paralympic results articles. It expands upon the infrastructure developed for the {{tl|FlagIPC}} template to render the following additions to an athlete's name: | ||
| − | *flag icon for the athlete's nation before the name | + | * flag icon for the athlete's nation before the name |
| − | *country code for the athlete's nation after 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 | + | * wikilink from the country code to the appropriate "''Nation'' at the ''year'' Paralympics" article |
==Usage== | ==Usage== | ||
'''<nowiki>{{</nowiki>FlagIPCathlete|'''''athlete''|''code''|''games'''''<nowiki>}}</nowiki>''' | '''<nowiki>{{</nowiki>FlagIPCathlete|'''''athlete''|''code''|''games'''''<nowiki>}}</nowiki>''' | ||
| − | ;athlete: Any text string, usually a wikilinked name. Could also be a pair of names, for example. | + | ; 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]] | + | ; code : Three letter code as per [[List of IOC country codes]] |
| − | ;games: String of the form "''<year>'' Summer" or "''<year>'' Winter" | + | ; 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. | 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. | ||
| Line 26: | Line 26: | ||
: {{flagIPCmedalist | [[Annemie Schneider]] | FRG | 1976 Winter }} | : {{flagIPCmedalist | [[Annemie Schneider]] | FRG | 1976 Winter }} | ||
| − | == | + | == Supporting templates == |
| − | + | * The flag image name is supplied by <code>Template:Country flag IPC alias AAA</code> or <code>Template:Country flag IOC alias AAA</code> where AAA is an [[International Paralympic Committee|IPC]] or [[IOC country code]]. There are IPC templates for the following country codes: AUS, BEL, DEN, ESP, EUN, FRA, FRG, GBR, IPA, IPP, IRL, ITA, LUX, NED, NZL, RSA, SUI, and TPE. All other country codes will use the IOC template. | |
| − | < | + | ** For complete lists, see [[Special:PrefixIndex/Template:Country flag IPC alias]] and [[Special:PrefixIndex/Template:Country flag IOC alias]] |
| − | + | ** Also see [[:Category:Country flag IPC alias templates]] ({{PAGESINCAT:Country flag IPC alias templates}} pages) and [[:Category:Country flag IOC alias templates]] ({{PAGESINCAT:Country flag IOC alias templates}} pages) | |
| − | [[Category: | + | * The country name is supplied by <code>Template:Country IOC alias AAA</code> where AAA is an [[IOC country code]]. |
| − | [[ | + | ** For a complete list, see [[Special:PrefixIndex/Template:Country IOC alias]] |
| − | [[ | + | ** Also see [[:Category:International Olympic Committee country alias templates]] ({{PAGESINCAT:International Olympic Committee country alias templates}} pages) |
| − | [[ | + | |
| − | </includeonly> | + | == See also == |
| + | {{Flag templates}} | ||
| + | |||
| + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
| + | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| + | [[Category:Paralympics templates]] | ||
| + | |||
| + | }}</includeonly> | ||
Revision as of 02:25, 30 June 2016
| This is a documentation subpage for Template:FlagIPCathlete. It contains usage information, categories and other content that is not part of the original template page. |
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 }}
{{flagIPCathlete | [[Annemie Schneider]] | FRG | 1976 Winter }}
For comparison, the output of {{flagIPCmedalist | [[Annemie Schneider]] | FRG | 1976 Winter }} is:
Supporting templates
- The flag image name is supplied by
Template:Country flag IPC alias AAAorTemplate:Country flag IOC alias AAAwhere AAA is an IPC or IOC country code. There are IPC templates for the following country codes: AUS, BEL, DEN, ESP, EUN, FRA, FRG, GBR, IPA, IPP, IRL, ITA, LUX, NED, NZL, RSA, SUI, and TPE. All other country codes will use the IOC template.- For complete lists, see Special:PrefixIndex/Template:Country flag IPC alias and Special:PrefixIndex/Template:Country flag IOC alias
- Also see Category:Country flag IPC alias templates (0 pages) and Category:Country flag IOC alias templates (0 pages)
- The country name is supplied by
Template:Country IOC alias AAAwhere AAA is an IOC country code.- For a complete list, see Special:PrefixIndex/Template:Country IOC alias
- Also see Category:International Olympic Committee country alias templates (0 pages)
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}} | |||