Difference between revisions of "Template:Flagteam/doc"

From blackwiki
Jump to navigation Jump to search
imported>Tatasport
m
imported>Zyxw
(update examples)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
Displays a flag icon, country name, and country code in parentheses.  The first input parameter is the three-letter country code, and the second (optional) parameter is the flag variant label, if necessary.  This template is useful for sports results tables, for example, where country codes are often used to identify national teams. Use the optional <code>code</code> parameter when a country name is used to select the flag.
 
Displays a flag icon, country name, and country code in parentheses.  The first input parameter is the three-letter country code, and the second (optional) parameter is the flag variant label, if necessary.  This template is useful for sports results tables, for example, where country codes are often used to identify national teams. Use the optional <code>code</code> parameter when a country name is used to select the flag.
  
==Usage examples==
+
==Examples==
*<tt><nowiki>{{flagteam|IRQ}}</nowiki></tt> → {{flagteam|IRQ}}
+
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{flagteam|IRQ}}</nowiki>}}
*<tt><nowiki>{{flagteam|SCO}}</nowiki></tt> {{flagteam|SCO}}
+
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{flagteam|SCO}}</nowiki>}}
*<tt><nowiki>{{flagteam|CAN|1921}}</nowiki></tt> → {{flagteam|CAN|1921}}
+
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{flagteam|GBR}}</nowiki>}}
*<tt><nowiki>{{flagteam|FR Yugoslavia|code=YUG}}</nowiki></tt> → {{flagteam|FR Yugoslavia|code=YUG}}
+
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{flagteam|CAN|1921}}</nowiki>}}
 +
{{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{flagteam|FR Yugoslavia|code=YUG}}</nowiki>}}
  
 
==See also==
 
==See also==
Line 14: Line 15:
 
*[[List of IOC country codes]] and [[List of FIFA country codes]] for some commonly used country codes
 
*[[List of IOC country codes]] and [[List of FIFA country codes]] for some commonly used country codes
  
<includeonly><!--
+
{{Flag templates}}
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
[[Category:Flag template system|{{PAGENAME}}]]
 
  
[[id:Templat:Flagteam]]
+
<includeonly>{{sandbox other||
</includeonly>
+
<!-- Categories below this line and interwikis at Wikidata -->
 +
[[Category:Flag template system]]
 +
 
 +
}}</includeonly>

Latest revision as of 17:37, 16 September 2018

Displays a flag icon, country name, and country code in parentheses. The first input parameter is the three-letter country code, and the second (optional) parameter is the flag variant label, if necessary. This template is useful for sports results tables, for example, where country codes are often used to identify national teams. Use the optional code parameter when a country name is used to select the flag.

Examples

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

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