Template:Flag
[[File:Flag of {{{1}}}.png|23px|border]] [[{{{1}}}]]
Usage
This template has three parameters. The first is the name of the flag you are retrieving in the format Flag of [value]
. The second is the link or text you want to display; leaving it empty will default to the first parameter. The third is the filetype, which defaults to png
but can be changed to svg
or jpg
when needed. A (non-comprehensive) list of uploaded flags are in Category:Flags.
Please note that while many of the listed flags don't follow the Flag of [value]
format, SoaPuffball has made a couple of redirects that follow the format so this template may still be able to support these flags. When in doubt, search "File:Flag of [flag name]
" and see if there is a flag or redirect present.
This template has two variants, {{Flag/p}}
which sets the link to plaintext, and {{Flag/n}}
which removes the second parameter and the link altogether.
Code | Output |
---|---|
{{flag|Nymphalia}} |
Nymphalia |
{{flag|Nymphalia|Gemstride}} |
Gemstride |
{{flag|Boston|Boston|svg}} |
Boston |
{{flag/p|Nymphalia}} |
Nymphalia |
{{flag/p|Nymphalia|Gemstride}} |
Gemstride |
{{flag/p|Boston|Boston|svg}} |
Boston |
{{flag/n|Nymphalia}} |
|
{{flag/n|Boston|svg}} |
Template data
TemplateData for Flag
This template generates a flag and link to the relevant town's page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Flag name | 1 | The name of the flag. The file used has to be of the pattern "File:Flag of [x]"!
| String | required |
Link name | 2 | If different from the flag's name, the name of the town or city this link displays.
| String | optional |
File type | 3 | If the flag doesn't use a .png file (which is used by default), add it here.
| String | optional |