Template:Data country

From Hitchwiki
Revision as of 02:04, 25 September 2014 by Kundrt (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a data template which takes name of the country and returns 2 commonly used currencies (codes), capital, subregion and population. Separated by slashes. Second optional parameter is for choosing which value should template return.

Examples:

{{Data country|Afghanistan}} -> AFN//Kabul/Southern Asia/26023100
{{Data country|Cuba}} -> CUC/CUP/Havana/Caribbean/11167325

{{Data country|Afghanistan|cur}} -> AFN
{{Data country|Afghanistan|cur1}} -> AFN
{{Data country|Afghanistan|currency}} -> AFN
{{Data country|Afghanistan|currency1}} -> AFN
{{Data country|Afghanistan|cur2}} ->
{{Data country|Afghanistan|currency2}} ->
{{Data country|Afghanistan|cap}} -> Kabul
{{Data country|Afghanistan|capital}} -> Kabul
{{Data country|Afghanistan|sub}} -> Southern Asia
{{Data country|Afghanistan|subregion}} -> Southern Asia
{{Data country|Afghanistan|pop}} -> 26023100
{{Data country|Afghanistan|population}} -> 26023100