Template:Country data Myanmar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SiBr4
meta>SiBr4
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


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.
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 of the two templates 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 !! <nowiki>{{...|Myanmar}}</nowiki> output !! <nowiki>{{...|Burma}}</nowiki> output
! Template !! <code>Myanmar</code> output !! <code>Burma</code> output
|-
|-
| {{tlx|flag|...}} || {{flag|Myanmar}} || {{flag|Burma}}
| {{tlx|flag|...}} || {{flag|Myanmar}} || {{flag|Burma}}

Revision as of 13:06, 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 of the two templates 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|...}}  Myanmar  Burma
{{flag|...|1974}}  Myanmar  Burma
{{flagcountry|...}}  Myanmar  Burma
{{flagicon|...}} Myanmar Myanmar
{{bb|...}}  Myanmar  Burma
{{fb|...}}  Myanmar  Burma

Redirects to Template:Country data Myanmar