Difference between revisions of "Template:Flagathlete"
Jump to navigation
Jump to search
blackwiki>Frietjes (add some preview messaging per request) |
blackwiki>Frietjes (update to use sandbox version per talk page) |
||
| Line 1: | Line 1: | ||
| − | {{country data {{{2|}}} | + | {{#ifeq:Error|{{country alias|{{{2}}}|error=Error|flag=yes|fullName={{{variant|{{{3|}}}}}}}} |
| + | | {{country data {{{2|}}} | ||
| country flagbio | | country flagbio | ||
| name = {{{1|}}} <!-- using this parameter for person's name --> | | name = {{{1|}}} <!-- using this parameter for person's name --> | ||
| variant = {{{variant|{{{3|}}}}}} | | variant = {{{variant|{{{3|}}}}}} | ||
| size = {{{code|{{{2|}}}}}} <!-- using this parameter for the country code --> | | size = {{{code|{{{2|}}}}}} <!-- using this parameter for the country code --> | ||
| − | }} | + | }} |
| − | + | | [[File:{{country alias|{{{2}}}|flag=yes|fullName={{{variant|{{{3|}}}}}}}}|22x20px|border|alt=|link=]] {{Trim|{{{1}}}}} <span style="font-size:90%;">({{abbr|{{Trim|{{{code|{{{2}}}}}}}}|{{country alias|{{{2}}}}}}})</span> | |
| − | + | }}<noinclude>{{documentation}}</noinclude> | |
Revision as of 15:25, 29 April 2017
()
Contents
Usage
{{flagathlete|Athlete's name|Country code or name|optional flag variant|code=optional code value}}
Examples
Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo
Parameters
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Flagathlete
Generates an inline flag, followed by an athlete's name, followed by a country code.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Athlete's name | 1 | Name of the athlete. May be wikilinked. | Content | required |
| Country code or name | 2 | Selects the country whose flag is to be shown.
| String | required |
| Variant | 3 variant | Selects the variant of the flag to be used; see Template:Flag.
| String | optional |
| Country code for display | code | The code to display after the name, if different to parameter 2, "Country code or name".
| Unknown | optional |
See also
- Template:Flagteam, a similar template useful for entire teams instead of individual names
- Template:Flagmedalist a similar template with expanded country names
- Template:FlagATHCHmedalist a similar template with expanded country names and country info on one line
- Template:Flag and Template:Flagicon for additional discussion about flag variations
- Template:FlagIOCathlete, a similar template for use with athletes at the Olympics
- Template:FlagATHCHathlete, a similar template to provide links to countries at editions of athletics championships
| 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}} | |||
| The above documentation is transcluded from Template:Flagathlete/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |