Difference between revisions of "Template:FlagPASOathlete/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎See also: update)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{caution|{{tl|flagIOC2athlete}} exists as an alternate version of this template. It is to be used for athletes competing in any other multi-sport games that are not the Olympics, Paralympics, or PanAm Games.}}
+
{{caution|{{tl|FlagIOC2athlete}} exists as an alternate version of this template. It is to be used for athletes competing in any other multi-sport games that are not the Olympics, Paralympics, or Pan American Games.}}
  
 
This template is used to simplify creation of [[Pan American Games]] results articles.
 
This template is used to simplify creation of [[Pan American Games]] results articles.
 
* flag icon for the athlete's nation before the name
 
* flag icon for the athlete's nation before the name
 
* country code for the athlete's nation after the name
 
* country code for the athlete's nation after the name
* wikilink from the country code to the appropriate "''Nation'' at the ''year'' Pan American Games" article
+
* wikilink from the country code to the appropriate "''Country'' at the ''year'' Pan American Games" article
  
 
==Usage==
 
==Usage==
<code><nowiki>{{</nowiki>flagPASOathlete|''athlete''|''code''|''games''}}</code>
+
'''<code><nowiki>{{</nowiki>FlagPASOathlete|''athlete''|''code''|''games''}}</code>'''
  
 
; athlete : Any text string, usually a wikilinked name. Could also be a pair of names.
 
; athlete : Any text string, usually a wikilinked name. Could also be a pair of names.
Line 15: Line 15:
 
; games : the year of the games
 
; games : the year of the games
  
===Issues===
+
==Examples==
The template cannot choose historical flags, like {{tl|flagPASO}}.
+
<code><nowiki>{{FlagPASOathlete | [[Jane Testcase]] | ARG | 2003 }}</nowiki></code>
 +
: {{FlagPASOathlete | [[Jane Testcase]] | ARG | 2003 }}
  
==Examples==
+
<code><nowiki>{{FlagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}</nowiki></code>
<code><nowiki>{{FlagPASOathlete |[[Jane Testcase]] |ARG |2003 }}</nowiki></code>
+
: {{FlagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}
: {{FlagPASOathlete |[[Jane Testcase]] |ARG |2003 }}
 
  
<code><nowiki>{{flagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}</nowiki></code>
+
For comparison, the output of <code><nowiki>{{FlagPASOmedalist | [[Jane Testcase]] | ARG | 2003 }}</nowiki></code> is:
: {{flagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}
+
: {{FlagPASOmedalist | [[Jane Testcase]] | ARG | 2003 }}
  
For comparison, the output of <code><nowiki>{{FlagPASOmedalist |[[Jane Testcase]] |ARG |2003 }}</nowiki></code> is:
+
== Supporting templates ==
: {{FlagPASOmedalist |[[Jane Testcase]] |ARG |2003 }}
+
* The country name is supplied by {{tlx|country alias|''AAA''}} where AAA is an [[IOC country code]].
 +
* The flag image name is also supplied by {{tlc|country alias}}
 +
** For the complete country code list with related names and flags, see [[Module:Country alias]]
  
 
== See also ==
 
== See also ==
 
{{Flag templates}}
 
{{Flag templates}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Pan American Games flag templates]]
 
[[Category:Pan American Games flag templates]]
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 04:52, 25 April 2020

This template is used to simplify creation of Pan American Games results articles.

  • flag icon for the athlete's nation before the name
  • country code for the athlete's nation after the name
  • wikilink from the country code to the appropriate "Country at the year Pan American Games" article

Usage

{{FlagPASOathlete|athlete|code|games}}

athlete 
Any text string, usually a wikilinked name. Could also be a pair of names.
code 
Three letter code as per List of IOC country codes
games 
the year of the games

Examples

{{FlagPASOathlete | [[Jane Testcase]] | ARG | 2003 }}

 Jane Testcase (ARG)

{{FlagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}

 Jane Testcase / Dave Testcase (USA)

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

Jane Testcase
 Argentina

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