Template:Team flag-rt: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
(Test)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#if:{{{link|}}}|[[{{{link}}}|{{#if:{{{alt|}}}|{{{alt}}}|{{{1}}}}}]]|{{#if:{{{notext|}}}||{{#if:{{{nolink|}}}|{{{1}}}|{{#if:{{{name|}}}|[[{{{name}}}]]|{{#if:{{{2|}}}|{{#ifeq:{{{2}}}|Micras Games|{{#if:{{{MGyear|}}}|<includeonly>[[{{{1}}} at the {{{MGyear}}} Micras Games|{{{1}}}]]</includeonly>|<includeonly>[[{{{1}}} at the Micras Games|{{{1}}}]]</includeonly>}}|{{#ifeq:{{{2}}}|Microvision|<includeonly>[[{{{1}}} in the Microvision Song Contest|{{{1}}}]]</includeonly>|<includeonly>[[{{{1}}} {{#if:{{{prov|}}}|provincial|national}} {{{2}}} team|{{{1}}}]]</includeonly>}}}}|[[{{{1}}}]]}}}}}}}}}} [[File:{{{1}}} flag{{#if:{{{3|}}}|<includeonly>&nbsp;</includeonly>{{{3}}}<includeonly>.png</includeonly>|.png}}|border|{{#if:{{{size|}}}|{{{size}}}px|23px}}|{{{1}}}|link=]]<noinclude>
{{#if:{{{link|}}}|[[{{{link}}}|{{#if:{{{alt|}}}|{{{alt}}}|{{{1}}}}}]]|{{#if:{{{notext|}}}||{{#ifeq:{{{2}}}|flag||{{#if:{{{nolink|}}}|{{{1}}}|{{#if:{{{name|}}}|[[{{{name}}}]]|{{#if:{{{2|}}}|{{#ifeq:{{{2}}}|Micras Games|{{#if:{{{MGyear|}}}|<includeonly>[[{{{1}}} at the {{{MGyear}}} Micras Games|{{#if:{{{alt|}}}|{{{alt}}}|{{{1}}}}}]]</includeonly>|<includeonly>[[{{{1}}} at the Micras Games|{{#if:{{{alt|}}}|{{{alt}}}|{{{1}}}}}]]</includeonly>}}|{{#ifeq:{{{2}}}|Microvision|<includeonly>[[{{{1}}} in the Microvision Song Contest|{{#if:{{{alt|}}}|{{{alt}}}|{{{1}}}}}]]</includeonly>|<includeonly>[[{{{1}}} {{#if:{{{prov|}}}|provincial|national}} {{{2}}} team|{{#if:{{{alt|}}}|{{{alt}}}|{{{1}}}}}]]</includeonly>}}}}|{{#if:{{{alt|}}}|&nbsp;[[{{{1}}}|{{{alt}}}]]|&nbsp;[[{{{1}}}]]}}}}}}}}}}}}}} [[File:{{{1}}} flag{{#if:{{{3|}}}|<includeonly>&nbsp;</includeonly>{{{3}}}<includeonly>.png</includeonly>|.png}}|border|{{#if:{{{size|}}}|{{{size}}}px|23px}}|{{{1}}}|link=]]<noinclude>
{{Team flag-rt/doc}}
{{Team flag-rt/doc}}


[[Category:Sport templates]][[Category:Flag templates]]</noinclude>
[[Category:Sport templates]][[Category:Flag templates]]</noinclude>

Latest revision as of 15:09, 10 October 2021

 [[{{{1}}}]] [[File:{{{1}}} flag.png|border|23px|{{{1}}}|link=]]

Usage

{{Team flag-rt|nation name|team details|flag variant|optional parameters}}
nation name
The first parameter is mandatory and identifies the name of the nation. Only nations which have held FMS membership are included for flag image generation using this template. The nation's common name in English must be used. Names usually spelled with diacritics and special characters will work using Anglicised versions (i.e. æ > ae).
team details
This parameter is optional, and covers sports team information. It is case-sensitive, so ensure the correct capitalisation is used, such as football or Micras Games. You may also use this parameter for entering Microvision, which will direct to the nation's summary article for their Microvision Song Contest participation. Leave this parameter blank if you don't need it, but don't forget its pipe character if another parameter comes after it.
flag variant
This parameter is again optional, and covers older versions of the nation's flag, based on its file name format. The most common name formatting for such files is the old, old 2, etc addition.
additional parameters
These are a number of different parameters which will change how the template displays, and are all optional. Parameters which will override all other optional parameters are notext=yes which will display the flag image by itself, and nolink=yes which will display the nation name in normal text. Entering MGyear= followed by the year in which a Micras Games took place will link to the nation's participation article for that specific games as long as Micras Games is entered in the second parameter. Lastly, name= will override the name of the nation in the displayed text with a link to the article name entered.

Examples

Wikicode Results Notes
{{team flag-rt|Florian Republic}}  Florian Republic Florian Republic
{{team flag-rt|Florian Republic||old}}  Florian Republic Florian Republic Uses the previous version of the nation's flag
{{team flag-rt|Florian Republic|rugby league}} Florian Republic Florian Republic Links to the national rugby league team
{{team flag-rt|Florian Republic|rugby league|old}} Florian Republic Florian Republic
{{team flag-rt|Florian Republic|Micras Games}} Florian Republic Florian Republic Links to overall Micras Games summary page
{{team flag-rt|Florian Republic|Micras Games|MGyear=2018}} Florian Republic Florian Republic Links to year-specific Micras Games summary
{{team flag-rt|Florian Republic|notext=yes}} Florian Republic Displays the flag image alone
{{team flag-rt|Florian Republic|flag}} Florian Republic
{{team flag-rt|Florian Republic|nolink=yes}} Florian Republic Florian Republic Displays nation name in plain text
{{team flag-rt|Florian Republic|name=Stewart Florian}}
Stewart Florian Florian Republic Links to specified article
{{team flag-rt|Florian Republic||old|name=RB Dragonmoor}}
RB Dragonmoor Florian Republic
{{team flag-rt|Cherry Trees|ólbescból|prov=y}} Cherry Trees Cherry Trees Links to the provincial ólbescból team
{{team flag-rt|Mercury|link=Visa requirements in Mercury}} Mercury Mercury Links to a different article to the named nation

Related template

  • Template:Team flag is used in the same way, but displays the flag image to the left of the text.