Template:Flag Athlete
(25x17px)
This template is used on approximately 35,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
{{Flag athlete|Athlete's name|Country code or name|optional flag variant|code=optional code value}}
Examples
{{Flag athlete|[[Michael Phelps]]|USA}}
→ Michael Phelps (USA)<span class="flagicon">[[File:Flag of the United States.svg|23x15px|border |alt=|link=]] </span>[[Michael Phelps]] <span style="font-size:90%;">(<abbr title="United States">USA</abbr>)</span>
{{Flag athlete|[[Bjørn Dæhlie]]|NOR}}
→ Bjørn Dæhlie (NOR)<span class="flagicon">[[File:Flag of Norway.svg|23x15px|border |alt=|link=]] </span>[[Bjørn Dæhlie]] <span style="font-size:90%;">(<abbr title="Norway">NOR</abbr>)</span>
{{Flag athlete|[[Nedo Nadi]]|ITA|1861}}
→ Nedo Nadi (ITA)<span class="flagicon">[[File:Flag of Italy (1861–1946).svg|23x15px|border |alt=|link=]] </span>[[Nedo Nadi]] <span style="font-size:90%;">(<abbr title="Italy">ITA</abbr>)</span>
{{Flag athlete|[[Elisabeta Lipă]]|ROU|1965}}
→ Elisabeta Lipă (ROU)<span class="flagicon">[[File:Flag of Romania (1965-1989).svg|23x15px|border |alt=|link=]] </span>[[Elisabeta Lipă]] <span style="font-size:90%;">(<abbr title="Romania">ROU</abbr>)</span>
{{Flag athlete|[[Daley Thompson]]|ENG}}
→ Daley Thompson (ENG)<span class="flagicon">[[File:Flag of England.svg|23x15px|border |alt=|link=]] </span>[[Daley Thompson]] <span style="font-size:90%;">(<abbr title="England">ENG</abbr>)</span>
{{Flag athlete|[[Daley Thompson]]|GBR}}
→ Daley Thompson (GBR)<span class="flagicon">[[File:Flag of the United Kingdom.svg|23x15px|border |alt=|link=]] </span>[[Daley Thompson]] <span style="font-size:90%;">(<abbr title="Great Britain">GBR</abbr>)</span>
{{Flag athlete|[[Werner Günthör]]|SUI}}
→ Werner Günthör (SUI)<span class="flagicon">[[File:Flag of Switzerland (Pantone).svg|23x16px|border |alt=|link=]] </span>[[Werner Günthör]] <span style="font-size:90%;">(<abbr title="Switzerland">SUI</abbr>)</span>
{{Flag athlete|[[Orukpe Erayokan]]|NIG}}
→ Orukpe Erayokan (NIG)<span class="flagicon">[[File:Flag of Niger.svg|23x15px|border |alt=|link=]] </span>[[Orukpe Erayokan]] <span style="font-size:90%;">(<abbr title="Niger">NIG</abbr>)</span>
{{Flag athlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}}
→ Jasna Šekarić (YUG)<span class="flagicon">[[File:Flag of Serbia and Montenegro (1992–2006).svg|23x15px|border |alt=|link=]] </span>[[Jasna Šekarić]] <span style="font-size:90%;">(<abbr title="Yugoslavia">YUG</abbr>)</span>
Parameters
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Flag athlete in articles based on its TemplateData.
TemplateData for Flag athlete
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 |
Alternatives to avoid Wikipedia's Post-expand include size limit
Pages with many flag icons may come close to or exceed Wikipedia's Post-expand include size limit. In these cases consider using modules or module-wrapper templates instead:
- {{flagg}} is a simple wrapper for Module:Flagg: For basic use,
{{Flag athlete|athlete's name|country code or name}}
can be replaced with{{flagg|unaep|country code or name|preftext=athlete's name}}
. To use IOC country codes, replaceunaep
withunaepi
. - {{#invoke:flag|athlete}} is a wrapper for Module:Flagg that can further reduce sizes when invoked directly. For basic use,
{{Flag athlete|athlete's name|country code or name}}
can be replaced with{{#invoke:flag|athlete|athlete's name|country code or name}}
. To use IOC country codes, add|opts=i
.
See also
- Template:Flag team, a similar template useful for entire teams instead of individual names
- Template:Flag medalist 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:Flag icon for additional discussion about flag variations
- Template:Flag IOC athlete, 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 name (code) | Athlete (country code) | Athlete Country Name | Country code |
---|---|---|---|---|---|
Olympic Games | {{Flag IOC}} | {{Flag IOC team}} | {{Flag IOC athlete}} | {{Flag IOC medalist}} | {{Flag IOC short}} |
Other games | {{Flag IOC 2}} | {{Flag IOC 2 team}} | {{Flag IOC 2 athlete}} | {{Flag IOC 2 medalist}} | {{Flag IOC 2 short}} |
Paralympic Games | {{Flag IPC}} | {{Flag IPC team}} | {{Flag IPC athlete}} | {{Flag IPC medalist}} | {{Flag IPC short}} |
Pan American | {{Flag PASO}} | {{Flag PASO team}} | {{Flag PASO athlete}} | {{Flag PASO medalist}} | |
Parapan American | {{Flag PPASO}} | ||||
Commonwealth | {{Flag CGF}} | {{Flag CGF team}} | {{Flag CGF athlete}} | {{Flag CGF medalist}} | |
Southeast Asian | {{Flag SEAGF}} | {{Flag SEAGF team}} | {{Flag SEAGF athlete}} | {{Flag SEAGF medalist}} | |
World Games | {{Flag IWGA}} | ||||
Central American and Caribbean Games | {{Flag CAC}} | ||||
Asian Games | {{Flag OCA}} | ||||
European Games | {{Flag EOC}} | ||||
African Games | {{Flag AFOC}} | ||||
Mediterranean Games | {{Flag CIJM}} | ||||
Summer Universiade | {{Flag FISU}} | ||||
"Nation at Championships"-style | {{Flag link team}} | ||||
Generic | {{Flag}} | {{Flag team}} | {{Flag athlete}} | {{Flag medalist}} | |
Generic (variant) | {{Flag link}} | {{Flag link athlete}} | {{Flag link medalist}} |