Difference between revisions of "Template:FlagPASOathlete/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎Examples: update)
imported>Zyxw
(update documemtation, examples, see also)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
==Description==
+
 
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 "''Nation'' at the ''year'' Pan American Games" article
  
 
==Usage==
 
==Usage==
'''<nowiki>{{</nowiki>flagPASOathlete|'''''athlete''|''code''|''games'''''<nowiki>}}</nowiki>'''
+
<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.
;code: Three letter code as per [[List of IOC country codes]]
+
; code : Three letter code as per [[List of IOC country codes]]
;games: the year of the games
+
; games : the year of the games
 +
 
 +
===Issues===
 +
The template cannot choose historical flags, like {{tl|flagPASO}}.
  
 
==Examples==
 
==Examples==
<pre>{{flagPASOathlete | [[Jane Testcase]] | ARG | 2003 }}</pre>{{flagPASOathlete | [[Jane Testcase]] | ARG | 2003 }}
+
<code><nowiki>{{FlagPASOathlete |[[Jane Testcase]] |ARG |2003 }}</nowiki></code>
<pre>{{flagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}</pre>{{flagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}
+
: {{FlagPASOathlete |[[Jane Testcase]] |ARG |2003 }}
 +
 
 +
<code><nowiki>{{flagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}</nowiki></code>
 +
{{flagPASOathlete | [[Jane Testcase]] / [[Dave Testcase]] | USA | 2007 }}
 +
 
 +
For comparison, the output of <code><nowiki>{{FlagPASOmedalist |[[Jane Testcase]] |ARG |2003 }}</nowiki></code> is:
 +
: {{FlagPASOmedalist |[[Jane Testcase]] |ARG |2003 }}
  
==Issues==
+
== See also ==
*template cannot choose historical flags, like {{tl|flagPASO}}
+
Similar template for Olympic Games:
<includeonly>
+
* [[Template:FlagIOCathlete]]
 +
Other templates for Pan American Games:
 +
* [[Template:FlagPASOmedalist]]
 +
* [[Template:FlagPASO]]
 +
* [[Template:Flag PASO team]]
 +
 
 +
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Pan American Games flag templates]]
 
[[Category:Pan American Games flag templates]]
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
 
</includeonly>
+
}}</includeonly>

Revision as of 19:52, 9 January 2016

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 "Nation 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

Issues

The template cannot choose historical flags, like {{flagPASO}}.

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
File:Flag of Argentina.svg Argentina

See also

Similar template for Olympic Games:

Other templates for Pan American Games: