Difference between revisions of "Template:FlagPASOmedalist/sandbox"
Jump to navigation
Jump to search
imported>Andy M. Wang (wow, big) |
imported>Andy M. Wang (forgot the most important part of the change) |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq:{{{4|}}}|PASO|[[File:Flag of PASO.svg|22x20px|border|link=|alt=]][[Category:Article using Template:FlagPASOmedalist with PASO flag]]|{{flagicon image|{{country_flag_PASO_alias_{{{2}}}|{{{3|}}}}}}}}} {{Trim|{{{1}}}}}<br />[[{{getalias|{{map country code|{{{2}}}}}|shortname}} at the {{{3|}}} Pan American Games|{{getalias|{{map country code|{{{2}}}}}|shortname}}]] <span style="font-size:90%;">({{Trim|{{{2}}}}})</span>|{{Trim|{{{1}}}}}<br />{{#ifeq:{{{4|}}}|PASO|[[File:Flag of PASO.svg|22x20px|border|link=|alt=]][[Category:Article using Template:FlagPASOmedalist with PASO flag]]|{{flagicon image|{{country_flag_PASO_alias_{{{2}}}|{{{3|}}}}}}}}} {{small|[[{{getalias|{{map country code|{{{2}}}}}|shortname}} at the {{{3|}}} Pan American Games|{{getalias|{{map country code|{{{2}}}}}|shortname}}]]}}}}<noinclude> | + | {{#ifeq:{{{code}}}|yes|{{#ifeq:{{{4|}}}|PASO|[[File:Flag of PASO.svg|22x20px|border|link=|alt=]][[Category:Article using Template:FlagPASOmedalist with PASO flag]]|{{flagicon image|{{country_flag_PASO_alias_{{{2}}}|{{{3|}}}}}}}}} {{Trim|{{{1}}}}}<br />[[{{getalias|{{map country code|{{{2}}}}}|shortname}} at the {{{3|}}} Pan American Games|{{getalias|{{map country code|{{{2}}}}}|shortname}}]] <span style="font-size:90%;">({{Trim|{{{2}}}}})</span>|{{Trim|{{{1}}}}}<br />{{#ifeq:{{{4|}}}|PASO|[[File:Flag of PASO.svg|22x20px|border|link=|alt=]][[Category:Article using Template:FlagPASOmedalist with PASO flag]]|{{flagicon image|{{country_flag_PASO_alias_{{{2}}}|{{{3|}}}}}}}}} {{small|[[{{getalias|{{map country code|{{{2}}}}}|shortname}} at the {{{3|}}} Pan American Games|{{getalias|{{map country code|{{{2}}}}}|shortname}}]]}}}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 19:42, 1 May 2016
{{{1}}}
[[File:{{country_flag_PASO_alias_{{{2}}}|}}|23x15px|border |alt=|link=]] [[{{country data {{{2}}}|getalias/core|name=shortname|variant=}} at the Pan American Games|{{country data {{{2}}}|getalias/core|name=shortname|variant=}}]]
| This is the template sandbox page for Template:FlagPASOmedalist (diff). |
Similar to {{FlagPASOathlete}}, but places the country name on a second line.
Contents
Usage
{{FlagPASOmedalist|athlete|code|games}}
- athlete
- any text string, usually a wikilinked name
- code
- three letter code as per List of IOC country codes
- games
- the year of the games
Example
{{FlagPASOmedalist | [[Jane Testcase]] | ARG | 2003 }}
The template gives the option to display the country code, although this is discouraged by MOS guidelines.
{{FlagPASOmedalist | [[Jane Testcase]] | ARG | 2003 |code=yes}}
For comparison, the output of {{FlagPASOathlete | [[Jane Testcase]] | ARG | 2003 }} is:
Supporting templates
- The country name is supplied by
{{country alias|AAA}}where AAA is an IOC country code. - The flag image name is also supplied by
{{country alias}}- For the complete country code list with related names and flags, see Module:Country alias
See also
| Output style → | Country name | Country (code) | Athlete (country) | Athlete Country |
Country code |
|---|---|---|---|---|---|
| Olympic Games | {{FlagIOC}} | {{FlagIOCteam}} | {{FlagIOCathlete}} | {{FlagIOCmedalist}} | {{FlagIOCshort}} |
| Other games | {{FlagIOC2}} | {{FlagIOC2team}} | {{FlagIOC2athlete}} | {{FlagIOC2medalist}} | {{FlagIOC2short}} |
| Paralympic Games | {{FlagIPC}} | {{FlagIPCteam}} | {{FlagIPCathlete}} | {{FlagIPCmedalist}} | {{FlagIPCshort}} |
| Pan American | {{FlagPASO}} | {{FlagPASOteam}} | {{FlagPASOathlete}} | {{FlagPASOmedalist}} | |
| Parapan American | {{FlagPPASO}} | ||||
| Commonwealth | {{FlagCGF}} | {{FlagCGFteam}} | {{FlagCGFathlete}} | {{FlagCGFmedalist}} | |
| Southeast Asian | {{FlagSEAGF}} | {{FlagSEAGFteam}} | {{FlagSEAGFathlete}} | {{FlagSEAGFmedalist}} | |
| World Games | {{FlagIWGA}} | ||||
| Central American and Caribbean Games | {{FlagCAC}} | ||||
| Asian Games | {{FlagOCA}} | ||||
| "Nation at Championships"-style | {{Flaglinkteam}} | {{FlagATHCHathlete}} | |||
| Generic | {{Flag}} | {{Flagteam}} | {{Flagathlete}} | {{Flagmedalist}} | |
| Generic (variant) | {{Flaglink}} | {{Flaglinkmedalist}} | |||
| The above documentation is transcluded from Template:FlagPASOmedalist/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |