• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.49
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Country data Eswatini

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation
WarningThis template is used on approximately 4,700 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.
Flag of Eswatini.svg

Contents

  • 1 Standard parameters
  • 2 Redirect aliases
  • 3 Example usage
    • 3.1 Using a redirect alias
  • 4 Related templates
  • 5 Other information
    • 5.1 Examples
  • 6 TemplateData

Standard parameters

Parameter nameValueMeaning
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)

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

  • {{flag|Eswatini}} →  Eswatini
  • {{flagicon|Eswatini}} → Eswatini
  • {{flagcountry|Eswatini}} →  Eswatini

Using a redirect alias

  • {{flagicon|SWZ}} → Eswatini
  • {{flagcountry|SWZ}} →  Eswatini
  • {{flag|SWZ}} →  SWZ

Related templates

Please see the following related country_data templates:

  • Template:Country data Swaziland Swaziland

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}} and {{fb}}). 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}} Eswatini Eswatini
{{fb|SWZ}}  Eswatini  Swaziland

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Country data Eswatini

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.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified
This is the documentation for Template:Country data Eswatini. It is automatically generated by Template:Country showdata.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please purge the cache after making any changes to this template.
This template has a /doc subpage for the purposes of categories and documentation specific to this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Country_data_Eswatini&oldid=10653"
Categories:
  • Country data templates of countries
  • Country data templates of Eswatini
  • Templates using TemplateData
  • Country data templates with documentation subpage
  • All country data templates
  • Country data templates with distinct shortname
Last edited on 20 April 2019, at 08:50

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 20 April 2019, at 08:50.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop