Template:Country data Eswatini
Jump to navigation
Jump to search
Template documentation
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Template:Country data Eswatini is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag , flagicon , and others. |
This template is within the scope of WikiProject Flag Template, a collaborative effort to maintain flag templates on Wikipedia. A more thorough discussion of the flag template system, including parameters not described here, can be found on the project page. |
Standard parameters
Parameter name | Value | Meaning |
---|---|---|
alias |
Eswatini
| Main article name (Eswatini) |
shortname alias |
Eswatini |
(optional) Display name to be used for the wikilink, if alias is a disambiguated article name, for example |
flag alias |
Flag of Eswatini.svg |
Image name (File:Flag of Eswatini.svg, shown on right) |
Flag variants
Flag of Eswatini
Label | Flag image (40px) | Image name |
---|---|---|
1890 | Flag of Swaziland (c. 1890-1894).svg | |
1894 | Flag of Swaziland 1894.svg |
Redirect aliases
This template can also be used via an alias name (implemented as a redirect to this template):Alias name | {{flag|alias}} output | {{flagcountry|alias}} output |
---|---|---|
SWZ (view) | SWZ | Eswatini |
See What links here for a full list of redirects.
Example usage
Using a flag variant
{{flag|Eswatini|1890}}
→ Eswatini{{flagicon|Eswatini|1890}}
→
Using a redirect alias
Related templates
Please see the following related country_data
templates:
Other information
Rather than redirecting {{Country data Swaziland}} to {{Country data Eswatini}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Eswatini", but the displayed name is either "Swaziland" or "Eswatini" based on which of the two templates is used, even in templates that usually have a fixed default display name (such as {{flagcountry}}). This allows for "Swaziland" to be used in historical contexts without having to also set |name=
.
Examples
Template | Eswatini output |
Swaziland output
|
---|---|---|
{{flag|SWZ}} |
Eswatini | Swaziland |
{{flagcountry|SWZ}} |
Eswatini | Swaziland |
{{flagicon|SWZ}} |
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Country data Eswatini in articles based on its TemplateData.
TemplateData for Country data Eswatini
<templatedata> {
"description": "This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.", "params": {}
} </templatedata>