This page is protected against editing.

Template:City

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


Template documentationview · edit · history · purge ]
This documentation is transcluded from Template: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 or the location's main 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:
wikipedia will try to link to Wikipedia
wikidata to Wikidata
commons to 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:City and Module:City/data

Example

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

Templates linking contents

"1-N" means from one to many.

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