Template:Is country in Central America/doc
This is a documentation subpage for Template:Is country in Central America. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 16,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
A simple utility template to check whether a country is located in Central America. It works for the both the noun and adjectival forms, e.g. "Honduras" and "Honduran"
Returns "Central America" if true, i.e. for Belize, Costa Rica, El Salvador, Guatemala, Honduras, Nicaragua, and Panama.
Otherwise returns nothing, including for blank or nonsensical values.
Usage
[edit]Takes only one parameter: the name of a country or its nationality. Case-insensitive.
{{Is country in Central America|Foo}}
... where "Foo" is the name of a country
Examples
[edit]{{Is country in Central America|Belize}}
→ Central America
{{Is country in Central America|honduras}}
→ Central America
{{Is country in Central America|Nicaraguan}}
→ Central America
{{Is country in Central America|Japan}}
→
{{Is country in Central America|Canada}}
→
{{Is country in Central America|Xanadu}}
→
{{Is country in Central America|bElIzE}}
→ Central America
{{Is country in Central America|Lorem ipsum dolor sit amet}}
→
{{Is country in Central America|}}
→
See also
[edit]- Template:Is country an EU member state
- Template:Is country in Central America
- Template:Is country in the Caribbean