Difference between revisions of "Template:FlagPASOmedalist/sandbox"

From blackwiki
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|}}}}}}}}}&nbsp;{{Trim|{{{1}}}}}<br />[[{{getalias|{{map country code|{{{2}}}}}|shortname}} at the {{{3|}}} Pan American Games|{{getalias|{{map country code|{{{2}}}}}|shortname}}]]&nbsp;<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|}}}}}}}}}&nbsp;{{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|}}}}}}}}}&nbsp;{{Trim|{{{1}}}}}<br />[[{{getalias|{{map country code|{{{2}}}}}|shortname}} at the {{{3|}}} Pan American Games|{{getalias|{{map country code|{{{2}}}}}|shortname}}]]&nbsp;<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|}}}}}}}}}&nbsp;{{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=}}]]

Template documentation[view] [edit] [history] [purge]

Similar to {{FlagPASOathlete}}, but places the country name on a second line.

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 }}

Jane Testcase
 Argentina

The template gives the option to display the country code, although this is discouraged by MOS guidelines.

  • {{FlagPASOmedalist | [[Jane Testcase]] | ARG | 2003 |code=yes}}
Jane Testcase
 Argentina

For comparison, the output of {{FlagPASOathlete | [[Jane Testcase]] | ARG | 2003 }} is:

 Jane Testcase (ARG)

Supporting templates

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}}