Template:Country data Burma: Difference between revisions
meta>SiBr4 Implementing sandbox version to fix links for sports usages (see WT:WPFT#Burma/Myanmar) |
meta>SiBr4 Moving /sandbox live to switch Burma and Myanmar after page move (see Template talk:Country data Burma) |
||
Line 1: | Line 1: | ||
{{ | {{Country data Myanmar | ||
| | |1={{{1}}} | ||
| shortname alias = | |shortname alias={{#if:{{{altlink|}}}|Myanmar|Burma}} | ||
|size={{{size|}}} | |||
|name={{#if:{{{name|}}}|{{{name}}}|{{#if:{{{altlink|}}}|Burma}}}} | |||
|altlink={{{altlink|}}} | |||
|altvar={{{altvar|}}} | |||
|variant={{{variant|}}} | |||
}}<noinclude>{{Documentation}}</noinclude> | |||
| size = {{{size|}}} | |||
| name = {{#if:{{{name|}}}|{{{name}}}|{{#if:{{{altlink|}}}|Burma}}}} | |||
| altlink = {{{altlink|}}} | |||
| altvar = {{{altvar|}}} | |||
| variant = {{{variant|}}} | |||
<noinclude> | |||
</noinclude> | |||
Revision as of 12:36, 8 September 2015
{{ {{{1}}} | alias = Myanmar | shortname alias = Burma | flag alias = Flag of Myanmar.svg | flag alias-1937 = British Burma 1937 flag.svg | flag alias-1943 = Flag of the State of Burma (1943-45).svg | flag alias-1948 = Flag of Burma (1948–1974).svg | flag alias-1974 = Flag of Myanmar (1974–2010).svg | flag alias-military=Flag of the Myanmar Armed Forces.svg | link alias-military=Tatmadaw | flag alias-naval = Naval Ensign of Myanmar.svg | link alias-air force = Myanmar Air Force | flag alias-army = Army Flag of Myanmar.svg | flag alias-air force = Air Force Ensign of Myanmar.svg | link alias-army = Myanmar Army | link alias-naval = Myanmar Navy | flag alias-coast guard = Flag of the Myanmar Police Force.svg | link alias-coast guard = Myanmar Police Force | size = | name = | altlink = | altvar = | variant =
}}
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}} |
||
{{bb|MYA}} |
Myanmar | Burma |
{{fb|MYA}} |
Myanmar | Burma |