Template:Flaglink: Difference between revisions

From Hattrick
Jump to navigationJump to search
Jhattara (talk | contribs)
No edit summary
Jhattara (talk | contribs)
No edit summary
Line 1: Line 1:
{{country data {{{1|}}}  
{{country data {{{1|}}}  
| country flagicon2
| Country flagcountry2
| variant = {{{variant|{{{2|}}}}}}
| variant = {{{variant|{{{2|}}}}}}
| size = {{{size|}}}
| size = {{{size|}}}
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revision as of 16:58, 5 May 2010

Template:Country flagcountry2

[edit] Template documentation

This template displays the flag, linked to the main article of that country.

Usage

Country (mandatory)
Parameter 1 identifies the country by name or three-letter code
Name example: {{flaglink|France}} → Template:Country flagcountry2
Country code example: {{flaglink|FRA}} → Template:Country flagcountry2
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flaglink|France|size=40px}} → Template:Country flagcountry2.

Implementation

This template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:country data France) and the formatter template:country flaglink2, which contains the logic how to display the country data.

Related templates