This page is protected against editing.

Template:City

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


Template documentation[view·edit·history·purge]
This documentation istranscludedfromTemplate:City/doc.

This template provides the name of geographic locations such as cities, countries, regions, etc.

Usage

{{City |1= |lang= |link= }}

Template parameters

ParameterDescriptionDefaultStatus
1physical locationCity, country or region name usually in English and or native language.
Can also be a Wikidata Q-code.
emptyrequired
langlanguageLanguage code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences).emptyoptional
linkhyperlinklink type:
wikipediawill try to link to Wikipedia
wikidatato Wikidata
commonsto Commons
-mean no link
wikipediaoptional

Additional information

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

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

Relies on:
Module:CityandModule:City/data

Example

  • {{city|Beijing|link=wikidata}}:Beijing
  • {{city|Beijing|link=commons}}:Beijing
  • {{city|Beijing|link=-}}:Beijing

Templates linking contents

"1-N"means fromone to many.

Upwards links
Downwards links
Sideways page links
Sideways category links
Interproject links