Template:Flag athlete/sandbox: Difference between revisions
m (Ahecht moved page Template:Flagathlete/sandbox to Template:Flag athlete/sandbox without leaving a redirect: Oops, swap had already been performed but page was still listed at [[WP:RM/TR]) |
m (1 revision imported: initial setup) |
||
(No difference)
|
Latest revision as of 10:19, 30 August 2024
Template:Country flagbio/sandbox
This is the template sandbox page for Template:Flag athlete (diff). See also the companion subpage for test cases. |
This template is used on many pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any 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}}
→
- REDIRECT Template:Country data United States
This page is a redirect. The following categories are used to track and monitor this redirect:
|
#REDIRECT [[Template:Country data United States]] __NONEWSECTIONLINK__'"`UNIQ--templatestyles-00000036-QINU`"'<table class="box-Redirect_category_shell ombox ombox-move plainlinks" role="presentation" style="margin-top: 1.1em; border: solid 1px darkblue; border-left-width: 0.5em;"><tr><td class="mbox-empty-cell"></td><td class="mbox-text" style="padding-top: 0.9em; padding-bottom: 0.9em;">'''This page is a [[Wikipedia:Redirect|redirect]]. <small>The following [[Wikipedia:Categorizing redirects|categories]] are used to track and monitor this redirect:</small>''' <div class="rcat rcat-R_from_shortcut"> *'''[[:Category:Redirects from shortcuts|From a shortcut]]''': This is a redirect from a shortcut in ''any'' namespace to a page in any namespace. **Shortcuts are [[wikilink]]ed on community pages, talk pages, and edit summaries, but not in [[wp:mainspace|mainspace]] articles. </div>[[Category:Redirects from shortcuts]] ''<small>When appropriate, [[Wikipedia:Protection policy|protection levels]] are automatically sensed, described and categorized.</small>''</td></tr></table> [[Category:Country data redirects|USA]]
{{Flag athlete|[[Bjørn Dæhlie]]|NOR}}
→ Template:Country data NOR[[:Template:Country data NOR]]
{{Flag athlete|[[Nedo Nadi]]|ITA|1861}}
→ Template:Country data ITA[[:Template:Country data ITA]]
{{Flag athlete|[[Elisabeta Lipă]]|ROU|1965}}
→ Template:Country data ROU[[:Template:Country data ROU]]
{{Flag athlete|[[Daley Thompson]]|ENG}}
→ Template:Country data ENG[[:Template:Country data ENG]]
{{Flag athlete|[[Daley Thompson]]|GBR}}
→ Template:Country data GBR[[:Template:Country data GBR]]
{{Flag athlete|[[Werner Günthör]]|SUI}}
→ Template:Country data SUI[[:Template:Country data SUI]]
{{Flag athlete|[[Orukpe Erayokan]]|NIG}}
→ Template:Country data NIG[[:Template:Country data NIG]]
{{Flag athlete|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}}
→ Template:Country data FR Yugoslavia[[:Template:Country data FR Yugoslavia]]
Parameters
This is the TemplateData documentation for this template used by VisualEditor and other tools.
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 | TFlag | {{Flag team}} | {{Flag athlete}} | {{Flag medalist}} | |
Generic (variant) | {{Flag link}} | {{Flag link athlete}} | {{Flag link medalist}} |