Difference between revisions of "Template:FlagUCIRoadathlete"

From blackwiki
Jump to navigation Jump to search
imported>Sander.v.Ginkel
(←Created page with '{{#if:{{{2|}}}|{{flagicon|{{{2}}}|{{{4}}}}}|{{no flag}}}} {{{1}}}{{#if:{{{2|}}}| <span style="font-size:90%;">({{getalias|{{{2}}}|shortname}} at the...')
 
imported>Frietjes
 
Line 1: Line 1:
−
{{#if:{{{2|}}}|{{flagicon|{{{2}}}|{{{4}}}}}|{{no flag}}}}&nbsp;{{{1}}}{{#if:{{{2|}}}|&nbsp;<span style="font-size:90%;">([[{{getalias|{{{2}}}|shortname}} at the {{#if:{{{3|}}}|{{{3|}}} UCI Road World Championships|{{#ifeq:{{#invoke:String|find|{{PAGENAME}}|–}}|0|{{PAGENAME}}|{{#invoke:String|sub|{{PAGENAME}}|1|{{#expr:{{#invoke:String|find|{{PAGENAME}}|–}} - 2}}}}}}}}|{{{2}}}]])</span>}}<noinclude>
+
{{#if:{{{2|}}}|{{flagicon|{{{2}}}|{{{4}}}}}|{{no flag}}}}&nbsp;{{{1}}}{{#if:{{{2|}}}|&nbsp;<span style="font-size:90%;">([[{{getalias|{{{2}}}|shortname}} at the UCI Road World Championships|{{{2}}}]])</span>}}<noinclude>
 +
{{documentation|content=
 +
== Usage ==
 +
* {{tld|FlagUCIRoadathlete|Name|Country code|Edition|Flag variant}}
 +
*The '''Name''' is the name of the athlete, wikilinked if appropriate.
 +
*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)
 +
*The '''Edition''' field relates to which version of the competition.  This parameter currently does nothing, but is retained for backwards compatibility.
 +
*The '''Flag variant''' allows for when a country has changed their flag over the course of their competing at the cycling 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]].
 +
 
 +
== Example ==
 +
<code><nowiki>{{flagUCIRoadathlete|[[Fabian Cancellara]]|SUI}}</nowiki></code> &rarr; {{flagUCIRoadathlete|[[Fabian Cancellara]]|SUI}}
 +
 
 
[[Category:Cycling templates]]
 
[[Category:Cycling templates]]
−
{{documentation}}
+
}}
 
</noinclude>
 
</noinclude>

Latest revision as of 17:00, 8 January 2017

Template:No flag {{{1}}}

Template documentation

Usage

  • {{FlagUCIRoadathlete|Name|Country code|Edition|Flag variant}}
  • The Name is the name of the athlete, wikilinked if appropriate.
  • The Country code is the three letter country code used to refer to the nation in international competitions (e.g. Afghanistan = AFG)
  • The Edition field relates to which version of the competition. This parameter currently does nothing, but is retained for backwards compatibility.
  • The Flag variant allows for when a country has changed their flag over the course of their competing at the cycling 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.

Example

{{flagUCIRoadathlete|[[Fabian Cancellara]]|SUI}} → Switzerland Fabian Cancellara (SUI)