Module:category tree/topic/thesaurus data
- The following documentation is located at Module:category tree/topic/thesaurus data/documentation. [edit] Categories were auto-generated by Template:topic cat data submodule documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
This module contains data related to thesaurus categories. Specifically, it contains mappings from specific topic parent categories to the corresponding (more general) thesaurus parent categories. The intent is to short-circuit some unnecessarily long category trees by replacing certain parent categories, when encountered, with other ones.
- Thesaurus-specific categories, such as Category:Thesaurus:Personal qualities, are defined in Module:category tree/topic/Thesaurus.
- The Lua code that does the actual processing of
Thesaurus:...
categories is in Module:category tree/topic.
local export = {}
--[=[
This module contains data related to thesaurus categories. Currently it only contains some mappings from specific
topic parent categories to the corresponding (more general) thesaurus parent categories. The actual processing of
`Thesaurus:...` categories happens in [[Module:category tree/topic]].
]=]
-- Short-circuit some unnecessarily long category trees by
-- replacing certain parent categories, when encountered, with other ones
local parent_substitutions = {}
parent_substitutions["thesaurus-only categories"] = "all topics"
parent_substitutions["architecture"] = "all topics"
parent_substitutions["atmosphere"] = "nature"
parent_substitutions["businesses"] = "food and drink" -- for Restaurants
parent_substitutions["divination"] = "occult"
parent_substitutions["drinking"] = "food and drink"
parent_substitutions["earth sciences"] = "all topics" -- for Geography
parent_substitutions["eating"] = "food and drink"
parent_substitutions["employment"] = "economics"
parent_substitutions["formal sciences"] = "sciences"
parent_substitutions["geometry"] = "mathematics"
parent_substitutions["human activity"] = "human behaviour"
parent_substitutions["justice"] = "society"
parent_substitutions["language"] = "communication"
parent_substitutions["medical signs and symptoms"] = "health"
parent_substitutions["politics"] = "society"
parent_substitutions["senses"] = "perception"
parent_substitutions["social sciences"] = "all topics"
export.parent_substitutions = parent_substitutions
return export