Difference between revisions of "Template:Data country"

From Hitchwiki
Jump to navigation Jump to search
 
m
Line 6: Line 6:
 
{{Data country|Cuba}} -> CUC,CUP,Havana,Caribbean
 
{{Data country|Cuba}} -> CUC,CUP,Havana,Caribbean
 
</pre>
 
</pre>
</noinclude>
+
 
{{#switch:{{{1}}}
+
[[Category:Templates]]
 +
</noinclude><includeonly>{{#switch:{{{1}}}
 
|Afghanistan=AFN,,Kabul,Southern Asia
 
|Afghanistan=AFN,,Kabul,Southern Asia
 
|\u00c5land Islands=EUR,,Mariehamn,Northern Europe
 
|\u00c5land Islands=EUR,,Mariehamn,Northern Europe
Line 257: Line 258:
 
|Zambia=ZMK,,Lusaka,Eastern Africa
 
|Zambia=ZMK,,Lusaka,Eastern Africa
 
|Zimbabwe=ZWL,,Harare,Eastern Africa
 
|Zimbabwe=ZWL,,Harare,Eastern Africa
|}}
+
|}}<nowiki /></includeonly>
<noinclude>[[Category:Templates]]</noinclude>
 

Revision as of 01:19, 24 September 2014

This is a data template which takes name of the country and returns 2 commonly used currencies (codes), capital and subregion. Separated by commas.

Examples:

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