Template:Country data Myanmar: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>SiBr4 Variant pass-through parameter |
meta>Ahecht altlink=Myanmar, since article was moved from Burma→Myanmar |
||
Line 4: | Line 4: | ||
|size={{{size|}}} | |size={{{size|}}} | ||
|name={{#if:{{{name|}}}|{{{name}}}|{{#if:{{{altlink|}}}|Myanmar}}}} | |name={{#if:{{{name|}}}|{{{name}}}|{{#if:{{{altlink|}}}|Myanmar}}}} | ||
|altlink={{{altlink|}}} | |altlink={{{altlink|Myanmar}}} | ||
|altvar={{{altvar|}}} | |altvar={{{altvar|}}} | ||
|variant={{{variant|}}} | |variant={{{variant|}}} | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 23:02, 2 September 2015
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}} |
Template loop detected: Template:Country data Myanmar | Template loop detected: Template:Country data Burma |
{{flag|MYA|1974}} |
Template loop detected: Template:Country data Myanmar | Template loop detected: Template:Country data Burma |
{{flagcountry|MYA}} |
Template loop detected: Template:Country data Myanmar | Template loop detected: Template:Country data Burma |
{{flagicon|MYA}} |
Template loop detected: Template:Country data Myanmar | Template loop detected: Template:Country data Burma |
{{bb|MYA}} |
Template loop detected: Template:Country data Myanmar | Template loop detected: Template:Country data Burma |
{{fb|MYA}} |
Template loop detected: Template:Country data Myanmar | Template loop detected: Template:Country data Burma |