Difference between revisions of "Template:Flagathlete/doc"
Jump to navigation
Jump to search
imported>Frietjes |
imported>GKFX (Add templatedata) |
||
| Line 10: | Line 10: | ||
*<tt><nowiki>{{flagathlete|[[Daley Thompson]]|ENG}}</nowiki></tt> → {{flagathlete|[[Daley Thompson]]|ENG}} | *<tt><nowiki>{{flagathlete|[[Daley Thompson]]|ENG}}</nowiki></tt> → {{flagathlete|[[Daley Thompson]]|ENG}} | ||
*<tt><nowiki>{{flagathlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}}</nowiki></tt> → {{flagathlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}} | *<tt><nowiki>{{flagathlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}}</nowiki></tt> → {{flagathlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}} | ||
| + | |||
| + | |||
| + | ==Parameters== | ||
| + | {{TemplateDataHeader}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Athlete's name", | ||
| + | "description": "Name of the athlete. May be wikilinked.", | ||
| + | "type": "content", | ||
| + | "required": true | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "Country code or name", | ||
| + | "description": "Selects the country whose flag is to be shown.", | ||
| + | "example": "ITA", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "3": { | ||
| + | "aliases": [ | ||
| + | "variant" | ||
| + | ], | ||
| + | "label": "Variant", | ||
| + | "description": "Selects the variant of the flag to be used; see Template:Flag.", | ||
| + | "example": "1965", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "code": { | ||
| + | "label": "Country code for display", | ||
| + | "description": "The code to display after the name, if different to parameter 2, \"Country code or name\".", | ||
| + | "example": "YUG", | ||
| + | "default": "The value of parameter 2." | ||
| + | } | ||
| + | }, | ||
| + | "description": "Generates an inline flag, followed by an athlete's name, followed by a country code.", | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
==See also== | ==See also== | ||
Revision as of 17:45, 8 September 2017
| This is a documentation subpage for Template:Flagathlete. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
{{flagathlete|Athlete's name|Country code or name|optional flag variant|code=optional code value}}
Examples
- {{flagathlete|[[Michael Phelps]]|USA}} →
Michael Phelps (USA) - {{flagathlete|[[Bjørn Dæhlie]]|NOR}} →
Bjørn Dæhlie (NOR) - {{flagathlete|[[Nedo Nadi]]|ITA|1861}} →
Nedo Nadi (ITA) - {{flagathlete|[[Elisabeta Lipă]]|ROU|1965}} →
Elisabeta Lipă (ROU) - {{flagathlete|[[Daley Thompson]]|ENG}} →
Daley Thompson (ENG) - {{flagathlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}} →
Jasna Šekarić (YUG)
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}} | |||