Difference between revisions of "Template:Country data Myanmar/doc"

From blackwiki
Jump to navigation Jump to search
imported>Camiloneto
(→‎Examples: Changed the three dots for the actual Myanmar code)
imported>Vanisaac
(clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>)
 
(One intermediate revision by one other user not shown)
Line 26: Line 26:
 
* {{noredirect|Template:Country data MYA}}
 
* {{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 20:51, 24 April 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}}  Myanmar  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