Modul:category tree/templates
Penampilan
- Berikut merupakan pendokumenan yang dijana oleh Templat:category tree data submodule documentation. [sunting]
- Pautan berguna: akar laman • sublaman akar laman • pautan • transklusi • kes ujian • kotak pasir
Submodul data ini mentakrifkan sebahagian daripada struktur kategori Wikikamus.
Untuk pengenalan kepada sistem poscatboiler dan penerangan tentang cara menambah atau mengubah suai kategori, lihat Modul:category tree/data/doc.
local labels = {}
local raw_categories = {}
-----------------------------------------------------------------------------
-- --
-- LABELS --
-- --
-----------------------------------------------------------------------------
labels["Templat"] = {
description = "[[Wikikamus:Templat|Templat]] bahasa {{{langname}}} yang mengandungi kod wiki yang boleh diguna pakai semula dan bantu mencipta dan mengurus kata masukan.",
umbrella = {
parents = {{name = "Templat", sort = " "}},
breadcrumb = "mengikut bahasa",
},
parents = {{name = "{{{langcat}}}", raw = true}},
}
labels["auto-table templates"] = {
description = "Templates that contain {{{langname}}} tables generated automatically.",
additional = "They use the <code>table:</code> prefix. For example, see [[Template:table:chess pieces/en]].",
parents = {"Templat"},
}
labels["category boilerplate templates"] = {
description = "Templates used to generate descriptions and categorization for category pages.",
parents = {"Templat"},
}
labels["Templat takrifan"] = {
description = "Templat yang digunakan dalam [[Wikikamus:Glosari#baris takrifan|baris takrifan]] entri bahasa {{{langname}}} untuk bantu menjana takrifan.",
parents = {"Templat"},
}
labels["Templat entri"] = {
description = "Templates used to help in the creation of {{{langname}}} entries.",
umbrella_parents = {"Subkategori templat mengikut bahasa", "Entry templates"},
parents = {"Templat"},
}
labels["Templat etimologi"] = {
description = "Templates used in the etymology section of {{{langname}}} entries.",
parents = {"Templat"},
}
labels["experimental templates"] = {
description = "Templates used to test possible content for {{{langname}}} entries.",
parents = {"Templat"},
}
labels["Templat bentuk bagi"] = {
description = "Templates used on the definition line of entries for inflected forms of words in {{{langdisp}}}, to link back to the main form.",
parents = {"Templat"},
}
labels["Templat baris pengepala kata"] = {
description = "Templates used in {{{langname}}} entries to display lines containing headwords.",
parents = {"Templat"},
}
labels["Templat indeks"] = {
description = "Templates used to organize {{{langname}}} indexes.",
parents = {"Templat"},
}
labels["Templat jadual infleksi"] = {
description = "Templates used to show inflection tables for {{{langname}}} terms.",
parents = {"Templat"},
}
-- Do particular types of inflection-table templates.
for _, pos in ipairs({
"adjective",
"adverb",
"determiner",
"nominal",
"noun",
"numeral",
"participle",
"postposition",
"particle",
"preposition",
"pronoun",
"verb",
}) do
labels["Templat jadual infleksi " .. pos] = {
description = "Templates used to show declension tables for {{{langname}}} " .. pos .. "s.",
parents = {"inflection-table templates"},
}
end
labels["Templat senarai"] = {
description = "Templat yang mengandungi senarai bagi bahasa {{{langname}}}.",
additional = "Templat-templat ini menggunakan awalan <code>list:</code>..<br />" ..
"Lihat juga [[:Kategori:Templat senarai]].",
parents = {"Templat"},
}
labels["Templat mutasi"] = {
description = "Templates yang digunakan untuk menunjukkan mutasi perkataan bahasa {{{langname}}}.",
parents = {"Templat"},
}
labels["Templat sebutan"] = {
description = "Templat yang digunakan untuk menjana sebutan AFA, rima, penyempangan dll. bagi entri bahasa {{{langname}}}.",
umbrella_parents = {"Subkategori templat mengikut bahasa", "Kategori:Templat sebutan"},
parents = {"Templat"},
}
labels["Templat petikan"] = {
description = "Templat yang digunakan untuk menjana petikan entri bahasa {{{langname}}}.",
umbrella_parents = {"Subkategori templat mengikut bahasa", "Kategori:Templat petikan"},
parents = {"Templat"},
}
labels["quotation navigation templates"] = {
description = "Templates used in the documentation of {{{langname}}} [[Wiktionary:Quotations/Templates|quotation templates]] in order to link to quotation templates for other works by the same author.",
umbrella_parents = {"Subkategori templat mengikut bahasa", "Category:Navigation templates", "Category:Quotation templates by language"},
parents = {"quotation templates"},
}
labels["Templat rujukan"] = {
topright = function(data)
if data.lang and data.lang:getCode() == "ine-pro" then
return "{{shortcut|WT:RTINE}}"
end
end,
umbrella = {
preceding = "{{also|Wikikamus:Templat rujukan}}\n{{also|Template:refcat}}",
parents = {"Subkategori templat mengikut bahasa", "Kategori:Templat rujukan"},
breadcrumb = "mengikut bahasa",
},
description = "Templat yang digunakan untuk menjana nota kaki rujukan untuk entri {{{langname}}}.",
parents = {"Templat"},
}
labels["supplementary templates"] = {
description = "Templates used to keep contents for other {{{langname}}} templates.",
parents = {"Templat"},
}
labels["usage templates"] = {
description = "Templates used to show usage notes in {{{langname}}} entries.",
parents = {"Templat"},
}
-- 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 = "Subkategori templat mengikut bahasa"
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["Templat"] = {
topright = "{{shortcut|WT:T}}",
description = "Sebuah kategori pengurusan yang menyasarkan semua templat yang sedang digunakan di Wikikamus.",
additional = "''See also: [[Wiktionary:Templates]], [[meta:Help:Template]]''",
parents = {"Wiktionary"},
}
raw_categories["Templat pentadbiran"] = {
description = "Templates used in the administration of Wiktionary.",
additional = "They are only used outside of mainspace and are distinct from [[:Category:Maintenance templates|maintenance templates]], which are used in maintaining entries.",
parents = {"Templat"},
}
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["Templat arkib"] = {
description = "Templates used on archived or otherwise inactive pages.",
parents = {"Templat pentadbiran"},
}
raw_categories["Checkuser templates"] = {
description = "Templates related to [[Wiktionary:Requests for checkuser|checkuser requests]].",
parents = {"Templat pentadbiran"},
}
raw_categories["Editnotices"] = {
description = "Templates used to display notices in edit mode.",
parents = {"Templat pentadbiran"},
}
raw_categories["Templat lampiran"] = {
description = "Templates used in appendices or to link to appendices.",
parents = {"Templat", "Kategori:Lampiran"},
}
raw_categories["Templat senarai Swadesh"] = {
description = "Templat yang digunakan dalam laman-laman [[w:senarai Swadesh]].",
parents = {"Templat lampiran"},
}
raw_categories["Astrology templates"] = {
description = "Templates that display astrology-related diagrams or boxes.",
parents = {"Templat"},
}
raw_categories["Templat audio"] = {
description = "Templat yang digunakan untuk memainkan atau memohon fail audio.",
parents = {"Templat"},
}
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 = {"Templat"},
}
raw_categories["Templat kotak"] = {
description = "Templat kotak tujuan am.",
additional = "If you're considering making a template that looks like a box, look here first!",
parents = {"Templat"},
}
raw_categories["Categorization templates"] = {
preceding = "{{also|:Category:Category modules}}",
description = "Templates used to categorize terms or entries.",
additional = "([[:Category:Category templates]], on the other hand, contains templates used in the category namespace.)",
parents = {"Templat"},
}
raw_categories["Templat kategori"] = {
description = "Templat yang digunakan dalam ruang nama kategori.",
additional = "([[:Category:Categorization templates]], on the other hand, contains templates used to categorize pages.)",
parents = {"Templat"},
}
raw_categories["Category boilerplate templates"] = {
description = "Templates used to generate the text of category pages.",
parents = {"Category templates"},
}
raw_categories["Templat TOC"] = {
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 {{temp|character info}}.",
parents = {"Templat"},
}
raw_categories["Character insertion templates"] = {
description = "Templates that provide easier ways to type characters that are not found in most keyboard layouts.",
parents = {"Templat"},
}
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 <code>&#91</code> " ..
"for a left bracket.<br />" ..
"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 = {"Templat"},
}
raw_categories["Chess templates"] = {
description = "Templates that display chess diagrams.",
parents = {"Templat"},
}
raw_categories["Citation templates"] = {
preceding = "{{ombox|type=speedy|text=Some templates may be marked '''FOR TESTING ONLY'''. Do not use these in entries, if requested on the template page itself. Take a look at the template page before using it.}}",
description = "Templates used to generate citations and quotations.",
additional = [=[
{{citation templates}}
==See also==
* [[Wiktionary:Quotations]]
* [[:Category:Reference templates]] for specific templates to well-known and widely used sources.]=],
parents = {"Templat"},
}
-- Skipped: Concordance templates
raw_categories["Control flow templates"] = {
description = "Templates to aid in control-flow constructs, which the template language is normally limited in.",
parents = {"Templat"},
}
raw_categories["Cross reference templates"] = {
description = "Templates used to create cross-references between sections.",
parents = {"Templat"},
}
raw_categories["Dating templates"] = {
description = "Templates for displaying dates.",
parents = {"Templat"},
}
raw_categories["Templat takrifan"] = {
description = "Templat yang digunakan dalam [[Wikikamus:Glosari#baris takrifan|baris takrifan]] entri untuk bantu menjana takrifan.",
parents = {"Templat"},
}
raw_categories["Templat bentuk bagi"] = {
description = "Templat yang digunakan untuk mentakrif infleksi atau kelainan sesuatu lema diberi.",
parents = {"Templat takrifan"},
}
raw_categories["Grammar form-of templates"] = {
description = "Templates used in defining terms that stand in a particular grammatical relation to a given lemma.",
parents = {"Templat bentuk bagi"},
}
raw_categories["Conjugation form-of templates"] = {
description = "Templates used in defining terms that represent particular verb forms (e.g. past participle) of given lemma.",
parents = {"Grammar form-of templates"},
}
raw_categories["Declension form-of templates"] = {
description = "Templates used in defining terms that represent particular noun or adjective forms (e.g. masculine plural) of given lemma.",
parents = {"Grammar form-of templates"},
}
raw_categories["Name templates"] = {
description = "Templates used in the [[Wiktionary:Glossary#definition line|definition line]] to help in creating definitions for names.",
parents = {"Templat takrifan"},
}
raw_categories["Object usage templates"] = {
description = "Templates used in the [[Wiktionary:Glossary#definition line|definition line]] to show case and adposition usage for verb objects and similar constructs.",
parents = {"Templat takrifan"},
}
raw_categories["Place name templates"] = {
description = "Templates used in defining place names or demonyms that refer to place names.",
parents = {"Templat takrifan"},
}
raw_categories["Templat entri"] = {
description = "Templat yang digunakan untuk mencipta entri baharu.",
parents = {"Templat"},
}
raw_categories["Templat etimologi"] = {
description = "Templat yang digunakan dalam bahagian etimologi untuk mentakrifkan etimologi perkataan.",
parents = {"Templat"},
}
raw_categories["Templat terbitan asing"] = {
description = "Templat yang digunakan dalam bahagian etimologi untuk memaparkan penerbitan perkataan daripada satu-satu bahasa berlainan.",
parents = {"Templat etimologi"},
}
raw_categories["Templat morfologi"] = {
description = "Templat yang digunakan dalam bahagian etimologi untuk memaparkan morfologi perkataan.",
parents = {"Templat etimologi"},
}
raw_categories["Language-specific morphology templates"] = {
description = "Specialized morphology templates used in the etymology sections of terms in particular languages.",
parents = {"Morphology templates"},
}
raw_categories["Templat baris pengepala kata"] = {
preceding = "{{also|Wiktionary:Templat baris pengepala kata}}",
description = "Templates used to define the [[Wiktionary:Glossary#headword line|headword line]] of a term.",
parents = {"Templat"},
}
raw_categories["Templat perbincangan"] = {
description = "Templat yang digunakan dalam perbincangan dan pendokumenan templat dan modul.",
parents = {"Templat"},
}
raw_categories["Monthly-subpages discussion room infrastructure"] = {
description = "Templates used in generating and maintaining monthly discussion forums such as the [[Wiktionary:Grease pit|Grease pit]] and [[Wiktionary:Beer parlour|Beer parlour]].",
parents = {"Discussion templates"},
}
raw_categories["Templat pendokumenan"] = {
description = "Templat yang digunakan dalam laman pendokumenan templat dan modul.",
parents = {"Templat"},
}
raw_categories["File templates"] = {
description = "Templates used in the File namespace.",
parents = {"Templat"},
}
raw_categories["Language attestation warning templates"] = {
description = "Templates that warn users about the attestation status of entries or senses from a language.",
parents = {"Templat"},
}
raw_categories["Templat susun atur"] = {
description = "Templat yang digunakan untuk menghasilkan susun atur khusus dalam entri.",
parents = {"Templat"},
}
raw_categories["Collapsible box templates"] = {
description = "Templates used in creating collapsible boxes.",
parents = {"Templat susun atur"},
}
raw_categories["Templat lajur"] = {
preceding = "{{also|Wikikamus:Templat#Lajur}}",
description = "Templates used in laying out lists in columns.",
parents = {"Templat susun atur"},
}
raw_categories["Templat jadual"] = {
description = "Templat yang digunakan untuk memformatkan jadual.",
parents = {"Templat susun atur"},
}
raw_categories["Templat pautan"] = {
description = "Templates used to link to other terms, to other MediaWiki projects or to external websites.",
parents = {"Templat"},
}
raw_categories["Templat nyahkekaburan"] = {
description = "Templates used to disambiguate multiple similar terms.",
parents = {"Templat pautan"},
}
raw_categories["Templat pautan luar"] = {
description = "Templates that link to websites outside of the MediaWiki Foundation purview.",
additional = "See also [[:Category:Citation templates]] for others.",
parents = {"Templat pautan"},
}
-- FIXME! This doesn't belong and the templates in it should be deleted (they are in [[WT:RFDO]] currently).
raw_categories["Greek link templates"] = {
description = "Templates which link between Greek entries.",
breadcrumb = "Link",
parents = {
{name = "Templat", is_label = true, lang = "el", sort = "link"},
"Templat pautan",
},
}
raw_categories["Internal link templates"] = {
description = "Templates that link between Wiktionary entries.",
parents = {"Templat pautan"},
}
raw_categories["Internal link subtemplates"] = {
description = "Subtemplates of {{tl|l}}.",
parents = {"Internal link templates"},
}
raw_categories["Interwiki templates"] = {
description = "Templates that link to other MediaWiki projects.",
parents = {"Templat pautan"},
}
raw_categories["Templat senarai"] = {
description = "Templates used to generate lists.",
additional = "See also [[:Category:List templates by language]].",
parents = {"Templat"},
}
raw_categories["Character list templates"] = {
description = "Templates used to generate lists of characters.",
parents = {"List templates"},
}
raw_categories["Lua-free templates"] = {
description = "Lua-free (i.e. \"lite\") versions of templates that use Lua.",
additional = "Lua-free templates are used on long pages to avoid [[Wiktionary:Lua memory errors|Lua memory errors]].",
parents = {"Templat"},
}
raw_categories["Templat penyelenggaraan"] = {
preceding = "{{also|Wiktionary:Maintenance templates}}",
description = "Templates used in the maintenance of Wiktionary entries and other pages.",
additional = "They are distinct from [[:Category:Administration templates|administration templates]], which are only used outside of mainspace.",
parents = {"Templat", "Kategory:Penyelenggaraan Wikikamus"},
}
raw_categories["Cleanup templates"] = {
description = "Templates used to request cleanup of entries.",
additional = "Some of these templates are used when entries are batch-imported from another source.",
parents = {"Templat penyelenggaraan", "Templat permohonan"},
}
raw_categories["Deletion templates"] = {
description = "Templates used to request deletion of entries.",
parents = {"Templat penyelenggaraan", "Templat permohonan"},
}
raw_categories["Verification templates"] = {
description = "Templates used to request verification of entries that may be incorrect.",
parents = {"Templat penyelenggaraan", "Templat permohonan"},
}
raw_categories["Wiktionary templates"] = {
description = "Templates used in the internal operation of Wiktionary.",
parents = {"Templat", "Wiktionary"},
}
raw_categories["Metatemplat"] = {
description = "Templat yang digunakan dalam templat atau dalam penghasilan templat lain.",
parents = {"Templat"},
}
raw_categories["String manipulation templates"] = {
description = "Templates used to manipulate strings.",
additional = "See also [[Module:string/templates]], which can be invoked from templates to do string manipulation.",
parents = {"Metatemplat"},
}
raw_categories["Navigation templates"] = {
description = "Templates used to create navigation boxes for easily linking to other similar pages.",
parents = {"Templat"},
}
raw_categories["Templat nombor"] = {
description = "Templates used to convert numbers or generate boxes describing numbers in a given language.",
parents = {"Templat"},
}
raw_categories["Preloaded templates"] = {
description = "Templates not meant to be transcluded, but instead, whether through URL parameters or modules, have their contents preloaded into edit fields.",
parents = {"Templat"},
}
raw_categories["Templat sebutan"] = {
description = "Templates used to format pronunciation sections and the characters they use.",
additional = "See also [[:Category:Script templates]] and [[Wiktionary:Pronunciation]].",
parents = {"Templat"},
}
raw_categories["Templat rima"] = {
description = "Templates used to format [[Wiktionary:Rhymes|rhyme pages]], links to them from pronunciation sections, etc.",
parents = {"Templat sebutan"},
}
raw_categories["Templat bahasa isyarat"] = {
description = "Templates used to format sign-language pronunciation charts.",
parents = {"Templat sebutan"},
}
raw_categories["Qualifier and gloss templates"] = {
description = "Templates for displaying qualifiers, glosses and the like.",
parents = {"Templat"},
}
raw_categories["Redirect templates"] = {
description = "Templates used to format redirect pages.",
parents = {"Templat"},
}
raw_categories["Templat rujukan"] = {
preceding = "{{also|Wikikamus:Templat rujukan|:Kategori:Templat rujukan mengikut bahasa}}",
description = "Templat yang digunakan untuk memformat rujukan.",
parents = {"Templat"},
}
raw_categories["Religion templates"] = {
description = "Templates that display religion-related diagrams or boxes.",
parents = {"Templat"},
}
raw_categories["Templat permohonan"] = {
topright = "{{shortcut|WT:RT}}",
description = "Request templates for dictionary entries in the main namespace.",
parents = {"Templat", "Requests"},
}
raw_categories["Sandbox templates"] = {
description = "Sandbox versions of templates used for testing purposes.",
additional = "'''NOTE:''' The use of sandbox templates in mainspace is strongly dispreferred. Please place all sandbox templates in your userspace.",
parents = {"Templat"},
}
raw_categories["Script templates"] = {
preceding = "{{mainwikt|Scripts}}",
description = "Templates used for converting between scripts or displaying text in a specific script.",
parents = {"Templat"},
}
raw_categories["Semantic relation templates"] = {
description = "Templates that are placed below the [[Wiktionary:Glossary#definition line|definition line]], to indicate other terms semantically related to a particular sense.",
parents = {"Templat"},
}
raw_categories["Single-page-use templates"] = {
description = "Templates used only on a single page and unlikely to find re-use elsewhere.",
parents = {"Templat"},
}
raw_categories["Supplementary templates"] = {
description = "A grab bag of templates used to assist other templates.",
additional = "These should be recategorized according to function.",
parents = {"Templat"},
}
raw_categories["Taxonomy templates"] = {
description = "Templates used in Translingual taxonomy entries and in reference to those entries.",
parents = {"Templat"},
}
raw_categories["Taxonomic hypernym templates"] = {
description = "Templates and subcategories containing such templates. The templates contain text to appear under the Hypernyms header for taxonomic name entries.",
additional = "Each template has the name of the taxon from which it begins. The templates in this category at present are the many templates that begin with the names of taxonomic families. Others are in subcategories",
breadcrumb = "Hypernym",
parents = {"Taxonomy templates"},
}
raw_categories["Taxonomic name templates"] = {
description = "Templates used for the presentation of taxonomic names on a definition line.",
breadcrumb = "Name",
parents = {"Taxonomy templates", "Templat takrifan"},
}
raw_categories["Taxonomic reference templates"] = {
description = "Templates used to format references for taxonomic names.",
breadcrumb = "Reference",
parents = {"Taxonomy templates", "Templat rujukan"},
}
raw_categories["Templates that must be substituted"] = {
description = "Templates that are not intended for transclusion with <code><nowiki>{{ }}</nowiki></code>, " ..
"and must be substituted with <code><nowiki>{{subst: }}</nowiki></code>wherever they exist.",
additional = "Some of the members of this category are permanent, as the template was written in such a way that " ..
"it must be substituted to function properly. There may also be templates in this category that are deprecated, " ..
"in which case their content has been replaced with the preferred code.",
parents = {"Templat", "Requests"},
}
raw_categories["Templates with acceleration"] = {
description = "Templates can be added to this category by adding {{tl|isAccelerated}} to their documentation pages.",
additional = "Presence in this category indicates that at least some of the \"form-of\" entries for the word can be generated semi-automatically by users with [[Wiktionary:ACCEL|accelerated]] editing enabled.",
parents = {"Templat"},
}
raw_categories["Text format templates"] = {
description = "Templates that provide shortcuts for formatting ordinary text.",
parents = {"Templat"},
}
raw_categories["Templat tesaurus"] = {
description = "Templat yang memautkan atau memformatkan entri tesaurus.",
parents = {"Templat"},
}
raw_categories["Templat terjemahan"] = {
description = "Templat yang digunakan untuk memformatkan entri dalam jadual terjemahan.",
parents = {"Templat"},
}
raw_categories["User templates"] = {
description = "Templates meant to be used in userspace.",
parents = {"Templat"},
}
raw_categories["User sandbox templates"] = {
description = "Templates that are for personal use and testing by individual editors.",
additional = "These should all begin with <code>User:</code> followed by the user's name. If several " ..
"sandbox templates are needed by a single user, subpages can be created. These templates should not be used in real " ..
"Wiktionary content pages, as all content on those pages should be editable by anyone and, if necessary, edit protected.",
parents = { "Sandbox templates", "Templat" },
}
raw_categories["Authority control subtemplates"] = {
description = "Subtemplates used in conjunction with {{tl|authority control}}.",
parents = {"User templates"},
}
raw_categories["User competency templates"] = {
description = "Templates used for to indicate a user's competency in a given natural language, script or programming language.",
additional = "These are used in conjunction with {{tl|Babel}}, which invokes these templates as necessary.",
parents = {"User templates"},
}
raw_categories["Coder user templates"] = {
description = "Templates used for to indicate a user's competency in a given programming language.",
additional = "These are used in conjunction with {{tl|Babel}}, which invokes these templates as necessary.",
parents = {"User competency templates"},
}
raw_categories["Language user templates"] = {
description = "Templates used for to indicate a user's competency in speaking a given language.",
additional = "These are used in conjunction with {{tl|Babel}}, which invokes these templates as necessary.",
parents = {"User competency templates"},
}
raw_categories["Script user templates"] = {
description = "Templates used for to indicate a user's competency in reading a given script.",
additional = "These are used in conjunction with {{tl|Babel}}, which invokes these templates as necessary.",
parents = {"User competency templates"},
}
raw_categories["WOTD templates"] = {
description = "Templates used to support the Word of the Day.",
parents = {"Wiktionary templates"},
}
raw_categories["FWOTD templates"] = {
description = "Templates used to support the Foreign Word of the Day.",
parents = {"WOTD templates"},
}
raw_categories["Non-production templates and modules"] = {
description = "Templates and modules not currently used in production.",
additional = "{{also|Special:UnusedTemplates|Category:Unused templates}}",
parents = {"Templat", "Modules", "Category:Wiktionary maintenance"},
}
raw_categories["Subkategori templat mengikut bahasa"] = {
description = "Umbrella categories covering topics related to templates.",
additional = "{{{umbrella_meta_msg}}}",
parents = {
"Metakategori payung",
{name = "Templat", is_label = true, sort = " "},
},
}
-- Add breadcrumb by chopping off the parent (or the parent's parent, etc.) from the end of the label, if possible.
for key, data in pairs(raw_categories) do
if not data.breadcrumb then
local parent = data.parents[1]
while true do
if type(parent) == "string" then
local parent_re = " " .. require("Module:string utilities").pattern_escape(mw.getContentLanguage():lcfirst(parent)) .. "$"
if key:find(parent_re) then
data.breadcrumb = key:gsub(parent_re, "")
break
end
if raw_categories[parent] then
parent = raw_categories[parent].parents[1]
else
break
end
else
break
end
end
end
end
return {LABELS = labels, RAW_CATEGORIES = raw_categories}