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

From blackwiki
Jump to navigation Jump to search
imported>SiBr4
m (Redirects)
imported>SiBr4
(Generalize)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
  
Rather than redirecting <nowiki>{{Country data Myanmar}}</nowiki> to {{tl|Country data Burma}}, this template transcludes the latter template 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 same variants from {{tl|Country data Burma}} can be used with this template.
+
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.
  
 
===Examples===
 
===Examples===
  
 
{|class="wikitable"
 
{|class="wikitable"
! Template !! "Myanmar" output !! "Burma" output
+
! Template !! <nowiki>{{...|Myanmar}}</nowiki> output !! <nowiki>{{...|Burma}}</nowiki> output
 
|-
 
|-
 
| {{tl|flag}} || {{flag|Myanmar}} || {{flag|Burma}}
 
| {{tl|flag}} || {{flag|Myanmar}} || {{flag|Burma}}
Line 13: Line 13:
 
|-
 
|-
 
| {{tl|flagicon}} || {{flagicon|Myanmar}} || {{flagicon|Burma}}
 
| {{tl|flagicon}} || {{flagicon|Myanmar}} || {{flagicon|Burma}}
 +
|-
 +
| {{tl|bb}} || {{bb|Myanmar}} || {{bb|Burma}}
 
|-
 
|-
 
| {{tl|fb}} || {{fb|Myanmar}} || {{fb|Burma}}
 
| {{tl|fb}} || {{fb|Myanmar}} || {{fb|Burma}}
 
|}
 
|}
  
===Redirects to this template===
+
===Redirects to Template:Country data Myanmar===
 
* {{noredirect|Template:MMR}}
 
* {{noredirect|Template:MMR}}
 
* {{noredirect|Template:MYA}}
 
* {{noredirect|Template:MYA}}
  
<includeonly>
+
{{#ifeq:{{PAGENAME}}|Country data Myanmar|
 
[[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>
+
}}

Revision as of 12:44, 26 June 2014

Rather than redirecting {{Country data Myanmar}} to {{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 {{fb}} or {{ru}}. The variants from {{Country data Burma}} can be used with both templates.

Examples

Template {{...|Myanmar}} output {{...|Burma}} output
{{flag}} File:Flag of Myanmar.svg Myanmar File:Flag of Myanmar.svg Burma
{{flagcountry}} File:Flag of Myanmar.svg Myanmar File:Flag of Myanmar.svg Burma
{{flagicon}} File:Flag of Myanmar.svg File:Flag of Myanmar.svg
{{bb}} File:Flag of Myanmar.svg Myanmar File:Flag of Myanmar.svg Burma
{{fb}} File:Flag of Myanmar.svg Myanmar File:Flag of Myanmar.svg Burma

Redirects to Template:Country data Myanmar