Template:Country data Thailand/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Vanisaac |
m 6 revisions imported |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
Rather than redirecting {{tl|Country data Siam}} to {{tl|Country data Thailand}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Thailand", but the displayed name is either "Siam" or "Thailand" based on which of the two templates is used, even in templates that usually have a fixed default display name (such as {{tl|flagcountry}} and {{tl|fb}}). This allows for "Siam" to be used in historical contexts without having to also set {{para|name}}. The variants from {{tl|Country data Thailand}} can be used with both templates. | |||
====Examples==== | |||
{|class="wikitable" | |||
! Template !! <code>Thailand</code> output !! <code>Siam</code> output | |||
|- | |||
| {{tlx|flag|THA}} || {{flag|Thailand}} || {{flag|Siam}} | |||
|- | |||
| {{tlx|flag|THA}} || {{flag|Thailand}} || {{flag|Siam}} | |||
|- | |||
| {{tlx|flagcountry|THA}} || {{flagcountry|Thailand}} || {{flagcountry|Siam}} | |||
|- | |||
| {{tlx|flagicon|THA}} || {{flagicon|Thailand}} || {{flagicon|Siam}} | |||
|- | |||
| {{tlx|bb|THA}} || {{bb|Thailand}} || {{bb|Siam}} | |||
|- | |||
| {{tlx|fb|THA}} || {{fb|Thailand}} || {{fb|Siam}} | |||
|} | |||
====Redirects to Template:Country data Thailand==== | |||
* {{noredirect|Template:Country data THA}} | |||
* {{noredirect|Template:Country data TH}} | |||
====Redirects to Template:Country data Siam==== | |||
* {{noredirect|Template:Country data SIA}} | |||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
[[Category:Country data templates of countries|Thailand]] | [[Category:Country data templates of countries|Thailand]] | ||
[[Category:Country data templates of Thailand| ]] | [[Category:Country data templates of Thailand| ]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 04:02, 3 September 2020
This is a documentation subpage for Template:Country data Thailand. It may contain usage information, categories and other content that is not part of the original template page. |
Rather than redirecting {{Country data Siam}} to {{Country data Thailand}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Thailand", but the displayed name is either "Siam" or "Thailand" 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 "Siam" to be used in historical contexts without having to also set |name=
. The variants from {{Country data Thailand}} can be used with both templates.
Examples
Template | Thailand output |
Siam output
|
---|---|---|
{{flag|THA}} |
Thailand | Siam |
{{flag|THA}} |
Thailand | Siam |
{{flagcountry|THA}} |
Thailand | Siam |
{{flagicon|THA}} |
||
{{bb|THA}} |
Thailand | Siam |
{{fb|THA}} |
Thailand | Siam |
Redirects to Template:Country data Thailand
Redirects to Template:Country data Siam