Template:Country data Eswatini

Revision as of 17:50, 11 January 2025 by Wikipedia>Skjoldbro (army and air force links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Country data Eswatini/doc" to edit its documentation if it is available. (How does this work?)


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 {{flag country}} 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}} File:Flag of Eswatini.svg Eswatini File:Flag of Eswatini.svg Swaziland
{{flag country|SWZ}} File:Flag of Eswatini.svg Eswatini File:Flag of Eswatini.svg Swaziland
{{flag icon|SWZ}} Eswatini Eswatini
{{fb|SWZ}} File:Flag of Eswatini.svg Eswatini File:Flag of Eswatini.svg Swaziland