Template:City2Country
Jump to navigation
Jump to search
- Purpose
Given a city, return its country (per Wikidata). NOTE: it must be a Commons category and it must be linked to a Wikidata item.
- Examples
{{City2Country|Category:Athens}}
Greece{{City2Country|Category:Auckland}}
New Zealand{{City2Country|Category:Antananarivo}}
Madagascar
- TODO
- Fail gracefully:
- redirect
{{City2Country|Category:Astana}}
-> CAUSES ERRORS {{City2Country|Category:Amsterdam}}
Netherlands