{{country data {{{1}}} | flaglink/core/sandbox | variant = | size = | name = | altlink =
}}
This is the template sandbox page for Template:Flag link (diff). |
{{flag link|country|link|variant=optional|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked article. The name of the country is the prefix of the wikilink, but the display text is just the name of the country by itself.
For example, {{flag link|Brazil|at the 2007 Pan American Games}}
has the same effect as {{flag decoration|Brazil}} [[Brazil at the 2007 Pan American Games|Brazil]]
, both producing: Brazil.
For the first parameter, see Category:Country data templates and Category:Country data redirects for acceptable values.
Produces a flag icon attached to a wikilinked article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Nation | 1 | Use the name of the country/region as per the set of templates in [[:Category:Country data templates]] or an "alias" (such as a three-letter country code) as per the set of templates in [[:Category:Country data redirects]] | String | required |
Link | 2 | Specifies the suffix to append to the country's name to form the wikilink | String | suggested |
Variant | 3 variant | Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate country data template. | String | optional |
Size | size | Changes the flag icon size (use sparingly!) | Unknown | optional |
Name | name | Changes the wikilink display text | Unknown | optional |
{{flag link|Netherlands|in the Eurovision Song Contest}}
→ Netherlands{{flag link|ENG|at the 2006 Commonwealth Games}}
→ England{{flag link|Canada|at the 1930 British Empire Games|1921}}
→ Canada{{flag link|Canada|variant=1921|at the 1930 British Empire Games}}
→ CanadaOutput 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}} |