Template:Country data Samoa/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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 source]
Template Samoa output Western Samoa output
{{flag|SAM}} File:Flag of Samoa.svg Samoa File:Flag of Samoa.svg Western Samoa
{{flag|SAM|colonial}} File:Flag of the Samoa Trust Territory.svg Samoa File:Flag of the Samoa Trust Territory.svg Western Samoa
{{flag country|SAM}} File:Flag of Samoa.svg Samoa File:Flag of Samoa.svg Western Samoa
{{flag icon|SAM}} Samoa Samoa
{{bk|SAM}} File:Flag of Samoa.svg Samoa File:Flag of Samoa.svg Western Samoa
{{fb|SAM}} File:Flag of Samoa.svg Samoa File:Flag of Samoa.svg Western Samoa

Redirects to Template:Country data Samoa

[edit source]

Redirects to Template:Country data Western Samoa

[edit source]