Template:Is country in Central America: Difference between revisions
←Created page with '<includeonly><!-- # Ugly code here, but it does four pre-processing steps, working out from the parameter {{{1|}}} # 1. Converts parameter to lower case, using...' |
MusikBot II (talk | contribs) m Protected "Template:Is country in Central America": High-risk template or module (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
(No difference)
|
Latest revision as of 17:59, 27 September 2020
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
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
{{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|}}
→