Difference between revisions of "Template:Country data Burma"

From blackwiki
Jump to navigation Jump to search
imported>SiBr4
(Moving /sandbox live to switch Burma and Myanmar after page move (see Template talk:Country data Burma))
imported>SiBr4
m (Includeonly code)
 
Line 1: Line 1:
{{Country data Myanmar
+
<includeonly>{{Country data Myanmar
 
|1={{{1}}}
 
|1={{{1}}}
 
|shortname alias={{#if:{{{altlink|}}}|Myanmar|Burma}}
 
|shortname alias={{#if:{{{altlink|}}}|Myanmar|Burma}}
Line 7: Line 7:
 
|altvar={{{altvar|}}}
 
|altvar={{{altvar|}}}
 
|variant={{{variant|}}}
 
|variant={{{variant|}}}
}}<noinclude>{{Documentation}}</noinclude>
+
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:01, 7 April 2016

50px Template documentation[view] [edit] [history] [purge]

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}} 23x15px Myanmar 23x15px Burma
{{flag|MYA|1974}} 23x15px Myanmar 23x15px Burma
{{flagcountry|MYA}} 23x15px Myanmar 23x15px Burma
{{flagicon|MYA}} 23x15px 23x15px
{{bb|MYA}} 23x15px Myanmar 23x15px Burma
{{fb|MYA}} 23x15px Myanmar 23x15px Burma

Redirects to Template:Country data Myanmar

Redirects to Template:Country data Burma