Template:Country data Samoa is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flag icon, and others.
This template is within the scope of WikiProject Flag Template, a collaborative effort to maintain flag templates on Wikipedia. A more thorough discussion of the flag template system, including parameters not described here, can be found on the project 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.
This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flag icon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.
This is the documentation for Template:Country data Samoa. It is automatically generated by Template:Country showdata. Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please purge the cache after making any changes to this template. This template has a /doc subpage for the purposes of categories and documentation specific to this template.