Template:Country data Eswatini/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wiz9999
(Restoration of this page to pre-deletion status after the template breaking edits & deletions by Andrwsc.)
 
meta>Wiz9999
(removing 'includeonly's)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<includeonly>


Rather than redirecting {{tl|Country data Swaziland}} to {{tl|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 {{tl|flagcountry}} and {{tl|fb}}). This allows for "Swaziland" to be used in historical contexts without having to also set {{para|name}}.
Rather than redirecting {{tl|Country data Swaziland}} to {{tl|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 {{tl|flagcountry}} and {{tl|fb}}). This allows for "Swaziland" to be used in historical contexts without having to also set {{para|name}}.
Line 22: Line 21:
[[Category:Country data templates of Eswatini| ]]
[[Category:Country data templates of Eswatini| ]]
}}
}}
</includeonly>

Revision as of 10:41, 22 March 2019

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