Template:Country data Swaziland
Revision as of 07:22, 22 March 2019 by imported>Alex 21 (Implementing talk page edit requested)
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}} |
||
{{flagcountry|SWZ}} |
||
{{flagicon|SWZ}} |
||
{{fb|SWZ}} |
| The above documentation is transcluded from Template:Country data Swaziland/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |