• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Country2continent

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

Combines {{Iso2continent}} and {{ISO 3166 code}} to generate a continent from a country parameter

Usage

{{Country2continent|Countryname}} e.g.

  • {{Country2continent|Benin}} → Africa
  • {{Country2continent|England}} → Europe

The optional parameter |2nd=yes is used to generate the second continent, for a country which is in more than one continent, e.g.:

  • {{Country2continent|Russia}} → Asia
  • {{Country2continent|Russia|2nd=yes}} → Europe

See also

  • {{Continent2continental}}
  • {{Country2continental}}
  • {{Country2nationality}}
  • {{GetCountryNameFromAdjective}}
  • {{GetAdjectiveFromCountryName}}
  • {{Find country}} - finds the name of a country or continent within text
  • {{Title country}} - applies Findcountry to PAGENAME
The above documentation is transcluded from Template:Country2continent/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Country2continent&oldid=12703"
Categories:
  • String manipulation templates
  • Country templates
Last edited on 2 December 2021, at 15:36

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 2 December 2021, at 15:36.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop