Template:Is country in the Caribbean/doc
This is a documentation subpage for Template:Is country in the Caribbean. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 17,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 (sovereign state or dependent territory) is located in the Caribbean. It works for the both the noun and adjectival forms, e.g. "Cuba" and "Cuban"
Usage
[edit]Takes only one parameter: the name of a country, in noun or adjectival form. Case-insensitive.
{{Is country in the Caribbean|Foo}}
... where "Foo" is the name of a country
Output
[edit]Returns "Caribbean" if true, i.e. for the following countries:
- Anguilla
- Antigua and Barbuda
- Aruba
- The Bahamas
- Barbados
- Bonaire
- British Virgin Islands
- Cayman Islands
- Collectivity of Saint Martin
- Cuba
- Curaçao
- Dominica
- Dominican Republic
- Grenada
- Guadeloupe
- Haiti
- Jamaica
- Martinique
- Montserrat
- Puerto Rico
- Saba
- Saint Barthélemy
- Saint Kitts and Nevis
- Saint Lucia
- Saint Vincent and the Grenadines
- Sint Eustatius
- Sint Maarten
- Trinidad and Tobago
- Turks and Caicos Islands
- United States Virgin Islands
Otherwise returns nothing, including for blank or nonsensical values.
Examples
[edit]{{Is country in the Caribbean|Aruba}}
→ Caribbean
{{Is country in the Caribbean|haiti}}
→ Caribbean
{{Is country in the Caribbean|Jamaican}}
→ Caribbean
{{Is country in the Caribbean|mOnTsErRaT}}
→ Caribbean
{{Is country in the Caribbean|Canada}}
→
{{Is country in the Caribbean|Xanadu}}
→
{{Is country in the Caribbean|bElIzE}}
→
{{Is country in the Caribbean|Lorem ipsum dolor sit amet}}
→
{{Is country in the Caribbean|}}
→
See also
[edit]- Template:Is country an EU member state
- Template:Is country in Central America
- Template:Is country in the Caribbean