Difference between revisions of "Template:Flaglinkteam/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sillyfolkboy
m (Sillyfolkboy moved page Template:Flagteamlink/doc to Template:Flaglinkteam/doc: move associated doc)
imported>Sillyfolkboy
(update doc)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
The '''FlagATHCH''' template is designed to provide links to the "''Nation'' at ''Championships''" style sub-articles on athletics championships pages.
+
The '''Flaglinkteam''' template is designed to provide links to the "''Nation'' at ''Championships''" style sub-articles on sports championships pages.
  
 
== Usage ==
 
== Usage ==
 
The template has four input fields:
 
The template has four input fields:
:<nowiki>{{FlagATHCH|Country code|Edition|Athletes|Flag variant}}</nowiki>
+
:<nowiki>{{Flaglinkteam|Country code|Edition|Athletes|Flag variant}}</nowiki>
  
 
*The '''Country code''' is the [[List of IOC country codes|three letter country code]] used to refer to the nation in international competitions (e.g. Afghanistan = AFG). A country's full name can be used instead of the three letter country code; in that case, the country code will not be displayed in parentheses after the link
 
*The '''Country code''' is the [[List of IOC country codes|three letter country code]] used to refer to the nation in international competitions (e.g. Afghanistan = AFG). A country's full name can be used instead of the three letter country code; in that case, the country code will not be displayed in parentheses after the link
*The '''Edition''' field relates to which version of the competition needs to be linked (e.g. "2013 World" will link to "2013 World Championships in Athletics"). Leaving this field intentionally blank will automatically use the current page name to create the link
+
*The '''Edition''' field relates to which version of the competition is desired to be linked (e.g. "2013 World" will link to "2013 World Championships in Athletics"). Leaving this field intentionally blank will automatically use the current page name to create the link, which is encouraged to save time and space.
 
*The '''Athletes''' field is for when the template is used in participating nations sections. This will show the number of athletes the nation has entered in parentheses after the flag and country name
 
*The '''Athletes''' field is for when the template is used in participating nations sections. This will show the number of athletes the nation has entered in parentheses after the flag and country name
 
*The '''Flag variant''' allows for when a country has changed their flag over the course of their competing at the athletics championships. For example, using "SFR" here with the country code YUG ([[Yugoslavia]]) will produce a flag and nation name for the [[Socialist Federal Republic of Yugoslavia]].
 
*The '''Flag variant''' allows for when a country has changed their flag over the course of their competing at the athletics championships. For example, using "SFR" here with the country code YUG ([[Yugoslavia]]) will produce a flag and nation name for the [[Socialist Federal Republic of Yugoslavia]].
  
 
==Examples==
 
==Examples==
<nowiki>*{{FlagATHCH|AFG|2013 World|3}}</nowiki>
+
<nowiki>*{{Flaglinkteam|AFG|2013 World|3}}</nowiki>
*{{FlagATHCH|AFG|2013 World|3}}
+
*{{Flaglinkteam|AFG|2013 World|3}}
  
<nowiki>*{{FlagATHCH|USA|2009 World|39}}</nowiki>
+
<nowiki>*{{Flaglinkteam|USA|2009 World|39}}</nowiki>
*{{FlagATHCH|USA|2009 World|39}}
+
*{{Flaglinkteam|USA|2009 World|39}}
  
<nowiki>*{{FlagATHCH|Canada|2015 World}}</nowiki>
+
<nowiki>*{{Flaglinkteam|Canada|2015 World}}</nowiki>
*{{FlagATHCH|Canada|2015 World}}
+
*{{Flaglinkteam|Canada|2015 World}}
  
 
===Blank edition field===
 
===Blank edition field===
 
:''When using a blank edition field on a template used on the [[2011 World Championships in Athletics]] page:''
 
:''When using a blank edition field on a template used on the [[2011 World Championships in Athletics]] page:''
<nowiki>*{{FlagATHCH|USA||72}}</nowiki>
+
<nowiki>*{{Flaglinkteam|USA||72}}</nowiki>
*{{FlagATHCH|USA|2011 World|72}}
+
*{{Flaglinkteam|USA|2011 World|72}}
  
 
==See also==
 
==See also==
*[[Template:FlagATHCHathlete]]
+
*[[Template:Flaglinkmedalist]]
 
*[[Template:MedalistTable]]
 
*[[Template:MedalistTable]]
 
*[[Template:AthleticsLink]]
 
*[[Template:AthleticsLink]]

Revision as of 03:03, 5 March 2018

The Flaglinkteam template is designed to provide links to the "Nation at Championships" style sub-articles on sports championships pages.

Usage

The template has four input fields:

{{Flaglinkteam|Country code|Edition|Athletes|Flag variant}}
  • The Country code is the three letter country code used to refer to the nation in international competitions (e.g. Afghanistan = AFG). A country's full name can be used instead of the three letter country code; in that case, the country code will not be displayed in parentheses after the link
  • The Edition field relates to which version of the competition is desired to be linked (e.g. "2013 World" will link to "2013 World Championships in Athletics"). Leaving this field intentionally blank will automatically use the current page name to create the link, which is encouraged to save time and space.
  • The Athletes field is for when the template is used in participating nations sections. This will show the number of athletes the nation has entered in parentheses after the flag and country name
  • The Flag variant allows for when a country has changed their flag over the course of their competing at the athletics championships. For example, using "SFR" here with the country code YUG (Yugoslavia) will produce a flag and nation name for the Socialist Federal Republic of Yugoslavia.

Examples

*{{Flaglinkteam|AFG|2013 World|3}}

*{{Flaglinkteam|USA|2009 World|39}}

*{{Flaglinkteam|Canada|2015 World}}

Blank edition field

When using a blank edition field on a template used on the 2011 World Championships in Athletics page:

*{{Flaglinkteam|USA||72}}

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