Module:category tree/poscatboiler/data/templates

local labels = {} local raw_categories = {}

- --                                                                        -- --                                  LABELS                                 -- --                                                                        -- -

labels["templates"] = { description = " templates, which contain reusable wiki code that helps with creating and managing entries.", umbrella = { parents = , breadcrumb = "by language", },	parents = , }

labels["auto-table templates"] = { description = "Templates that contain tables generated automatically.", additional = "They use the  prefix. For example, see Template:table:chess pieces/en.", parents = {"templates"}, }

labels["category boilerplate templates"] = { description = "Templates used to generate descriptions and categorization for category pages.", parents = {"templates"}, }

labels["definition templates"] = { description = "Templates used in the definition line of entries to help in creating definitions.", parents = {"templates"}, }

labels["entry templates"] = { description = "Templates used to help in the creation of entries.", umbrella_parents = {"Templates subcategories by language", "Entry templates"}, parents = {"templates"}, }

labels["etymology templates"] = { description = "Templates used in the etymology section of entries.", parents = {"templates"}, }

labels["experimental templates"] = { description = "Templates used to test possible content for entries.", parents = {"templates"}, }

labels["form-of templates"] = { description = "Templates used on the definition line of entries for inflected forms of words in, to link back to the main form.", parents = {"templates"}, }

labels["headword-line templates"] = { description = "Templates used to show lines that contain headwords in .", parents = {"templates"}, }

labels["index templates"] = { description = "Templates used to organize indexes.", parents = {"templates"}, }

labels["inflection-table templates"] = { description = "Templates used to show inflection tables for terms.", parents = {"templates"}, }

-- Do particular types of inflection-table templates. for _, pos in ipairs({	"adjective",	"adverb",	"determiner",	"nominal",	"noun",	"numeral",	"participle",	"postposition",	"preposition",	"pronoun",	"verb", }) do labels[pos .. " inflection-table templates"] = { description = "Templates used to show declension tables for " .. pos .. "s.", parents = {"inflection-table templates"}, } end

labels["list templates"] = { description = "Templates that contain lists.", additional = "They use the  prefix. For example, see Template:list:Latin script letters/en.", parents = {"templates"}, }

labels["mutation templates"] = { description = "Templates used to show mutation of words.", parents = {"templates"}, }

labels["pronunciation templates"] = { description = "Templates used to generate IPA pronunciation, rhymes, hyphenation, etc. for entries.", umbrella_parents = {"Templates subcategories by language", "Category:Pronunciation templates"}, parents = {"templates"}, }

labels["quotation templates"] = { description = "Templates used to generate quotations for entries.", umbrella_parents = {"Templates subcategories by language", "Category:Citation templates"}, parents = {"templates"}, }

labels["reference templates"] = { topright = function(data) if data.lang and data.lang:getCode == "ine-pro" then return "" end end, umbrella = { preceding = "\n", parents = {"Templates subcategories by language", "Category:Reference templates"}, breadcrumb = "by language", },	description = "Templates used to generate reference footnotes for entries.", parents = {"templates"}, }

labels["supplementary templates"] = { description = "Templates used to keep contents for other templates.", parents = {"templates"}, }

labels["usage templates"] = { description = "Templates used to show usage notes in entries.", parents = {"templates"}, }

-- Add 'umbrella_parents' key if not already present. for key, data in pairs(labels) do	if not data.umbrella and not data.umbrella_parents then data.umbrella_parents = "Templates subcategories by language" end -- Add breadcrumb by chopping off the parent from the end of the label, if possible. if #data.parents == 1 and type(data.parents[1]) == "string" then local parent_re = " " .. require("Module:string utilities").pattern_escape(data.parents[1]) .. "$"		if key:find(parent_re) then data.breadcrumb = key:gsub(parent_re, "") end end end

- --                                                                        -- --                              RAW CATEGORIES                             -- --                                                                        -- -

raw_categories["Templates"] = { topright = "", description = "An organizing category intended for all templates in use on Wiktionary.", additional = "See also: Templates, meta:Help:Template", parents = {"Wiktionary"}, }

raw_categories["Administration templates"] = { description = "Templates used in the administration of Wiktionary.", additional = "They are only used outside of mainspace and are distinct from maintenance templates, which are used in maintaining entries.", parents = {"Templates"}, }

raw_categories["Alternative orthography templates"] = { description = "Templates used to generate lists of links to alternative script forms for entries, or alternative forms according to different orthographic systems in general.", additional = "Not for templates relating to mere alternative forms within the same orthographic system.", parents = {"Script templates", "Internal link templates"}, }

raw_categories["Archive templates"] = { description = "Templates used on archived or otherwise inactive pages.", parents = {"Administration templates"}, }

raw_categories["Checkuser templates"] = { description = "Templates related to checkuser requests.", parents = {"Administration templates"}, }

raw_categories["Editnotices"] = { description = "Templates used to display notices in edit mode.", parents = {"Administration templates"}, }

raw_categories["Appendix templates"] = { description = "Templates used in appendices or to link to appendices.", parents = {"Templates", "Category:Appendices"}, }

raw_categories["Swadesh list templates"] = { description = "Templates used on pages that contain Swadesh lists.", parents = {"Appendix templates"}, }

raw_categories["Astrology templates"] = { description = "Templates that display astrology-related diagrams or boxes.", parents = {"Templates"}, }

raw_categories["Audio templates"] = { description = "Templates used to play or request audio files.", parents = {"Templates"}, }

raw_categories["Auto-table templates"] = { description = "Templates used to generate word tables (like Template:table:seasons).", additional = "See also Category:Auto-table templates by language.", parents = {"Templates"}, }

raw_categories["Box templates"] = { description = "General purpose box templates.", additional = "If you're considering making a template that looks like a box, look here first!", parents = {"Templates"}, }

raw_categories["Categorization templates"] = { preceding = "", description = "Templates used to categorize terms or entries.", additional = "(Category:Category templates, on the other hand, contains templates used in the category namespace.)", parents = {"Templates"}, }

raw_categories["Category templates"] = { description = "Templates used in the category namespace.", additional = "(Category:Categorization templates, on the other hand, contains templates used to categorize pages.)", parents = {"Templates"}, }

raw_categories["Category boilerplate templates"] = { description = "Templates used to generate the text of category pages.", parents = {"Category templates"}, }

raw_categories["TOC templates"] = { description = "Templates used to generate a list of linked letters to navigate the pages listed in categories.", parents = {"Category templates"}, }

raw_categories["Character info templates"] = { description = "Templates that utilize .", parents = {"Templates"}, }

raw_categories["Character insertion templates"] = { description = "Templates that provide easier ways to type characters that are not found in most keyboard layouts.", parents = {"Templates"}, }

raw_categories["Templates for generating characters used in wiki code"] = { description = "Templates used to generate characters that are reserved for specific wiki code functions and cannot be directly entered.", additional = "An alternative to using these templates is to use an HTML entity such as  " .. "for a left bracket. " .. "Note that the templates below are sorted by the first character of the wikicode that each template generates.", parents = {"Character insertion templates"}, }

raw_categories["Chemistry templates"] = { description = "Templates that display chemistry-related diagrams or boxes.", parents = {"Templates"}, }

raw_categories["Chess templates"] = { description = "Templates that display chess diagrams.", parents = {"Templates"}, }

raw_categories["Citation templates"] = { preceding = "", description = "Templates used to generate citations and quotations.", additional = [=[