Template:Flag: Difference between revisions
Appearance
No edit summary |
Metriximor (talk | contribs) fixing the link |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{country data {{{1|}}}|flag/core|name={{{name|{{{1|}}}}}}|variant={{{variant|{{{2|}}}}}}|altlink={{{altlink|}}}|size={{{size|}}}}}<noinclude>{{documentation}}</noinclude> | {{#ifexist:Template:Country data {{{1|}}} | ||
| {{country data {{{1|}}} | |||
| flag/core | |||
| name={{{name|{{{1|}}}}}} | |||
| variant={{{variant|{{{2|}}}}}} | |||
| altlink={{{altlink|}}} | |||
| size={{{size|}}} | |||
}} | |||
| [[{{{altlink|{{PAGENAME:{{{1|}}}#ifexist:}}}}}]] | |||
}}<noinclude>{{documentation}}<templatedata> | |||
{ | |||
"description": "Generates a country flag image with various customization options", | |||
"params": { | |||
"1": { | |||
"label": "Country code", | |||
"description": "The name of the country", | |||
"required": true, | |||
"type": "string" | |||
}, | |||
"name": { | |||
"label": "Flag name", | |||
"description": "Name of the flag variant to display", | |||
"required": false, | |||
"type": "string" | |||
}, | |||
"variant": { | |||
"label": "Variant", | |||
"description": "Specific variant of the flag to display", | |||
"required": false, | |||
"type": "string" | |||
}, | |||
"altlink": { | |||
"label": "Alternative link text", | |||
"description": "Text to display when hovering over the flag", | |||
"required": false, | |||
"type": "string" | |||
}, | |||
"size": { | |||
"label": "Image size", | |||
"description": "Size of the flag image in pixels", | |||
"required": false, | |||
"type": "number" | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> | |||
Latest revision as of 19:50, 18 February 2025
[[|]]
Generates a country flag image with various customization options
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Country code | 1 | The name of the country | String | required |
| Flag name | name | Name of the flag variant to display | String | optional |
| Variant | variant | Specific variant of the flag to display | String | optional |
| Alternative link text | altlink | Text to display when hovering over the flag | String | optional |
| Image size | size | Size of the flag image in pixels | Number | optional |