Template:Flaglinkmedalist

From blackwiki
Revision as of 14:33, 25 March 2018 by imported>Primefac (Undid revision 832308747 by Sillyfolkboy (talk) just undoing for a minute until things can get sorted)
Jump to navigation Jump to search

{{{1}}}
Template:No flag ()

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

Usage

{{flaglinkmedalist|Athlete's name|Country code|optional link modifer|flag variant}}

The purpose of this template is to automatically provide a country link to a specific country page of a championships or games (for example United States at the 2012 Summer Olympics) on results articles for those competitions. The competition is derived automatically from the page title, so for example on the article Athletics at the 2012 Summer Olympics – Men's 100 metres a link will be automatically generated for "X at the 2012 Summer Olympics". The template will return any text in the title that is after " at the " and before " – ". Titles without those elements will be returned in full (e.g. 2015 World Championships in Athletics)

The optional link modifier is for athletics championships and should be a prefix to a competition named "...Championships in Athletics". For example, if "2013 World" is entered in this modifier, the outputted link will be for that country at the "2013 World Championships in Athletics".

Variants to the flag (for a country's historical flags, for example) can be generated by placing the variant code in the fourth field.

Examples

Note that the current page title is generated in the examples
{{flaglinkmedalist|[[Michael Phelps]]|USA}} Michael Phelps
United States United States (USA)
{{flaglinkmedalist|[[Grete Waitz]]|NOR|2011 World}} Grete Waitz
Norway Norway (NOR)
{{flaglinkmedalist|[[Nedo Nadi]]|ITA||1861}} Nedo Nadi
Italy Italy (ITA)
{{flaglinkmedalist|[[Koji Murofushi]]|JPN|2013 Asian|naval}} Koji Murofushi
Japan Japan (JPN)
{{flaglinkmedalist|[[Daley Thompson]]|ENG}} Daley Thompson
England England (ENG)

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