Module:category tree/templates
පෙනුම
(Module:category tree/poscatboiler/data/templates වෙතින් යළි-යොමු කරන ලදි)
- පහත දැක්වෙන උපදෙස්, Module:category tree/templates/documentation හි පිහිටා ඇත. Module:category tree/templates/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • testcases • sandbox
local m_sinhala = require("Module:sinhala")
local labels = {}
local raw_categories = {}
local raw_handlers = {}
local languages_module = "Module:languages"
local insert = table.insert
-----------------------------------------------------------------------------
-- --
-- LABELS --
-- --
-----------------------------------------------------------------------------
labels["සැකිලි"] = {
description = "ප්රවේශ නිර්මාණය සහ කළමනාකරණය සඳහා සහාය සලසන, නැවත-නැවත භාවිතයට ගත හැකි විකි කේත අඩංගු, {{{langname}}} [[වික්ෂනරි:සැකිලි|සැකිලි]].",
umbrella = {
parents = {{name = "සැකිලි", sort = " "}},
breadcrumb = "භාෂාව අනුව",
},
parents = {{name = "{{{langcat}}}", raw = true}},
}
labels["ස්වයංක්රීය-වගු සැකිලි"] = {
description = "Templates that contain {{{langname}}} tables generated automatically.",
additional = "They use the <code>වගුව:</code> prefix. උදාහරණ සඳහා, [[සැකිල්ල:වගුව:chess pieces/en]] වෙතට යොමු වන්න.",
parents = {"link templates"},
}
labels["category boilerplate templates"] = {
description = "Templates used to generate descriptions and categorization for category pages.",
parents = {"සැකිලි"},
}
labels["conversion templates"] = {
description = "Templates used in {{{langname}}} entries to convert between different orthographic or numeral representations.",
parents = {"සැකිලි"},
}
labels["අර්ථ දැක්වීම් සැකිලි"] = {
description = "Templates used in the [[Wiktionary:Glossary#definition line|definition line]] of {{{langname}}} entries to help in creating definitions.",
parents = {"සැකිලි"},
}
labels["ප්රවේශ සැකිලි"] = {
description = "Templates used to help in the creation of {{{langname}}} entries.",
umbrella_parents = {"Templates subcategories by language", "ප්රවේශ සැකිලි"},
parents = {"සැකිලි"},
}
labels["නිරුක්ති සැකිලි"] = {
description = "Templates used in the etymology section of {{{langname}}} entries.",
parents = {"සැකිලි"},
}
labels["experimental templates"] = {
description = "Templates used to test possible content for {{{langname}}} entries.",
parents = {"සැකිලි"},
}
labels["රූපාකාර සැකිලි"] = {
description = "Templates used on the definition line of entries for inflected forms of words in {{{langdisp}}}, to link back to the main form.",
parents = {"definition templates", "link templates"},
}
labels["යොමු වචන පේළි සැකිලි"] = {
description = "{{{langname}}} යොමු වචන අඩංගු පේළි පෙන්වීම සඳහා භාවිතා වන සැකිලි.",
parents = {"සැකිලි"},
}
labels["index templates"] = {
description = "Templates used to organize {{{langname}}} indexes.",
parents = {"link templates"},
}
labels["වරනැගීම්-වගු සැකිලි"] = {
description = "Templates used to show inflection tables for {{{langname}}} terms.",
parents = {"සැකිලි"},
}
-- 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[m_sinhala.sinhala_adjective(pos) .. " වරනැගීම්-වගු සැකිලි"] = {
description = "Templates used to show declension tables for {{{langname}}} " .. pos .. "s.",
parents = {"වරනැගීම්-වගු සැකිලි"},
}
end
labels["link templates"] = {
description = "{{{langname}}} templates used to create links to other entries.",
parents = {"සැකිලි"},
}
labels["ලැයිස්තු සැකිලි"] = {
description = "{{{langname}}} ලැයිස්තු අඩංගු වන සැකිලි.",
additional = "මේවා <code>list:</code> උපසර්ගය භාවිතා කරයි. උදාහරණයක් සඳහා, [[සැකිල්ල:list:Latin script letters/en]] වෙතට යොමු වන්න.<br />" ..
"අමතර අවධානයට [[:ප්රවර්ගය:ලැයිස්තු සැකිලි]].",
parents = {"link templates"},
}
labels["mutation templates"] = {
description = "Templates used to show mutation of {{{langname}}} words.",
parents = {"සැකිලි"},
}
labels["navigation templates"] = {
description = "{{{langname}}} templates used to create navigation boxes for easily linking to other similar pages.",
additional = "Examples are all the members of a given class (e.g. personal pronouns, interrogatives, demonstratives), cardinal numbers up to 100, category TOC (table-of-contents) templates, etc.",
parents = {"link templates"},
}
labels["උච්චාරණ සැකිලි"] = {
description = "Templates used to generate IPA pronunciation, rhymes, hyphenation, etc. for {{{langname}}} entries.",
umbrella_parents = {"Templates subcategories by language", "ප්රවර්ගය:උච්චාරණ සැකිලි"},
parents = {"සැකිලි"},
}
labels["sign production templates"] = {
description = "Templates used in describing and showing the production of {{{langname}}} signs.",
parents = {"pronunciation templates"},
}
labels["උපුටා දැක්වීම් සැකිලි"] = {
description = "Templates used to generate quotations for {{{langname}}} entries.",
umbrella_parents = {"Templates subcategories by language", "ප්රවර්ගය:උපහරණ සැකිලි"},
parents = {"සැකිලි"},
}
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 = {"Templates subcategories by language", "Category:Navigation templates", "Category:Quotation templates by language"},
parents = {"උපුටා දැක්වීම් සැකිලි", "link templates"},
}
labels["මූලාශ්ර සැකිලි"] = {
topright = function(data)
if data.lang and data.lang:getCode() == "ine-pro" then
return "{{shortcut|WT:RTINE}}"
end
end,
umbrella = {
preceding = "{{also|Wiktionary:Reference templates}}\n{{also|Template:refcat}}",
parents = {"Templates subcategories by language", "ප්රවර්ගය:මූලාශ්ර සැකිලි"},
breadcrumb = "භාෂාව අනුව",
},
description = "{{{langname}}} ප්රවේශ සඳහා මූලාශ්ර පාද සටහන් ජනනය පිණිස භාවිතා වන සැකිලි.",
parents = {"link templates"},
}
labels["reference navigation templates"] = {
description = "Templates used in the documentation of reference templates in order to link to related reference templates.",
umbrella_parents = {"Templates subcategories by language", "Category:Navigation templates", "Category:Reference templates by language"},
parents = {"මූලාශ්ර සැකිලි", "link templates"},
}
labels["පරිපූරක සැකිලි"] = {
description = "Templates used to keep contents for other {{{langname}}} templates.",
parents = {"සැකිලි"},
}
labels["inflection-table subtemplates"] = {
description = "Templates used to assist in constructing parts of {{{langname}}} inflection-table templates.",
parents = {"පරිපූරක සැකිලි"},
}
labels["භාවිතා සැකිලි"] = {
description = "Templates used to show usage notes in {{{langname}}} entries.",
parents = {"සැකිලි"},
}
for key, data in pairs(labels) do
-- Add 'umbrella_parents' key if not already present.
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 (or the parent's parent, etc.) from the end of the label, if possible.
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(parent) .. "$"
if key:find(parent_re) then
data.breadcrumb = key:gsub(parent_re, "")
break
end
if labels[parent] then
parent = labels[parent].parents[1]
else
break
end
else
break
end
end
end
end
-----------------------------------------------------------------------------
-- --
-- RAW CATEGORIES --
-- --
-----------------------------------------------------------------------------
raw_categories["සැකිලි"] = {
topright = "{{shortcut|WT:T}}",
description = "An organizing category intended for all templates in use on Wiktionary.",
additional = "''See also: [[Wiktionary:Templates]], [[meta:Help:Template]]''",
parents = {"වික්ෂනරිය"},
}
raw_categories["පරිපාලන සැකිලි"] = {
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 = {"සැකිලි"},
}
raw_categories["ලේඛනාරක්ෂණ සැකිලි"] = {
description = "Templates used on archived or otherwise inactive pages.",
parents = {"පරිපාලන සැකිලි"},
}
raw_categories["CheckUser templates"] = {
description = "Templates related to [[Wiktionary:Requests for checkuser|checkuser requests]].",
parents = {"පරිපාලන සැකිලි"},
}
raw_categories["Editnotices"] = {
description = "Templates used to display notices in edit mode.",
parents = {"පරිපාලන සැකිලි"},
}
raw_categories["උපග්රන්ථ සැකිලි"] = {
description = "Templates used in appendices or to link to appendices.",
parents = {"සැකිලි", "ප්රවර්ගය:උපග්රන්ථ"},
}
raw_categories["Swadesh list templates"] = {
description = "Templates used on pages that contain [[w:Swadesh list]]s.<br />" ..
"See also [[Wiktionary:Swadesh template]] and [[Wiktionary:Swadesh template categorized]].",
parents = {"උපග්රන්ථ සැකිලි"},
}
raw_categories["Astrology templates"] = {
description = "Templates that display astrology-related diagrams or boxes.",
parents = {"සැකිලි"},
}
raw_categories["ශ්රව්ය සහාය සැකිලි"] = {
description = "Templates used to play or request audio files.",
parents = {"සැකිලි"},
}
raw_categories["ස්වයංක්රීය-වගු සැකිලි"] = {
description = "Templates used to generate word tables (like [[සැකිල්ල:වගුව:seasons]]).",
additional = "අමතර අවධානයට [[:ප්රවර්ගය:භාෂාව අනුව ස්වයංක්රීය-වගු සැකිලි]].",
parents = {"සැකිලි"},
}
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 = {"සැකිලි"},
}
raw_categories["ප්රවර්ගකරණ සැකිලි"] = {
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 = {"සැකිලි"},
}
raw_categories["ප්රවර්ග සැකිලි"] = {
description = "Templates used in the category namespace.",
additional = "([[:Category:Categorization templates]], on the other hand, contains templates used to categorize pages.)",
parents = {"සැකිලි"},
}
raw_categories["Category boilerplate templates"] = {
description = "Templates used to generate the text of category pages.",
parents = {"ප්රවර්ග සැකිලි"},
}
raw_categories["පටුන සැකිලි"] = {
description = "Templates used to generate a list of linked letters to navigate the pages listed in categories.",
parents = {"ප්රවර්ග සැකිලි", "මං සලකුණු සැකිලි"},
}
raw_categories["Character info templates"] = {
description = "Templates that utilize {{temp|character info}}.",
parents = {"සැකිලි"},
}
raw_categories["Character insertion templates"] = {
description = "Templates that provide easier ways to type characters that are not found in most keyboard layouts.",
parents = {"සැකිලි"},
}
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 = {"සැකිලි"},
}
raw_categories["Chess templates"] = {
description = "Templates that display chess diagrams.",
parents = {"සැකිලි"},
}
raw_categories["උපහරණ සැකිලි"] = {
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}}
== අමතර අවධානයට ==
* [[Wiktionary:Quotations]]
* [[:Category:Reference templates]] for specific templates to well-known and widely used sources.]=],
parents = {"සැකිලි"},
}
-- 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 = {"සැකිලි"},
}
raw_categories["Cross reference templates"] = {
description = "Templates used to create cross-references between sections.",
parents = {"සැකිලි"},
}
raw_categories["Dating templates"] = {
description = "Templates for displaying dates.",
parents = {"සැකිලි"},
}
raw_categories["අර්ථ දැක්වීම් සැකිලි"] = {
description = "Templates used in the [[Wiktionary:Glossary#definition line|definition line]] to help in creating definitions.",
parents = {"සැකිලි"},
}
raw_categories["රූපාකාර සැකිලි"] = {
description = "Templates used in defining inflections or variants of a given lemma.",
parents = {"අර්ථ දැක්වීම් සැකිලි"},
}
raw_categories["Grammar form-of templates"] = {
description = "Templates used in defining terms that stand in a particular grammatical relation to a given lemma.",
parents = {"රූපාකාර සැකිලි"},
}
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["නාම සැකිලි"] = {
description = "Templates used in the [[Wiktionary:Glossary#definition line|definition line]] to help in creating definitions for names.",
parents = {"අර්ථ දැක්වීම් සැකිලි"},
}
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 = {"අර්ථ දැක්වීම් සැකිලි"},
}
raw_categories["Place name templates"] = {
description = "Templates used in defining place names or demonyms that refer to place names.",
parents = {"අර්ථ දැක්වීම් සැකිලි"},
}
raw_categories["ප්රවේශ සැකිලි"] = {
description = "Templates used to help create new entries.",
parents = {"සැකිලි"},
}
raw_categories["නිරුක්ති සැකිලි"] = {
description = "Templates used in etymology sections to define the etymology of a term.",
parents = {"සැකිලි"},
}
raw_categories["Foreign derivation templates"] = {
description = "Templates used in etymology sections to indicate derivation from a different language than the language of the current entry.",
parents = {"නිරුක්ති සැකිලි"},
}
raw_categories["පදිම විචාර සැකිලි"] = {
description = "Templates used in etymology sections to specify the morphology of a term.",
parents = {"නිරුක්ති සැකිලි"},
}
raw_categories["Language-specific morphology templates"] = {
description = "Specialized morphology templates used in the etymology sections of terms in particular languages.",
parents = {"පදිම විචාර සැකිලි"},
}
raw_categories["යොමු වචන පේළි සැකිලි"] = {
preceding = "{{also|Wiktionary:Headword-line templates}}",
description = "Templates used to define the [[Wiktionary:Glossary#headword line|headword line]] of a term.",
parents = {"සැකිලි"},
}
raw_categories["සාකච්ඡා සැකිලි"] = {
description = "Templates intended for use only in discussions and documentation of templates and modules.",
parents = {"සැකිලි"},
}
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 = {"සාකච්ඡා සැකිලි"},
}
raw_categories["උපදෙස් සැකිලි"] = {
description = "මෙම ප්රවර්ගය සැකිලි සහ මොඩියුල උපදෙස් පිටු සඳහා භාවිතා වන සැකිලි ලැයිස්තු ගත කරයි.",
parents = {"සැකිලි"},
}
raw_categories["File templates"] = {
description = "Templates used in the File namespace.",
parents = {"සැකිලි"},
}
raw_categories["Language attestation warning templates"] = {
description = "Templates that warn users about the attestation status of entries or senses from a language.",
parents = {"සැකිලි"},
}
raw_categories["පිරිසැලසුම් සැකිලි"] = {
description = "Templates used in creating specific layouts within entries.",
parents = {"සැකිලි"},
}
raw_categories["Collapsible box templates"] = {
description = "Templates used in creating collapsible boxes.",
parents = {"පිරිසැලසුම් සැකිලි"},
}
raw_categories["තීරු සැකිලි"] = {
preceding = "{{also|Wiktionary:Templates#Columns}}",
description = "Templates used in laying out lists in columns.",
parents = {"පිරිසැලසුම් සැකිලි"},
}
raw_categories["වගු සැකිලි"] = {
description = "වගු හැඩගැන්වීම් සඳහා භාවිතා වන සැකිලි.",
parents = {"පිරිසැලසුම් සැකිලි"},
}
raw_categories["සබැඳි සැකිලි"] = {
description = "Templates used to link to other terms, to other MediaWiki projects or to external websites.",
parents = {"සැකිලි"},
}
raw_categories["බහුරුත්හරණ සැකිලි"] = {
description = "Templates used to disambiguate multiple similar terms.",
parents = {"සබැඳි සැකිලි"},
}
raw_categories["භාහිර සබැඳි සැකිලි"] = {
description = "Templates that link to websites outside of the MediaWiki Foundation purview.",
additional = "See also [[:ප්රවර්ගය:උපහරණ සැකිලි]] for others.",
parents = {"සබැඳි සැකිලි"},
}
raw_categories["අභ්යන්තර සබැඳි සැකිලි"] = {
description = "Templates that link between Wiktionary entries.",
parents = {"Link templates"},
}
raw_categories["Language-specific internal link templates"] = {
description = "Language-specific templates that link between Wiktionary entries in particular languages.",
parents = {"අභ්යන්තර සබැඳි සැකිලි"},
}
raw_categories["Interwiki link templates"] = {
description = "Templates that link to other Wikimedia projects.",
parents = {"Link templates"},
}
raw_categories["Inline interwiki link templates"] = {
description = "Inline templates that link to other Wikimedia projects.",
parents = {"Interwiki link templates"},
}
raw_categories["Sidebar interwiki link templates"] = {
description = "Sidebar templates that link to other Wikimedia projects.",
parents = {"Interwiki link templates"},
}
raw_categories["Wikidata link templates"] = {
description = "Inline templates that link to Wikidata.",
parents = {"Interwiki link templates"},
}
raw_categories["Wikisource link templates"] = {
description = "Inline templates that link to Wikisource.",
parents = {"Interwiki link templates"},
}
raw_categories["ලැයිස්තු සැකිලි"] = {
description = "ලැයිස්තු ජනනය සඳහා භාවිතා වන සැකිලි.",
additional = "මෙයත් බලන්න: [[:ප්රවර්ගය:භාෂාව අනුව ලැයිස්තු සැකිලි]].",
parents = {"සැකිලි"},
}
raw_categories["අනුලක්ෂණ ලැයිස්තු සැකිලි"] = {
description = "අනුලක්ෂණ ලැයිස්තු ජනනය සඳහා භාවිතා වන සැකිලි.",
parents = {"ලැයිස්තු සැකිලි"},
}
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 = {"සැකිලි"},
}
raw_categories["නඩත්තු කටයුතු සැකිලි"] = {
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 = {"සැකිලි", "ප්රවර්ගය:වික්ෂනරි නඩත්තු කටයුතු"},
}
raw_categories["ශුද්ධ පවිත්රණ සැකිලි"] = {
description = "Templates used to request cleanup of entries.",
additional = "Some of these templates are used when entries are batch-imported from another source.",
parents = {"නඩත්තු කටයුතු සැකිලි", "ඉල්ලීම් සැකිලි"},
}
raw_categories["මකා දැමීම් සැකිලි"] = {
description = "Templates used to request deletion of entries.",
parents = {"නඩත්තු කටයුතු සැකිලි", "ඉල්ලීම් සැකිලි"},
}
raw_categories["සත්යාපන සැකිලි"] = {
description = "Templates used to request verification of entries that may be incorrect.",
parents = {"නඩත්තු කටයුතු සැකිලි", "ඉල්ලීම් සැකිලි"},
}
raw_categories["Wiktionary templates"] = {
description = "Templates used in the internal operation of Wiktionary.",
parents = {"සැකිලි", "වික්ෂනරිය"},
}
raw_categories["මෙටා සැකිලි"] = {
description = "Templates used in other templates or to create other templates.",
parents = {"සැකිලි"},
}
raw_categories["පෙළ හැසිරවීම් සැකිලි"] = {
description = "Templates used to manipulate strings.",
additional = "See also [[Module:string/templates]], which can be invoked from templates to do string manipulation.",
parents = {"මෙටා සැකිලි"},
}
------------ NAVIGATION TEMPLATES ------------
raw_categories["මං සලකුණු සැකිලි"] = {
description = "Templates used to create navigation boxes for easily linking to other similar pages.",
parents = {"සැකිලි"},
}
raw_categories["Language-specific number templates"] = {
description = "Language-specific templates that generate number boxes or lists for a given language.",
additional = "Contrast {{catlink|Number templates}}, which contains general (language-agnostic) templates for converting numbers or generating number boxes or lists in a given language.",
parents = {"මං සලකුණු සැකිලි"},
}
raw_categories["Pro-form box templates"] = {
description = "Language-specific templates that generate navigation boxes for displaying pro-forms (pronouns, determiners, pronominal adverbs, etc.) for a given language.",
parents = {"මං සලකුණු සැකිලි"},
}
raw_categories["Demonstrative box templates"] = {
description = "Language-specific templates that generate demonstrative pronoun, determiner and adverb boxes for a given language.",
parents = {"Pro-form box templates"},
}
raw_categories["Grammatical article box templates"] = {
description = "Language-specific templates that generate grammatical article boxes (definite, indefinite, partitive, etc.) for a given language.",
parents = {"Pro-form box templates"},
}
raw_categories["Interrogative box templates"] = {
description = "Language-specific templates that generate interrogative pronoun, determiner and adverb boxes for a given language.",
parents = {"Pro-form box templates"},
}
raw_categories["Personal pronoun box templates"] = {
description = "Language-specific templates that generate personal pronoun boxes for a given language.",
additional = [=[
The standard format for these templates is:
* Where the language is uninflected (e.g. Samoan {{tl|sm-personal pronouns}}) or the language is inflected but the box shows only the lemma forms of the pronoun (e.g. Basque {{tl|eu-personal pronouns}}), the '''numbers''' (singular/plural) run across the top and the '''persons''' (1st/2nd/3rd) run down the left side.
* Where the language is inflected, the '''cases''' run across the top. Down the left side, the headers (from left to right) are '''number''', '''person''', then any subform if applicable. Example: Middle High German {{tl|gmh-personal pronouns}}
** Exceptions:
*** If there are too many cases to fit on the screen as columns, the template can be transposed so that cases run vertically. Example: Northern Yukaghir {{tl|ykg-personal pronouns}}
*** If the singular and plural forms are very similar, consider placing the person headers outside number instead. Example: Punjabi {{tl|pa-personal pronouns}}
]=],
parents = {"Pro-form box templates"},
}
raw_categories["Possessive pronoun and determiner box templates"] = {
description = "Language-specific templates that generate possessive pronoun and determiner boxes for a given language.",
parents = {"Pro-form box templates"},
}
raw_categories["Reflexive pronoun and determiner box templates"] = {
description = "Language-specific templates that generate reflexive pronoun and determiner boxes for a given language.",
parents = {"Pro-form box templates"},
}
raw_categories["Relative pronoun and determiner box templates"] = {
description = "Language-specific templates that generate relative pronoun and determiner boxes for a given language.",
parents = {"Pro-form box templates"},
}
raw_categories["සංඛ්යා සැකිලි"] = {
description = "General (language-agnostic) templates used to convert numbers or generate boxes or lists of the numbers in a given language.",
additional = "Contrast {{catlink|Language-specific number templates}}, which contains language-specific templates for generating number boxes or lists in a given language.",
parents = {"සැකිලි"},
}
raw_categories["Orthographic and regional variant templates"] = {
description = "Templates used to generate lists of links to alternative forms of a term, either across orthographic systems, scripts, or regional or dialectal variation.",
parents = {"අක්ෂරක්රම සැකිලි", "අභ්යන්තර සබැඳි සැකිලි"},
}
raw_categories["Pagename templates"] = {
description = "Templates used to retrieve pagenames or pagename properties or manipulate pagenames.",
parents = {"සැකිලි"},
}
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 = {"සැකිලි"},
}
raw_categories["උච්චාරණ සැකිලි"] = {
description = "Templates used to format pronunciation sections and the characters they use.",
additional = "See also [[:Category:Script templates]] and [[Wiktionary:Pronunciation]].",
parents = {"සැකිලි"},
}
raw_categories["Rhyme templates"] = {
description = "Templates used to format [[Wiktionary:Rhymes|rhyme pages]], links to them from pronunciation sections, etc.",
parents = {"උච්චාරණ සැකිලි"},
}
raw_categories["Sign language templates"] = {
description = "Templates used to format sign-language pronunciation charts.",
parents = {"උච්චාරණ සැකිලි"},
}
raw_categories["Qualifier and gloss templates"] = {
description = "Templates for displaying qualifiers, glosses and the like.",
parents = {"සැකිලි"},
}
raw_categories["Redirect templates"] = {
description = "Templates used to format redirect pages.",
parents = {"සැකිලි"},
}
raw_categories["මූලාශ්ර සැකිලි"] = {
preceding = "{{also|Wiktionary:Reference templates|:Category:Reference templates by language}}",
description = "Templates used to format references.",
parents = {"සැකිලි"},
}
raw_categories["Religion templates"] = {
description = "Templates that display religion-related diagrams or boxes.",
parents = {"සැකිලි"},
}
raw_categories["ඉල්ලීම් සැකිලි"] = {
topright = "{{shortcut|WT:RT}}",
description = "Request templates for dictionary entries in the main namespace.",
parents = {"සැකිලි", "Requests"},
}
raw_categories["වැලිපිලි සැකිලි"] = {
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 = {"සැකිලි"},
}
raw_categories["අක්ෂරක්රම සැකිලි"] = {
preceding = "{{mainwikt|Scripts}}",
description = "Templates used for converting between scripts or displaying text in a specific script.",
parents = {"සැකිලි"},
}
raw_categories["ශබ්දාර්ථවිභාග සබඳතා සැකිලි"] = {
description = "Templates that are placed below the [[Wiktionary:Glossary#definition line|definition line]], to indicate other terms semantically related to a particular sense.",
parents = {"සැකිලි"},
}
raw_categories["Single-page-use templates"] = {
description = "Templates used only on a single page and unlikely to find re-use elsewhere.",
parents = {"සැකිලි"},
}
raw_categories["පරිපූරක සැකිලි"] = {
description = "A grab bag of templates used to assist other templates.",
additional = "These should be recategorized according to function.",
parents = {"සැකිලි"},
}
raw_categories["Taxonomy templates"] = {
description = "Templates used in Translingual taxonomy entries and in reference to those entries.",
parents = {"සැකිලි"},
}
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", "අර්ථ දැක්වීම් සැකිලි"},
}
raw_categories["Taxonomic reference templates"] = {
description = "Templates used to format references for taxonomic names.",
breadcrumb = "Reference",
parents = {"Taxonomy templates", "මූලාශ්ර සැකිලි"},
}
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 = {"සැකිලි", "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 = {"සැකිලි"},
}
raw_categories["පෙළ සැකසුම් සැකිලි"] = {
description = "Templates that provide shortcuts for formatting ordinary text.",
parents = {"සැකිලි"},
}
raw_categories["Thesaurus templates"] = {
description = "Templates for linking to or formatting thesaurus entries.",
parents = {"සැකිලි"},
}
raw_categories["පරිවර්තන සැකිලි"] = {
description = "Templates used to format entries in and parts of translation tables.",
parents = {"සැකිලි"},
}
raw_categories["පරිශීලක සැකිලි"] = {
description = "Templates meant to be used in userspace.",
parents = {"සැකිලි"},
}
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 = { "වැලිපිලි සැකිලි", "සැකිලි" },
}
raw_categories["Authority control subtemplates"] = {
description = "Subtemplates used in conjunction with {{tl|authority control}}.",
parents = {"පරිශීලක සැකිලි"},
}
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 = {"පරිශීලක සැකිලි"},
}
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["නන්-ප්රොඩක්ශන් සැකිලි සහ මොඩියුල"] = {
description = "Templates and modules not currently used in production.",
additional = "{{also|Special:UnusedTemplates|:ප්රවර්ගය:භාවිතා නොවූ සැකිලි}}",
parents = {"සැකිලි", "මොඩියුල", "ප්රවර්ගය:වික්ෂනරි නඩත්තු කටයුතු"},
}
raw_categories["Templates subcategories by language"] = {
description = "Umbrella categories covering topics related to templates.",
additional = "{{{umbrella_meta_msg}}}",
parents = {
"ඡත්ර මෙටා ප්රවර්ග",
{name = "සැකිලි", 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
-----------------------------------------------------------------------------
-- --
-- RAW HANDLERS --
-- --
-----------------------------------------------------------------------------
insert(raw_handlers, function(data)
-- Allow 'Foo reference templates' for etym-only varieties.
local langname = data.category:match("^(.+) reference templates$")
if not langname then
return nil
end
local lang = require(languages_module).getByCanonicalName(langname, nil, true)
if lang and lang:hasType("etymology-only") then
local first_parent
local lang_parent = lang:getParent()
if lang_parent:hasType("etymology-only") then
-- In case there are nested etymology templates, return the parent's reference template cat, not the
-- full lang's reference template cat.
first_parent = lang_parent:getCanonicalName() .. " reference templates"
else
first_parent = {name = "මූලාශ්ර සැකිලි", lang = lang_parent:getCode(), is_label = true}
end
return {
lang = lang:getCode(),
description = "Templates used to generate reference footnotes for {{{langname}}} entries.",
parents = {
first_parent,
lang:getCategoryName(),
},
breadcrumb_and_first_sort_key = langname,
}
end
end)
return {LABELS = labels, RAW_CATEGORIES = raw_categories, RAW_HANDLERS = raw_handlers}