Template:Country data Eswatini/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>)
meta>DenSportgladeSkåningen
m ("SWA" not a rediret to Swaziland/Eswatini)
Line 8: Line 8:
! Template !! <code>Eswatini</code> output !! <code>Swaziland</code> output
! Template !! <code>Eswatini</code> output !! <code>Swaziland</code> output
|-
|-
| {{tlx|flag|SWA}} || {{flag|Eswatini}} || {{flag|Swaziland}}
| {{tlx|flag|SWZ}} || {{flag|Eswatini}} || {{flag|Swaziland}}
|-
|-
| {{tlx|flagcountry|SWA}} || {{flagcountry|Eswatini}} || {{flagcountry|Swaziland}}
| {{tlx|flagcountry|SWZ}} || {{flagcountry|Eswatini}} || {{flagcountry|Swaziland}}
|-
|-
| {{tlx|flagicon|SWA}} || {{flagicon|Eswatini}} || {{flagicon|Swaziland}}
| {{tlx|flagicon|SWZ}} || {{flagicon|Eswatini}} || {{flagicon|Swaziland}}
|-
|-
| {{tlx|fb|SWA}} || {{fb|Eswatini}} || {{fb|Swaziland}}
| {{tlx|fb|SWZ}} || {{fb|Eswatini}} || {{fb|Swaziland}}
|}
|}



Revision as of 16:06, 3 July 2020

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