Template:Flag medalist/sandbox: Difference between revisions
Content added Content deleted
mNo edit summary |
(No difference)
|
Revision as of 19:46, 3 June 2024
[[|]]
This is the template sandbox page for Template:Flag medalist (diff). |
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 medalist|Athlete's name|Country code or name|optional flag variant|code=optional code value}}
Examples
{{Flag medalist|[[Michael Phelps]]|USA}}
|
| ||
{{Flag medalist|[[Bjørn Dæhlie]]|NOR}}
|
Template:Country data NOR | ||
{{Flag medalist|[[Nedo Nadi]]|ITA|1861}}
|
Template:Country data ITA | ||
{{Flag medalist|[[Elisabeta Lipă]]|ROU|1965}}
|
Template:Country data ROU | ||
{{Flag medalist|[[Daley Thompson]]|ENG}}
|
Template:Country data ENG | ||
{{Flag medalist|[[Jasna Šekarić]]|FR Yugoslavia|code=YUG}}
|
Template:Country data FR Yugoslavia |
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 medalist|[[athlete's name]]|country code or name}}
can be replaced with[[athlete's name]]<br/>{{flagg|unc|country code or name}}
. To use IOC country codes, replaceunc
withunci
. - {{#invoke:flag|medalist}} is a wrapper for Module:Flagg that can further reduce sizes when invoked directly. For basic use,
{{Flag medalist|athlete's name|country code or name}}
can be replaced with{{#invoke:flag|medalist|athlete's name|country code or name}}
. To use IOC country codes, add|opts=i
.
See also
- Template:Flag athlete for a similar template that renders output on a single line
- Template:Flag IOC medalist for a similar template for use with athletes at the Olympics
- Template:Flag and Template:Flag icon for additional discussion about flag variations
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}} |