Module:category tree/topic/Places: Difference between revisions

m 1 revision imported
m top: clean up
 
Line 90: Line 90:
type = "name",
type = "name",
topic = label,
topic = label,
description = "{{{langname}}} names of [[capital]]s of " .. linkdesc .. ".",
description = "{{{langname}}} names of [[wikt:capital|capital]]s of " .. linkdesc .. ".",
parents = {"capital cities"},
parents = {"capital cities"},
}
}
Line 190: Line 190:
--[==[
--[==[
Construct the description of a location, including its container trail either to the end or until we encounter a
Construct the description of a location, including its container trail either to the end or until we encounter a
`no_include_container_in_desc` setting. For example, for the city of [[Birmingham]], the description will read
`no_include_container_in_desc` setting. For example, for the city of [[wikt:Birmingham|Birmingham]], the description will read
`"[[Birmingham]], a [[city]] in the [[West Midlands]] (which is a [[county]] of [[England]], which is a
`"[[wikt:Birmingham|Birmingham]], a [[wikt:city|city]] in the [[wikt:West Midlands|West Midlands]] (which is a [[wikt:county|county]] of [[wikt:England|England]], which is a
[[constituent country]] of the [[United Kingdom]], which is a [[country]] in [[Europe]])"`. FIXME: Possibly we should
[[wikt:constituent country|constituent country]] of the [[wikt:United Kingdom|United Kingdom]], which is a [[wikt:country|country]] in [[wikt:Europe|Europe]])"`. FIXME: Possibly we should
adopt the way city descriptions used to read, which was similar to `"the city of [[Birmingham]], in the county of the
adopt the way city descriptions used to read, which was similar to `"the city of [[wikt:Birmingham|Birmingham]], in the county of the
[[West Midlands]], in the [[constituent country]] of [[England]], in the [[country]] of the [[United Kingdom]], in
[[wikt:West Midlands|West Midlands]], in the [[wikt:constituent country|constituent country]] of [[wikt:England|England]], in the [[wikt:country|country]] of the [[wikt:United Kingdom|United Kingdom]], in
[[Europe]]"`.
[[wikt:Europe|Europe]]"`.
]==]
]==]
local function construct_location_desc(group, key, spec)
local function construct_location_desc(group, key, spec)
Line 726: Line 726:
end
end
end
end
local desc = "{{{langname}}} names of [[capital]]s of " .. placetype_desc .. variant_match_text ..
local desc = "{{{langname}}} names of [[wikt:capital|capital]]s of " .. placetype_desc .. variant_match_text ..
" of " .. fetch_or_construct_location_desc(group, key, spec) .. "."
" of " .. fetch_or_construct_location_desc(group, key, spec) .. "."
local full_placename, _ = m_locations.key_to_placename(group, key)
local full_placename, _ = m_locations.key_to_placename(group, key)
Line 764: Line 764:
local overriding_category_descriptions = {
local overriding_category_descriptions = {
["autonomous cities of Spain"] = "the [[w:Autonomous communities of Spain#Autonomous_cities|autonomous cities of Spain]]",
["autonomous cities of Spain"] = "the [[w:Autonomous communities of Spain#Autonomous_cities|autonomous cities of Spain]]",
["regions of Greece"] = "the regions ([[periphery|peripheries]]) of [[Greece]]",
["regions of Greece"] = "the regions ([[periphery|peripheries]]) of [[wikt:Greece|Greece]]",
["regions of North Macedonia"] = "the regions ([[periphery|peripheries]]) of [[North Macedonia]]",
["regions of North Macedonia"] = "the regions ([[periphery|peripheries]]) of [[wikt:North Macedonia|North Macedonia]]",
["subprefectures of Japan"] = "[[subprefecture]]s of [[Japan]]ese [[prefecture]]s",
["subprefectures of Japan"] = "[[wikt:subprefecture|subprefecture]]s of [[wikt:Japan|Japan]]ese [[wikt:prefecture|prefecture]]s",
}
}


Line 896: Line 896:
type = "name",
type = "name",
-- special-cased description
-- special-cased description
description = "{{{langname}}} [[exonym]]s.",
description = "{{{langname}}} [[wikt:exonym|exonym]]s.",
parents = {"places"},
parents = {"places"},
}
}
Line 910: Line 910:
type = "name",
type = "name",
-- special-cased description
-- special-cased description
description = "{{{langname}}} names of the [[nome]]s of [[Ancient Egypt]].",
description = "{{{langname}}} names of the [[wikt:nome|nome]]s of [[wikt:Ancient Egypt|Ancient Egypt]].",
breadcrumb = "nomes",
breadcrumb = "nomes",
parents = {"Ancient Egypt"},
parents = {"Ancient Egypt"},
Line 926: Line 926:
labels["British Isles"] = {
labels["British Isles"] = {
type = "related-to",
type = "related-to",
description = "=the people, culture, or territory of [[Great Britain]], [[Ireland]], and other nearby islands",
description = "=the people, culture, or territory of [[wikt:Great Britain|Great Britain]], [[wikt:Ireland|Ireland]], and other nearby islands",
parents = {"Europe", "islands"},
parents = {"Europe", "islands"},
}
}
Line 950: Line 950:
labels["Bengal"] = {
labels["Bengal"] = {
type = "related-to",
type = "related-to",
description = "{{{langname}}} terms related to the people, culture, or territory of [[Bengal]].",
description = "{{{langname}}} terms related to the people, culture, or territory of [[wikt:Bengal|Bengal]].",
parents = {"Indian subcontinent"},
parents = {"Indian subcontinent"},
}
}
Line 956: Line 956:
labels["Kashmir"] = {
labels["Kashmir"] = {
type = "related-to",
type = "related-to",
description = "{{{langname}}} terms related to the people, culture, or territory of [[Kashmir]].",
description = "{{{langname}}} terms related to the people, culture, or territory of [[wikt:Kashmir|Kashmir]].",
parents = {"Indian subcontinent"},
parents = {"Indian subcontinent"},
}
}
Line 968: Line 968:
labels["Korea"] = {
labels["Korea"] = {
type = "related-to",
type = "related-to",
description = "=the people, culture, or territory of [[Korea]]",
description = "=the people, culture, or territory of [[wikt:Korea|Korea]]",
parents = {"Asia"},
parents = {"Asia"},
}
}
Line 980: Line 980:
labels["Lapland"] = {
labels["Lapland"] = {
type = "related-to",
type = "related-to",
description = "=[[Lapland]], a region in northernmost Europe",
description = "=[[wikt:Lapland|Lapland]], a region in northernmost Europe",
parents = {"Europe", "Finland", "Norway", "Russia", "Sweden"},
parents = {"Europe", "Finland", "Norway", "Russia", "Sweden"},
}
}
Line 992: Line 992:
labels["Netherlands Antilles"] = {
labels["Netherlands Antilles"] = {
type = "related-to",
type = "related-to",
description = "=the people, culture, or territory of the [[Netherlands Antilles]]",
description = "=the people, culture, or territory of the [[wikt:Netherlands Antilles|Netherlands Antilles]]",
parents = {"Netherlands", "North America"},
parents = {"Netherlands", "North America"},
}
}