Template:Country data Eswatini/doc

From Zoophilia Wiki
Revision as of 17:03, 24 April 2020 by meta>Vanisaac (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>)
Jump to navigationJump to search

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|SWA}}  Eswatini  Swaziland
{{flagcountry|SWA}}  Eswatini  Swaziland
{{flagicon|SWA}} Eswatini Eswatini
{{fb|SWA}}  Eswatini  Swaziland