Template:Team flag/doc: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(→Usage) |
|||
Line 30: | Line 30: | ||
|<code><nowiki>{{team flag|Florian Republic|flag}}</nowiki></code> || {{team flag|Florian Republic|flag}} ||rowspan=2| Displays the flag image alone | |<code><nowiki>{{team flag|Florian Republic|flag}}</nowiki></code> || {{team flag|Florian Republic|flag}} ||rowspan=2| Displays the flag image alone | ||
|- | |- | ||
| <code><nowiki>{{team flag|Florian Republic | | <code><nowiki>{{team flag|Florian Republic|notext=yes}}</nowiki></code> || {{team flag|Florian Republic|notext=yes}} | ||
|- | |- | ||
| <code><nowiki>{{team flag|Florian Republic | | <code><nowiki>{{team flag|Florian Republic|nolink=yes}}</nowiki></code> || {{team flag|Florian Republic|nolink=yes}} || Displays nation name in plain text | ||
|- | |- | ||
| <code><nowiki>{{team flag|Florian Republic | | <code><nowiki>{{team flag|Florian Republic|name=Stewart Florian}}</nowiki></code><br> || {{team flag|Florian Republic|name=Stewart Florian}} ||rowspan=2| Links to specified article | ||
|- | |- | ||
| <code><nowiki>{{team flag|Florian Republic||old|name=RB Dragonmoor}}</nowiki></code><br> || {{team flag|Florian Republic||old|name=RB Dragonmoor}} | | <code><nowiki>{{team flag|Florian Republic||old|name=RB Dragonmoor}}</nowiki></code><br> || {{team flag|Florian Republic||old|name=RB Dragonmoor}} |
Revision as of 01:09, 11 April 2018
Usage
{{Team flag|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
orMicras Games
. You may also use this parameter for enteringMicrovision
, which will direct to the nation's summary article for their Microvision Song Contest participation, or as a way to display just the nation's flag by usingflag
. 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, andnolink=yes
which will display the nation name in normal text. EnteringMGyear=
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 asMicras 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|Florian Republic}} |
Florian Republic | |
{{team flag|Florian Republic||old}} |
Florian Republic | Uses the previous version of the nation's flag |
{{team flag|Florian Republic|rugby league}} |
Florian Republic | Links to the national rugby league team |
{{team flag|Florian Republic|rugby league|old}} |
Florian Republic | |
{{team flag|Florian Republic|Micras Games}} |
Florian Republic | Links to overall Micras Games summary page |
{{team flag|Florian Republic|Micras Games|MGyear=2018}} |
Florian Republic | Links to year-specific Micras Games summary |
{{team flag|Florian Republic|flag}} |
Displays the flag image alone | |
{{team flag|Florian Republic|notext=yes}} |
||
{{team flag|Florian Republic|nolink=yes}} |
Florian Republic | Displays nation name in plain text |
{{team flag|Florian Republic|name=Stewart Florian}} |
Stewart Florian | Links to specified article |
{{team flag|Florian Republic||old|name=RB Dragonmoor}} |
RB Dragonmoor |
Related template
- Template:Team flag-rt is used in the same way, but displays the flag image to the right of the text. For use in tables and infoboxes, where required.