Jump to content

Template:Country data Western Samoa/doc

From Wikipedia, the free encyclopedia

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}} Samoa Samoa
{{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]