Template:Flag link athlete/sandbox
Appearance
{{country data {{{2}}}|flag icon/core|variant={{{4}}}|size=}} {{{1}}} ([[{{country data {{{2}}}|getalias/core|name=shortname|variant=}} at the Flag link athlete/sandbox|{{{2}}}]])
This is the template sandbox page for Template:Flag link athlete (diff). |
The Flag link athlete template is designed to provide relevant links to the "Nation at Championships" style sub-articles when listing that nation's athletes on athletics championships pages.
Usage
[edit]The template has four input fields:
{{Flag link athlete|Athlete name|Country code|Competition|variant=}}
- The Athlete name can be entered as plain text or bracketed linked text as required (e.g. Carl Lewis or Carl Lewis)
- The Country code is the three letter country code used to refer to the nation in international competitions (e.g. Afghanistan = AFG)
- The Competition field relates to which competition needs to be linked. Leaving this field intentionally blank will automatically use the current page name to create the link.
- The variant field allows for when a country has changed their flag over the course of time. See the Country Data set templates for the relevant details of flag variants and codes for the given country.
Examples
[edit]*{{Flag link athlete|[[Liang Rui]]|CHN|2019 World Athletics Championships}}
*{{Flag link athlete|[[Dwight Phillips]]|USA|2009 World Championships in Athletics}}
Blank edition field
[edit]- When using a blank edition field on a template used on the 2011 World Championships in Athletics page:
*{{Flag link athlete|[[Dwight Phillips]]|USA}}
See also
[edit]- Template:Flag link medalist a similar template which links to nation articles but shows full country name
- Template:Flag link team a similar template designed for nations instead of athletes
- Template:MedalistTable a template for medal summaries to be used in conjunction with this template
- Template:EventLink an athletics medal summary table template to auto-generate event article links
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}} |