Template:City

From Wikimedia Commons, the free media repository
Jump to: navigation, search


Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:City/doc.

This template provides to links to names of geographical locations like cities, countries, regions, etc. Links are either interwiki links to other wikipedias chosen based on user's preferred language or to gallery pages, which hopefully have such interwiki links.

Usage

{{City |1= }}

Template parameters

Parameter Description Default Status
1
place City, country or region name usually in English and or native language. Can also be a Wikidata Q-code. empty required
lang
language language {{int:lang}} optional
link
link link type: wikipedia will try to link to Wikipedia; wikidata to Wikidata; commons to Commons and - mean no link wikipedia optional

Additional information

The template is intended to be used in the following namespaces: the Creator namespace

The template is intended to be used by the following user groups: all users

Relies on:
Module:City and Module:City/data

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

Examples

  • {{city|Paris}} gives "Paris"
  • {{city|London}} gives "London"
  • {{city|Warszawa}} gives "Warsaw"
  • {{city|Q144786}} gives "Zakopane"
  • {{city|هرات}} gives "Herat"
  • {{city|XXXXXX}} gives "XXXXXX"