Difference between revisions of "Template:Flagathlete"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
(add some preview messaging per request)
blackwiki>Frietjes
(update to use sandbox version per talk page)
Line 1: Line 1:
{{country data {{{2|}}}
+
{{#ifeq:Error|{{country alias|{{{2}}}|error=Error|flag=yes|fullName={{{variant|{{{3|}}}}}}}}
 +
| {{country data {{{2|}}}
 
| country flagbio
 
| country flagbio
 
| name = {{{1|}}} <!-- using this parameter for person's name -->
 
| name = {{{1|}}} <!-- using this parameter for person's name -->
 
| variant = {{{variant|{{{3|}}}}}}
 
| variant = {{{variant|{{{3|}}}}}}
 
| size = {{{code|{{{2|}}}}}} <!-- using this parameter for the country code -->
 
| size = {{{code|{{{2|}}}}}} <!-- using this parameter for the country code -->
}}{{#ifeq:Error|{{country alias|{{{2}}}|error=Error|flag=yes|fullName={{{variant|{{{3|}}}}}}}}
+
}}
|{{#if:{{REVISIONID}}|{{main other|[[Category:Pages using flagathlete with an unsupported country|{{trim|{{{2|}}}}}{{PAGENAME}}]]}}|&nbsp;<span class="error" style="font-size:88%;">Unsupported country={{{2}}}, variant={{{variant|{{{3|}}}}}}</span>}}
+
| [[File:{{country alias|{{{2}}}|flag=yes|fullName={{{variant|{{{3|}}}}}}}}|22x20px|border|alt=|link=]]&nbsp;{{Trim|{{{1}}}}}&nbsp;<span style="font-size:90%;">({{abbr|{{Trim|{{{code|{{{2}}}}}}}}|{{country alias|{{{2}}}}}}})</span>
|}}<noinclude>{{documentation}}</noinclude>
+
}}<noinclude>{{documentation}}</noinclude>

Revision as of 15:25, 29 April 2017

  ()

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

Usage

{{flagathlete|Athlete's name|Country code or name|optional flag variant|code=optional code value}}

Examples

Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo Template:Nowiki template demo

Parameters

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Flagathlete

Generates an inline flag, followed by an athlete's name, followed by a country code.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Athlete's name1

Name of the athlete. May be wikilinked.

Contentrequired
Country code or name2

Selects the country whose flag is to be shown.

Example
ITA
Stringrequired
Variant3 variant

Selects the variant of the flag to be used; see Template:Flag.

Example
1965
Stringoptional
Country code for displaycode

The code to display after the name, if different to parameter 2, "Country code or name".

Default
The value of parameter 2.
Example
YUG
Unknownoptional


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