Template:Country data Western Samoa/doc
Appearance
This is a documentation subpage for Template:Country data Western Samoa. It may contain usage information, categories and other content that is not part of the original template page. |
This is a documentation subpage for Template:Country data Western Samoa. It may contain usage information, categories and other content that is not part of the original template page. |
Rather than redirecting {{Country data Western Samoa}} to {{Country data Samoa}}, the former template transcludes the latter and passes through all parameters. The linked article will always be "Samoa", but the displayed name is either "Western Samoa" or "Samoa" based on which of the two templates is used, even in templates that usually have a fixed default display name (such as {{flag country}} and {{fb}}). This allows for "Western Samoa" to be used in historical contexts without having to also set |name=
. The variants from {{Country data Samoa}} can be used with both templates.
Examples
[edit]Template | Samoa output |
Western Samoa output
|
---|---|---|
{{flag|SAM}} |
Samoa | Western Samoa |
{{flag|SAM|colonial}} |
Samoa | Western Samoa |
{{flag country|SAM}} |
Samoa | Western Samoa |
{{flag icon|SAM}} |
||
{{bk|SAM}} |
Samoa | Western Samoa |
{{fb|SAM}} |
Samoa | Western Samoa |
Redirects to Template:Country data Samoa
[edit]Redirects to Template:Country data Western Samoa
[edit]