Template:Country data Myanmar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SiBr4
No edit summary
meta>Camiloneto
→‎Examples: Changed the three dots for the actual Myanmar code
Line 8: Line 8:
! Template !! <code>Myanmar</code> output !! <code>Burma</code> output
! Template !! <code>Myanmar</code> output !! <code>Burma</code> output
|-
|-
| {{tlx|flag|...}} || {{flag|Myanmar}} || {{flag|Burma}}
| {{tlx|flag|MYA}} || {{flag|Myanmar}} || {{flag|Burma}}
|-
|-
| {{tlx|flag|...|1974}} || {{flag|Myanmar|1974}} || {{flag|Burma|1974}}
| {{tlx|flag|MYA|1974}} || {{flag|Myanmar|1974}} || {{flag|Burma|1974}}
|-
|-
| {{tlx|flagcountry|...}} || {{flagcountry|Myanmar}} || {{flagcountry|Burma}}
| {{tlx|flagcountry|MYA}} || {{flagcountry|Myanmar}} || {{flagcountry|Burma}}
|-
|-
| {{tlx|flagicon|...}} || {{flagicon|Myanmar}} || {{flagicon|Burma}}
| {{tlx|flagicon|MYA}} || {{flagicon|Myanmar}} || {{flagicon|Burma}}
|-
|-
| {{tlx|bb|...}} || {{bb|Myanmar}} || {{bb|Burma}}
| {{tlx|bb|MYA}} || {{bb|Myanmar}} || {{bb|Burma}}
|-
|-
| {{tlx|fb|...}} || {{fb|Myanmar}} || {{fb|Burma}}
| {{tlx|fb|MYA}} || {{fb|Myanmar}} || {{fb|Burma}}
|}
|}



Revision as of 03:54, 1 May 2018

Rather than redirecting {{Country data Burma}} to {{Country data Myanmar}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Myanmar", but the displayed name is either "Burma" or "Myanmar" 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 "Burma" to be used in historical contexts without having to also set |name=. The variants from {{Country data Myanmar}} can be used with both templates.

Examples

Template Myanmar output Burma output
{{flag|MYA}}  Myanmar  Burma
{{flag|MYA|1974}} File:Flag of Myanmar (1974–2010).svg Myanmar File:Flag of Myanmar (1974–2010).svg Burma
{{flagcountry|MYA}}  Myanmar  Burma
{{flagicon|MYA}} Myanmar Myanmar
{{bb|MYA}}  Myanmar  Burma
{{fb|MYA}}  Myanmar  Burma

Redirects to Template:Country data Myanmar