Template:Flaglink: Difference between revisions

From Hattrick
Jump to navigationJump to search
Jhattara (talk | contribs)
Created page with '{{country data {{{1}}} | country flagcountry2 | variant = {{{variant|{{{2|}}}}}} | size = {{{size|}}} | name = {{{name|}}} }}<noinclude>{{documentation}}</noinclude>'
 
m Reverted edits by Fopper (talk) to last revision by Jhattara
Tag: Rollback
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{country data {{{1}}}  
{{country data {{{1|}}}  
| country flagcountry2
| Country flaglink2
| variant = {{{variant|{{{2|}}}}}}
| variant = {{{variant|{{{2|}}}}}}
| size = {{{size|}}}
| size = {{{size|}}}
| name = {{{name|}}}
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 13:47, 9 January 2022

[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}} → 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}} → France.

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