Template:Country data Myanmar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SiBr4
mNo edit summary
Ookami (talk | contribs)
m 21 revisions imported
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


Rather than redirecting {{tl|Country data Myanmar}} to {{tl|Country data Burma}}, the former template transcludes the latter and passes through all parameters. This allows for the displayed name to be either "Burma" or "Myanmar" based on which template is used. The linked article will be "Burma" in both cases, but changes to "Myanmar" if either data template is called by a sports flag template such as {{tl|fb}} or {{tl|ru}}. The variants from {{tl|Country data Burma}} can be used with both templates.
Rather than redirecting {{tl|Country data Burma}} to {{tl|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 {{tl|flagcountry}} and {{tl|fb}}). This allows for "Burma" to be used in historical contexts without having to also set {{para|name}}. The variants from {{tl|Country data Myanmar}} can be used with both templates.


====Examples====
====Examples====


{|class="wikitable"
{|class="wikitable"
! Template !! <nowiki>{{...|Myanmar}}</nowiki> output !! <nowiki>{{...|Burma}}</nowiki> output
! Template !! <code>Myanmar</code> output !! <code>Burma</code> output
|-
|-
| {{tl|flag}} || {{flag|Myanmar}} || {{flag|Burma}}
| {{tlx|flag|MYA}} || {{flag|Myanmar}} || {{flag|Burma}}
|-
|-
| {{tl|flagcountry}} || {{flagcountry|Myanmar}} || {{flagcountry|Burma}}
| {{tlx|flag|MYA|1974}} || {{flag|Myanmar|1974}} || {{flag|Burma|1974}}
|-
|-
| {{tl|flagicon}} || {{flagicon|Myanmar}} || {{flagicon|Burma}}
| {{tlx|flagcountry|MYA}} || {{flagcountry|Myanmar}} || {{flagcountry|Burma}}
|-
|-
| {{tl|bb}} || {{bb|Myanmar}} || {{bb|Burma}}
| {{tlx|flagicon|MYA}} || {{flagicon|Myanmar}} || {{flagicon|Burma}}
|-
|-
| {{tl|fb}} || {{fb|Myanmar}} || {{fb|Burma}}
| {{tlx|bb|MYA}} || {{bb|Myanmar}} || {{bb|Burma}}
|-
| {{tlx|fb|MYA}} || {{fb|Myanmar}} || {{fb|Burma}}
|}
|}


====Redirects to Template:Country data Myanmar====
====Redirects to Template:Country data Myanmar====
* {{noredirect|Template:MMR}}
* {{noredirect|Template:Country data MM}}
* {{noredirect|Template:MYA}}
* {{noredirect|Template:Country data MMR}}
* {{noredirect|Template:Country data MYA}}


{{#ifeq:{{PAGENAME}}|Country data Myanmar|
====Redirects to Template:Country data Burma====
* {{noredirect|Template:Country data BIR}}
 
<includeonly>{{Sandbox other||
[[Category:Country data templates of countries|Myanmar]]
[[Category:Country data templates of countries|Myanmar]]
[[Category:Country data templates of Myanmar| ]]
[[Category:Country data templates of Myanmar| ]]
}}
 
}}</includeonly>

Latest revision as of 02:07, 3 September 2020

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

Redirects to Template:Country data Burma