Template:Flaglink/doc: Difference between revisions

From Hattrick
Jump to navigationJump to search
Jhattara (talk | contribs)
No edit summary
Jhattara (talk | contribs)
Line 4: Line 4:
; Country (mandatory)
; Country (mandatory)
: Parameter 1 identifies the country by '''name''' or '''three-letter code'''
: Parameter 1 identifies the country by '''name''' or '''three-letter code'''
: Name example: <nowiki>{{flagcountry|</nowiki>'''France'''}} → {{flagcountry|France}}
: Name example: <nowiki>{{flaglink|</nowiki>'''France'''}} → {{flaglink|France}}
: Country code example: <nowiki>{{flagcountry|</nowiki>'''FRA'''}} → {{flagcountry|FRA}}
: Country code example: <nowiki>{{flaglink|</nowiki>'''FRA'''}} → {{flaglink|FRA}}


; Size (optional)
; Size (optional)

Revision as of 17:06, 5 May 2010

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}} → France
Country code example: {{flaglink|FRA}} → France
Size (optional)
Use the size= parameter to change the size from the default.
Example: {{flaglink|France|size=40px}} → Template:Flagcountry.

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 flagcountry2, which contains the logic how to display the country data.

Related templates