Open main menu

See also Wiktionary:Place names for a list of types of place name of each country.

This template generates definition lines and categories for placenames. The corresponding data module is at Module:place/data.


Primary parameters:

the language code of the entry
see #Placetype parameter
3, 4, 5, ...
see #Holonym parameters
t1, t2, t3, ...
English translation(s) of the place

Suppression and text parameters:

replaces the entire definition without affecting the categorisation
adds further text to the type of place without affecting the categorisation
replaces the indefinite article at the beginning of the definition

Extra information parameters:

the modern name or location of the place
the capital city of the place
largest city=
the largest city of the place
the capital and largest city of the place
  • like holonym parameters, these can be used with language codes

Placetype parameterEdit

The type(s) of place of the entry, such as "city", "country" or "lake". Multiple values are separated by a slash (/). The special value "and" suppresses the comma and doesn’t affect categorisation.

Holonym parametersEdit

A full holonym parameter has the following format: placetype/langcode:placename. Using : with no langcode suppresses automati links.

If there is no language code, the placename will not be wikified. If there is, it will be wikified as if {{l}} were being used, which means that square brackets can be used inside it to link to individual parts.

If there is no placetype, the parameter is displayed as regular text. The special value "and" suppreses the commas.

placetype has the following aliases:

  • "c" → "country"
  • "s" → "state"
  • "r" → "region"
  • "p" → "province"

Multiple descriptionsEdit

The special value ; restarts the description and categorisation (except for the language code). For example:

  1. Rio de Janeiro
    1. {{place|pt|city/state capital|s/Rio de Janeiro|c/Brazil|;|former capital city|of|c/Brazil}}
    2. A city, the state capital of Rio de Janeiro, Brazil; former capital city of Brazil.


  1. Bernicia
    1. {{place|en|kingdom|in northeastern|country/England|and|southeastern|country/Scotland|a=An Anglo-Saxon}}
    2. An Anglo-Saxon kingdom in northeastern England and southeastern Scotland.
  2. Roma
    1. {{place|it|capital city|country/en:Italy|t1=Rome}}
    2. Rome (the capital city of Italy)
    3. Adds Category:it:Capital cities
  3. Scranton
    1. {{place|en|city|in northeastern|state/Pennsylvania|country/United States}}
    2. A city in northeastern Pennsylvania, United States.
    3. Adds Category:en:Cities in the United States of America
  4. Italy
    1. {{place|en|country|in southern|continent/Europe|caplc=en:Rome}}
    2. A country in southern Europe. Capital and largest city: Rome.
    3. Adds Category:en:Countries of Europe
  5. Wavrin
    1. {{place|fr|village/and/municipality|department/Nord|region/fr:[[Nord-Pas-de-Calais]] region|country/France}}
    2. A village and municipality of Nord, Nord-Pas-de-Calais region, France.
    3. Adds Category:fr:Villages and Category:fr:Municipalities in France

Guide to adding new items to the data moduleEdit

Module:place/data controls the categorisation of entries and some issues concerning the wording of definitions. This section will show, as an example, how to change the categorisation and display of archipelagos.

Each index of the variable export is a placetype. You can begin by adding the item

["archipelago"] = {

Each item has subitems for individual countries and one called "default". These subitems have subsubitems that indicate whether the entry should be categorised under the given holonym. The special index of "itself" indicates that the entry is categorised without a holonym. For example, if we add the following code:

["archipelago"] = {
	["country/Indonesia"] = {
		["province"] = {true},
		["country"] = {true},
	["default"] = {
		["itself"] = {true},

Then entries for archipelagos in Indonesia will be categorised under Category:langcode:Archipelagos in Province, Indonesia, or Category:langcode:Archipelagos in Indonesia if a province is not provided. For all other countries, or when no country is given, the entry will be added to Category:langcode:Archipelagos.

Instead of true, you can use a string to replace the word Archipelagos in the category. For example, if in the default subitem you used instead

		["itself"] = {"Islands"},

Then archipelagos outside of Indonesia would be added to Category:langcode:Islands

If the type of place requires wording more complicated than “place A, place B, place C, [] ”, a variable called synergy= can be used. Each subitem of this variable is the type of place that precedes it, and has the variables before=, between= and after=.

	synergy = {
		["island"] = {
			before = "in the island of",
			between = "in the",
			after = "archipelago"

This would make {{place|en|village|island/Komodo|archipelago/Lesser Sunda}} generate “A village in the island of Komodo in the Lesser Sunda archipelago.”

The other variables are:

replaces the default preposition "in" in definitions and categories (i.e. “A department of France” instead of “A department in France”).
replaces the default plural word+"s" in categories (i.e. “Cities in France” instead of “Citys in France”)
replaces the default article "a"/"an" in definitions (i.e. “The capital of” instead of “A capital of”)
replaces the name used as index (i.e. “A mountain range” instead of “A range”)