Wiktionary
siwiktionary
https://si.wiktionary.org/wiki/%E0%B7%80%E0%B7%92%E0%B6%9A%E0%B7%8A%E0%B7%82%E0%B6%B1%E0%B6%BB%E0%B7%92:%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A_%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80
MediaWiki 1.48.0-wmf.4
case-sensitive
මාධ්යය
විශේෂ
සාකච්ඡාව
පරිශීලක
පරිශීලක සාකච්ඡාව
වික්ෂනරි
වික්ෂනරි සාකච්ඡාව
ගොනුව
ගොනුව සාකච්ඡාව
මාධ්යවිකි
මාධ්යවිකි සාකච්ඡාව
සැකිල්ල
සැකිලි සාකච්ඡාව
උදවු
උදවු සාකච්ඡාව
ප්රවර්ගය
ප්රවර්ග සාකච්ඡාව
TimedText
TimedText talk
Module
Module talk
Event
Event talk
Module:category tree/templates
828
6143
238877
234068
2026-11-13T04:21:47Z
Lee
19
"navigation templates" සිට "මං සලකුණු සැකිලි" වෙතට
238877
Scribunto
text/plain
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 = {"සබැඳි සැකිලි"},
}
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 = {"අර්ථ දැක්වීම් සැකිලි", "සබැඳි සැකිලි"},
}
labels["යොමු වචන පේළි සැකිලි"] = {
description = "{{{langname}}} යොමු වචන අඩංගු පේළි පෙන්වීම සඳහා භාවිතා වන සැකිලි.",
parents = {"සැකිලි"},
}
labels["index templates"] = {
description = "Templates used to organize {{{langname}}} indexes.",
parents = {"සබැඳි සැකිලි"},
}
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["සබැඳි සැකිලි"] = {
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 = {"සබැඳි සැකිලි"},
}
labels["mutation templates"] = {
description = "Templates used to show mutation of {{{langname}}} words.",
parents = {"සැකිලි"},
}
labels["මං සලකුණු සැකිලි"] = {
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 = {"සබැඳි සැකිලි"},
}
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 = {"උපුටා දැක්වීම් සැකිලි", "සබැඳි සැකිලි"},
}
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 = {"සබැඳි සැකිලි"},
}
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 = {"මූලාශ්ර සැකිලි", "සබැඳි සැකිලි"},
}
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 = {"සබැඳි සැකිලි"},
}
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 = {"සබැඳි සැකිලි"},
}
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 = {"සැකිලි", "ඉල්ලීම්"},
}
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 = {"සැකිලි", "ඉල්ලීම්"},
}
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}
iqur5az0lr7kubrm367roah6vhi6glg
Module:alternative forms/documentation
828
7064
238902
26413
2024-04-11T23:38:17Z
en>Benwing2
0
dialect labels are now same as {{lb}} labels
238902
wikitext
text/x-wiki
This module is called by {{temp|alter}}, the template that is used in [[Wiktionary:Entry layout#Alternative forms|Alternative forms sections]] to link the alternative forms of a term and to show which dialect or spelling system they belong to.
The dialect labels used after an empty parameter are now the same as those used by {{tl|lb}}, and can be found in the labels data modules, e.g. [[Module:labels/data/lang/en]] for English and [[Module:labels/data/lang/grc]] for Ancient Greek.
==Testcases==
; {{l|grc|ὑμεῖς}}
* {{alter|grc|ὔμμες|alt1=ῠ̓́μμες||epi|aio}}
* {{alter|grc|ὑμές|ὑμέν|alt1=ῡ̔μές|alt2=ῡ̔μέν||dor}}
* {{alter|grc|οὐμές||boi}}
; (using aliases of labels)
* {{alter|grc|ὔμμες|alt1=ῠ̓́μμες||Epic|Aeolic}}
* {{alter|grc|ὑμές|ὑμέν|alt1=ῡ̔μές|alt2=ῡ̔μέν||Doric}}
* {{alter|grc|οὐμές||Boeotian}}
; {{l|en|honor}}
* {{alter|en|honour|id1=noun||British|Commonwealth|Irish}}
; {{l|de|werweissen}}
* {{alter|de|werweißen||rare, outside of Switzerland}}
; items with commas
* {{alter|en|same old, same old|same-old, same-old|same-old same-old|same old-same old|same ol' same ol'|same ol', same ol'|same-ol' same-ol'|same ol'-same ol'}}
; term param missing
* {{alter|en|alt1=testity|3=test}}
* {{alter|pal|tr=dʾl|ts=dār}}
==See also==
* [[Module:descendants tree]], which retrieves alternative forms for {{temp|desc}} and {{temp|desctree}}
<includeonly>
[[Category:Internal link modules]]
</includeonly>
r6h443tzaqljqq6xuokukc97b3oxqfn
238903
210378
2026-11-13T05:47:53Z
Lee
19
[[:en:Module:alternative_forms/documentation]] වෙතින් එක් සංශෝධනයක්
210378
wikitext
text/x-wiki
This module is called by {{temp|alter}}, the template that is used in [[Wiktionary:Entry layout#Alternative forms|Alternative forms sections]] to link the alternative forms of a term and to show which dialect or spelling system they belong to.
Dialect labels are found in data modules (see [[:Category:Dialectal data modules]]). The modules are titled with the language code and <code>:Dialects</code>: for instance, [[Module:en:Dialects]]. Each label has link text and can give a Wikipedia article that the label should link to. If you would like to create a dialectal data module but do not know how, post on the [[Module talk:alternative forms|talk page]].
==Testcases==
; {{l|grc|ὑμεῖς}}
* {{alter|grc|ὔμμες|alt1=ῠ̓́μμες||epi|aio}}
* {{alter|grc|ὑμές|ὑμέν|alt1=ῡ̔μές|alt2=ῡ̔μέν||dor}}
* {{alter|grc|οὐμές||boi}}
; (using aliases of labels)
* {{alter|grc|ὔμμες|alt1=ῠ̓́μμες||Epic|Aeolic}}
* {{alter|grc|ὑμές|ὑμέν|alt1=ῡ̔μές|alt2=ῡ̔μέν||Doric}}
* {{alter|grc|οὐμές||Boeotian}}
; {{l|en|honor}}
* {{alter|en|honour|id1=noun||British|Commonwealth|Irish}}
; {{l|de|werweissen}}
* {{alter|de|werweißen||rare, outside of Switzerland}}
; items with commas
* {{alter|en|same old, same old|same-old, same-old|same-old same-old|same old-same old|same ol' same ol'|same ol', same ol'|same-ol' same-ol'|same ol'-same ol'}}
; term param missing
* {{alter|en|alt1=testity|3=test}}
* {{alter|pal|tr=dʾl|ts=dār}}
==See also==
* [[Module:descendants tree]], which retrieves alternative forms for {{temp|desc}} and {{temp|desctree}}
<includeonly>
[[ප්රවර්ගය:අභ්යන්තර සබැඳි මොඩියුල]]
</includeonly>
ehard6ur96uw9krr6orul6blsprp14x
Module:alternative forms
828
7065
238900
83606
2026-09-14T06:24:56Z
en>Benwing2
0
no need to set 'show qualifiers'; it's done in [[Module:parameter utilities]]
238900
Scribunto
text/plain
local export = {}
local labels_module = "Module:labels"
local links_module = "Module:links"
local parameter_utilities_module = "Module:parameter utilities"
local function track(page)
require("Module:debug/track")("alter/" .. page)
end
--[==[
Main function for displaying alternative forms. Extracted out from the template-callable function so this can be
called by other modules (in particular, [[Module:descendants tree]]). `allow_self_link` causes terms the same as the
pagename to be shown normally; otherwise they are displayed unlinked. `default_separator` controls the separator between
terms when the user didn't use a special separator term like ";" (defaulting to ", ").
]==]
function export.display_alternative_forms(parent_args, pagename, allow_self_link, default_separator)
local params = {
[1] = {required = true, type = "language", default = "en"},
[2] = {list = true, allow_holes = true},
}
local m_param_utils = require(parameter_utilities_module)
local param_mods = m_param_utils.construct_param_mods {
{group = {"link", "ref"}},
-- For compatibility, we need to turn off separate_no_index for q= and qq=.
{group = "q", separate_no_index = false},
-- We currently don't support unindexed l= and ll=.
{group = "l", require_index = true},
}
local items, args = m_param_utils.parse_list_with_inline_modifiers_and_separate_params {
params = params,
param_mods = param_mods,
raw_args = parent_args,
termarg = 2,
parse_lang_prefix = true,
track_module = "alter",
lang = 1,
sc = "sc.default",
stop_when = function(data)
local stop = not data.any_param_at_index
if stop and parent_args[data.orig_index + 1] == nil then
track("actual hole in params")
end
return stop
end,
default_separator = default_separator,
}
if not items[1] then
error("No items found!")
end
local lang = args[1]
local raw_labels = {}
-- Extract the labels and make sure none are blank or omitted.
local last_item_index = items[#items].orig_index
if last_item_index < args[2].maxindex then
for i = last_item_index + 2, args[2].maxindex do
if not args[2][i] then
-- Indices in i start at 1 but parameters start at 2 to add 1 to shown index.
error("Missing/blank item not allowed in [[Template:alt]] labels, but saw such an item in parameter "
.. (i + 1))
end
table.insert(raw_labels, args[2][i])
end
end
-- Make sure there aren't property parameters after the last item (i.e. corresponding to labels).
for k, v in pairs(args) do
-- Look for named list parameters. We check:
-- (1) key is a string (excludes the term param, which is a number);
-- (2) value is a table, i.e. a list;
-- (3) v.maxindex is set (i.e. allow_holes was used);
-- (4) v.maxindex is past the index of the last term.
if type(k) == "string" and type(v) == "table" and v.maxindex and v.maxindex > last_item_index then
local set_values = {}
for i = last_item_index + 1, v.maxindex do
if v[i] then
table.insert(set_values, i)
end
end
error(("Extraneous values for %s= (set at position%s %s)"):format(k, #set_values > 1 and "s" or "",
table.concat(set_values, ",")))
end
end
if not allow_self_link then
-- If the to-be-linked term is the same as the pagename, display it unlinked.
for _, item in ipairs(items) do
if not item.term and lang:stripDiacritics(item.term) == pagename then
track("term is pagename")
item.alt = item.alt or item.term
item.term = nil
end
end
end
local labels
if #raw_labels > 0 then
labels = require(labels_module).process_raw_labels { labels = raw_labels, lang = lang, nocat = true }
end
local parts = {}
local function ins(part)
table.insert(parts, part)
end
-- Construct the final output.
-- First the items, including separators, left and right regular qualifiers and left and right per-item labels.
for _, item in ipairs(items) do
ins(item.separator)
local text = require(links_module).full_link(item, nil, allow_self_link)
ins(text)
end
-- If there are labels, construct them now and append to final output.
if labels then
if lang:hasTranslit() then
ins(" — " .. require(labels_module).format_processed_labels {
labels = labels, lang = lang
})
else
ins(" " .. require(labels_module).format_processed_labels {
labels = labels, lang = lang, open = "(", close = ")"
})
end
end
return table.concat(parts)
end
--[==[
Template-callable function for displaying alternative forms.
]==]
function export.create(frame)
local parent_args = frame:getParent().args
return export.display_alternative_forms(parent_args, mw.loadData("Module:headword/data").pagename)
end
return export
dcgoy575zkmc8ljrs2bbrk6ltya3p97
238901
238900
2026-11-13T05:47:28Z
Lee
19
[[:en:Module:alternative_forms]] වෙතින් එක් සංශෝධනයක්
238900
Scribunto
text/plain
local export = {}
local labels_module = "Module:labels"
local links_module = "Module:links"
local parameter_utilities_module = "Module:parameter utilities"
local function track(page)
require("Module:debug/track")("alter/" .. page)
end
--[==[
Main function for displaying alternative forms. Extracted out from the template-callable function so this can be
called by other modules (in particular, [[Module:descendants tree]]). `allow_self_link` causes terms the same as the
pagename to be shown normally; otherwise they are displayed unlinked. `default_separator` controls the separator between
terms when the user didn't use a special separator term like ";" (defaulting to ", ").
]==]
function export.display_alternative_forms(parent_args, pagename, allow_self_link, default_separator)
local params = {
[1] = {required = true, type = "language", default = "en"},
[2] = {list = true, allow_holes = true},
}
local m_param_utils = require(parameter_utilities_module)
local param_mods = m_param_utils.construct_param_mods {
{group = {"link", "ref"}},
-- For compatibility, we need to turn off separate_no_index for q= and qq=.
{group = "q", separate_no_index = false},
-- We currently don't support unindexed l= and ll=.
{group = "l", require_index = true},
}
local items, args = m_param_utils.parse_list_with_inline_modifiers_and_separate_params {
params = params,
param_mods = param_mods,
raw_args = parent_args,
termarg = 2,
parse_lang_prefix = true,
track_module = "alter",
lang = 1,
sc = "sc.default",
stop_when = function(data)
local stop = not data.any_param_at_index
if stop and parent_args[data.orig_index + 1] == nil then
track("actual hole in params")
end
return stop
end,
default_separator = default_separator,
}
if not items[1] then
error("No items found!")
end
local lang = args[1]
local raw_labels = {}
-- Extract the labels and make sure none are blank or omitted.
local last_item_index = items[#items].orig_index
if last_item_index < args[2].maxindex then
for i = last_item_index + 2, args[2].maxindex do
if not args[2][i] then
-- Indices in i start at 1 but parameters start at 2 to add 1 to shown index.
error("Missing/blank item not allowed in [[Template:alt]] labels, but saw such an item in parameter "
.. (i + 1))
end
table.insert(raw_labels, args[2][i])
end
end
-- Make sure there aren't property parameters after the last item (i.e. corresponding to labels).
for k, v in pairs(args) do
-- Look for named list parameters. We check:
-- (1) key is a string (excludes the term param, which is a number);
-- (2) value is a table, i.e. a list;
-- (3) v.maxindex is set (i.e. allow_holes was used);
-- (4) v.maxindex is past the index of the last term.
if type(k) == "string" and type(v) == "table" and v.maxindex and v.maxindex > last_item_index then
local set_values = {}
for i = last_item_index + 1, v.maxindex do
if v[i] then
table.insert(set_values, i)
end
end
error(("Extraneous values for %s= (set at position%s %s)"):format(k, #set_values > 1 and "s" or "",
table.concat(set_values, ",")))
end
end
if not allow_self_link then
-- If the to-be-linked term is the same as the pagename, display it unlinked.
for _, item in ipairs(items) do
if not item.term and lang:stripDiacritics(item.term) == pagename then
track("term is pagename")
item.alt = item.alt or item.term
item.term = nil
end
end
end
local labels
if #raw_labels > 0 then
labels = require(labels_module).process_raw_labels { labels = raw_labels, lang = lang, nocat = true }
end
local parts = {}
local function ins(part)
table.insert(parts, part)
end
-- Construct the final output.
-- First the items, including separators, left and right regular qualifiers and left and right per-item labels.
for _, item in ipairs(items) do
ins(item.separator)
local text = require(links_module).full_link(item, nil, allow_self_link)
ins(text)
end
-- If there are labels, construct them now and append to final output.
if labels then
if lang:hasTranslit() then
ins(" — " .. require(labels_module).format_processed_labels {
labels = labels, lang = lang
})
else
ins(" " .. require(labels_module).format_processed_labels {
labels = labels, lang = lang, open = "(", close = ")"
})
end
end
return table.concat(parts)
end
--[==[
Template-callable function for displaying alternative forms.
]==]
function export.create(frame)
local parent_args = frame:getParent().args
return export.display_alternative_forms(parent_args, mw.loadData("Module:headword/data").pagename)
end
return export
dcgoy575zkmc8ljrs2bbrk6ltya3p97
Module:category tree/languages
828
7928
238880
238819
2026-11-13T05:30:23Z
Lee
19
"Category" සිට "ප්රවර්ගය" වෙතට
238880
Scribunto
text/plain
local m_sinhala = require("Module:sinhala")
local new_title = mw.title.new
local ucfirst = require("Module:string utilities").ucfirst
local split = require("Module:string utilities").split
local raw_categories = {}
local raw_handlers = {}
local m_languages = require("Module:languages")
local m_sc_getByCode = require("Module:scripts").getByCode
local m_table = require("Module:table")
local parse_utilities_module = "Module:parse utilities"
local concat = table.concat
local insert = table.insert
local reverse_ipairs = m_table.reverseIpairs
local serial_comma_join = m_table.serialCommaJoin
local size = m_table.size
local sorted_pairs = m_table.sortedPairs
local to_json = require("Module:JSON").toJSON
local Hang = m_sc_getByCode("Hang")
local Hani = m_sc_getByCode("Hani")
local Hira = m_sc_getByCode("Hira")
local Hrkt = m_sc_getByCode("Hrkt")
local Kana = m_sc_getByCode("Kana")
local function track(page)
-- [[Special:WhatLinksHere/Wiktionary:Tracking/category tree/languages/PAGE]]
return require("Module:debug/track")("category tree/languages/" .. page)
end
-- This handles language categories of the form e.g. [[:Category:French language]] and
-- [[:Category:British Sign Language]]; categories like [[:Category:Languages of Indonesia]]; categories like
-- [[:Category:English-based creole or pidgin languages]]; and categories like
-- [[:Category:English-based constructed languages]].
-----------------------------------------------------------------------------
-- --
-- RAW CATEGORIES --
-- --
-----------------------------------------------------------------------------
raw_categories["භාෂා සියල්ල"] = {
topright = "{{commonscat|Languages}}\n[[File:Languages world map-transparent background.svg|thumb|right|250px|භාෂා පවුල් දළ ලෝක සිතියම]]",
description = "මෙම ප්රවර්ගය තුළ වික්ෂනරිය තුළ ඇති භාෂා සියල්ල සඳහා ම වන ප්රවර්ග අඩංගු වෙයි.",
additional = "වික්ෂනරිය තුළ පිළිගැනීමක් සහිත භාෂා සියල්ල සඳහා ම තවම මෙහි ප්රවර්ගයක් නොපැවතීමට ඉඩ ඇත. සියලුම වික්ෂනරි පරිශීලකයින් සෑම " ..
"භාෂාවක් පිළිබඳව ම නොදන්නා හෙයින්, තවමත් සංස්කාරකවරුන්ගේ අවධානයට ලක් නොවූ බොහෝ භාෂා " ..
"පැවතීමට ඉඩ ඇත. සම්පූර්ණ ලැයිස්තුව සඳහා [[වික්ෂනරි:භාෂා ලැයිස්තුව]] වෙතට යොමු වන්න.",
parents = {
"මූලධර්ම",
},
}
raw_categories["නෂ්ට වූ භාෂා සියල්ල"] = {
description = "Categories for every [[extinct language]] on Wiktionary.",
additional = "Do not confuse this category with [[:Category:Extinct languages]], which is an umbrella category for the names of extinct languages in specific other languages (e.g. {{m+|de|Langobardisch}} for the ancient [[Lombardic]] language).",
parents = {
{name = "භාෂා සියල්ල", sort = " "},
},
}
raw_categories["Reconstructed languages"] = {
description = "Categories for every [[Wiktionary:Reconstructed terms|reconstructed language]] on Wiktionary, and appendices for proposed proto-language reconstructions that are considered promising but have not yet gained general acceptance.",
parents = {
{name = "නෂ්ට වූ භාෂා සියල්ල", sort = " "},
{name = "භාෂා සියල්ල", sort = " "},
},
}
raw_categories["Appendix-only terms"] = {
description = "Terms that do not pass the [[WT:CFI|criteria for inclusion]], but are noteworthy enough to be included in the Appendix.",
additional = "Examples are dictionary-only terms (terms found in dictionaries but not elsewhere, including but not limited to [[ghost word]]s) and certain noteworthy [[protologism]]s.",
parents = {"Appendices"},
}
raw_categories["Appendix-only constructed languages"] = {
description = "[[constructed language|Constructed languages]] that per the [[WT:CFI|criteria for inclusion]], may not be present in the main namespace, but may have entries in the {{cd|Appendix:}} namespace.",
additional = "For instance, all terms in Klingon may be available at [[Appendix:Klingon]].",
breadcrumb = "appendix-only",
parents = {
{name = "Constructed languages", sort = " "},
"Appendix-only terms",
},
}
raw_categories["Unattested languages"] = {
description = "Categories for languages of which there are no written records and which have not been reconstructed based on their descendants.",
additional = "Most of these are [[w:Stratum (linguistics)#Unattested substrata|unattested substrate languages]] that have been proposed as sources of vocabulary in certain languages.",
parents = {
{name = "නෂ්ට වූ භාෂා සියල්ල", sort = " "},
{name = "භාෂා සියල්ල", sort = " "},
},
}
raw_categories["Unwritten languages"] = {
description = "Categories for every [[unwritten]] [[language]] on Wiktionary.",
additional = "Do not confuse this category with [[:Category:Unspecified script languages]], which contains categories for languages that may be written but where the appropriate script has not yet been specified in the language data.",
parents = {
{name = "භාෂා සියල්ල", sort = " "},
},
}
raw_categories["Languages with automatic transliteration"] = {
preceding = "{{also|:Category:Terms with redundant transliterations by language|:Category:Terms with non-redundant manual transliterations by language}}",
description = "Categories for languages with automatic [[transliteration]], i.e. which have the name of a transliteration module listed in their [[:Category:Language data modules|language data table]].",
additional = [=[For example, for {{lnl|hi}}, {{lua|1=translit_module = "hi-translit"}}, referring to [[Module:hi-translit]]). The [[:Category:Transliteration modules|transliteration module]] converts the language's native script into a Latin-script version (a transliteration), which is then displayed in templates like {{tl|l}}, {{tl|m}} and {{tl|head}}.]=],
parents = {
{name = "භාෂා සියල්ල", sort = " "},
{name = "Transliteration modules", sort = " "},
}
}
raw_categories["රට අනුව භාෂා"] = {
topright = "{{commonscat|Languages by continent}}",
description = "රට අනුව භාෂා සමූහනය සිදු කරන ප්රවර්ග.",
additional = "{{{umbrella_meta_msg}}}",
parents = {
{name = "භාෂා සියල්ල", sort = " "},
},
}
raw_categories["Languages not sorted into a location category"] = {
description = "Languages which do not specify (in their {{tl|auto cat}} call) the location(s) where they are spoken.",
additional = "This excludes constructed and reconstructed languages; as a result, all languages in this category explicitly specify their location as {{cd|UNKNOWN}}.",
parents = {
{name = "Requests"},
},
hidden = true,
}
-----------------------------------------------------------------------------
-- --
-- RAW HANDLERS --
-- --
-----------------------------------------------------------------------------
-- Given a category (without the "ප්රවර්ගය:" prefix), look up the page
-- defining the category, find the call to {{auto cat}} (if any),
-- and return a table of its arguments. If the category page doesn't exist
-- or doesn't have an {{auto cat}} invocation, return nil.
-- FIXME: Duplicated in [[Module:category tree/lects]].
local function scrape_category_for_auto_cat_args(cat)
local cat_page = mw.title.new("ප්රවර්ගය:" .. cat)
if cat_page then
local contents = cat_page:getContent()
if contents then
local frame = mw.getCurrentFrame()
for template in require("Module:template parser").find_templates(contents) do
-- The template parser automatically handles redirects and
-- canonicalizes them.
if template:get_name() == "auto cat" then
return template:get_arguments()
end
end
end
end
return nil
end
local function link_location(location)
local location_no_the = location:match("^the (.*)$")
local bare_location = location_no_the or location
local bare_location_parts = split(bare_location, ", ")
for i, part in ipairs(bare_location_parts) do
bare_location_parts[i] = ("[[%s]]"):format(part)
end
local location_link = concat(bare_location_parts, ", ")
if location_no_the then location_link = "the " .. location_link end
return location_link
end
local function linkbox(lang, setwiki, setwikt, setsister, entryname)
local wiktionarylinks = {}
local canonicalName = lang:getCanonicalName()
local wikimediaLanguages = lang:getWikimediaLanguages()
local wikipediaArticle = setwiki or lang:getWikipediaArticle(true)
setwiki = not wikipediaArticle and "-"
setsister = setsister and ucfirst(setsister) or nil
if setwikt then
track("setwikt")
if setwikt == "-" then track("setwikt/hyphen") end
end
if setwikt ~= "-" and wikimediaLanguages and wikimediaLanguages[1] then
for _, wikimedialang in ipairs(wikimediaLanguages) do
local check = new_title(wikimedialang:getCode() .. ":")
if check and check.isExternal then
insert(wiktionarylinks,
(
wikimedialang:getCanonicalName() ~= canonicalName
and "(''" .. wikimedialang:getCanonicalName() .. "'') "
or ""
) .. (
"'''[[:" .. wikimedialang:getCode()
.. ":|" .. wikimedialang:getCode()
.. ".wiktionary.org]]'''"
)
)
end
end
wiktionarylinks = concat(wiktionarylinks, "<br/>")
end
local wikt_plural = wikimediaLanguages[2] and "s" or ""
if #wiktionarylinks == 0 then
wiktionarylinks = "''None.''"
end
-- Avoid showing Wiktionary links section for reconstructed languages,
-- as they are ineligible for Wiktionary editions
local wiktionarylinks_chunk = concat{
[=[|-
| style="vertical-align: top; height: 35px; width: 40px; border-bottom: 1px solid var(--wikt-palette-grey-4, lightgray);" | [[File:Wiktionary-logo-v2.svg|35px|none|link=|Wiktionary]]
|style="border-bottom: 1px solid var(--wikt-palette-grey-4,lightgray);" | ]=], wikt_plural, [=[ ]=], canonicalName, [=[ භාෂා '''වික්ෂණරි සංස්කරණය''':
<div style="padding: 5px 10px">]=], wiktionarylinks, [=[</div>
]=]}
if lang:hasType('reconstructed') then
wiktionarylinks_chunk = ''
end
if setsister then
track("setsister")
if setsister == "-" then
track("setsister/hyphen")
else
setsister = "ප්රවර්ගය:" .. setsister
end
else
setsister = lang:getCommonsCategory() or "-"
end
return concat{ -- FIXME: Bare wikicode
[=[<div class="wikitable" style="float: right; clear: right; margin: 0 0 0.5em 1em; width: 320px; padding: 5px;">
<div style="text-align: center; margin-bottom: 10px; margin-top: 5px">''']=], canonicalName, [=[ භාෂා සබැඳි'''</div>
{| style="font-size: 90%"
|-
| style="vertical-align: top; height: 35px; border-bottom: 1px solid var(--wikt-palette-grey-4,lightgray);" | [[File:Wikipedia-logo.png|35px|none|link=|විකිපීඩියා]]
| style="border-bottom: 1px solid var(--wikt-palette-grey-4, lightgray);" | '''සිංහල විකිපීඩියා ලිපිය''':
<div style="padding: 5px 10px">]=], (setwiki == "-" and "''None.''" or "'''[[w:" .. wikipediaArticle .. "|" .. wikipediaArticle .. "]]'''"), [=[</div>
|-
| style="vertical-align: top; height: 35px; border-bottom: 1px solid var(--wikt-palette-grey-4, lightgray);" | [[File:Commons-logo.svg|35px|none|link=|Wikimedia Commons]]
| style="border-bottom: 1px solid var(--wikt-palette-grey-4,lightgray);" | '''විකිමීඩියා කොමන්ස්''' තුළ ]=], canonicalName, [=[ හා සබැඳි අන්තර්ගතය:
<div style="padding: 5px 10px">]=], (setsister == "-" and "''None.''" or "'''[[commons:" .. setsister .. "|" .. setsister .. "]]'''"), [=[</div>
]=], wiktionarylinks_chunk, [=[
|-
| style="vertical-align: top; height: 35px; border-bottom: 1px solid var(--wikt-palette-grey-4, lightgray);" | [[File:Codex icon articles color-placeholder (v2.6).svg|35px|none|link=|ප්රවේශය]]
| style="border-bottom: 1px solid var(--wikt-palette-grey-4,lightgray);" | මෙම භාෂාවේ සිංහල නාමය සඳහා වන ''වික්ෂණරි ප්රවේශය''':
<div style="padding: 5px 10px">''']=], require("Module:links").full_link({lang = m_languages.getByCode("si"), term = entryname or canonicalName}), [=['''</div>
|-
| style="vertical-align: top; height: 35px;" | [[File:Codex icon book color-placeholder (v2.6).svg|35px|none|link=|සම්පත්]]
|| ]=], canonicalName, [=[ ප්රවේශ සඳහා දායකත්වය සපයන සංස්කාරකවරු සඳහා වන '''වික්ෂණරි සම්පත්''':
<div style="padding: 5px 0">
* '''[[වික්ෂනරි:]=], canonicalName, [=[ ප්රවේශ මාර්ගෝපදේශ]]'''
* '''[[:ප්රවර්ගය:]=], canonicalName, [=[ මූලාශ්ර සැකිලි|මූලාශ්ර සැකිලි]] ({{PAGESINCAT:]=], canonicalName, [=[ මූලාශ්ර සැකිලි}})'''
* '''[[Appendix:]=], canonicalName, [=[ bibliography|ග්රන්ථනාමාවලිය]]'''
</div>
|}
</div>]=]
}
end
local function edit_link(title, text)
return '<span class="plainlinks">['
.. tostring(mw.uri.fullUrl(title, { action = "edit" }))
.. ' ' .. text .. ']</span>'
end
-- Should perhaps use wiki syntax.
local function infobox(lang)
local ret = {}
insert(ret, '<table class="wikitable language-category-info"')
local raw_data = lang:getData("extra")
if raw_data then
local replacements = {
[1] = "canonical-name",
[2] = "wikidata-item",
[3] = "family",
[4] = "scripts",
}
local function replacer(letter1, letter2)
return letter1:lower() .. "-" .. letter2:lower()
end
-- For each key in the language data modules, returns a descriptive
-- kebab-case version (containing ASCII lowercase words separated
-- by hyphens).
local function kebab_case(key)
key = replacements[key] or key
key = key:gsub("(%l)(%u)", replacer):gsub("(%l)_(%l)", replacer)
return key
end
local compress = {compress = true}
local function html_attribute_encode(str)
str = to_json(str, compress)
:gsub('"', """)
-- & in attributes is automatically escaped.
-- :gsub("&", "&")
:gsub("<", "<")
:gsub(">", ">")
return str
end
insert(ret, ' data-code="' .. lang:getCode() .. '"')
for k, v in sorted_pairs(raw_data) do
insert(ret, " data-" .. kebab_case(k)
.. '="'
.. html_attribute_encode(v)
.. '"')
end
end
insert(ret, '>\n')
insert(ret, '<tr class="language-category-data">\n<th colspan="2">'
.. edit_link(lang:getDataModuleName(), "භාෂා දත්ත සංස්කරණය")
.. "</th>\n</tr>\n")
insert(ret, "<tr>\n<th>කැනොනිකල් නාමය</th><td>" .. lang:getCanonicalName() .. "</td>\n</tr>\n")
local otherNames = lang:getOtherNames()
if otherNames then
local names = {}
for _, name in ipairs(otherNames) do
insert(names, "<li>" .. name .. "</li>")
end
if #names > 0 then
insert(ret, (
"<tr>\n<th>Other names</th><td><ul>"
.. concat(names, "\n")
.. "</ul></td>\n</tr>\n"
)
)
end
end
local aliases = lang:getAliases()
if aliases then
local names = {}
for _, name in ipairs(aliases) do
insert(names, "<li>" .. name .. "</li>")
end
if #names > 0 then
insert(ret, (
"<tr>\n<th>Aliases</th><td><ul>"
.. concat(names, "\n")
.. "</ul></td>\n</tr>\n"
)
)
end
end
local varieties = lang:getVarieties()
if varieties then
local names = {}
for _, name in ipairs(varieties) do
if type(name) == "string" then
insert(names, "<li>" .. name .. "</li>")
else
assert(type(name) == "table")
local first_var
local subvars = {}
for i, var in ipairs(name) do
if i == 1 then
first_var = var
else
insert(subvars, "<li>" .. var .. "</li>")
end
end
if #subvars > 0 then
insert(names, (
"<li><dl><dt>"
.. first_var .. "</dt>\n<dd><ul>"
.. concat(subvars, "\n")
.. "</ul></dd></dl></li>"
)
)
elseif first_var then
insert(names, "<li>" .. first_var .. "</li>")
end
end
end
if #names > 0 then
insert(ret, (
"<tr>\n<th>Varieties</th><td><ul>"
.. concat(names, "\n")
.. "</ul></td>\n</tr>\n"
)
)
end
end
insert(ret, (
"<tr>\n<th>[[Wiktionary:Languages|භාෂා කේතය]]</th><td><code>"
.. lang:getCode()
.. "</code></td>\n</tr>\n"
)
)
insert(ret, "<tr>\n<th>[[Wiktionary:Families|භාෂා පවුල]]</th>\n")
local fam = lang:getFamily()
local famCode = fam and fam:getCode()
if not fam then
insert(ret, "<td>[[:ප්රවර්ගය:Unassigned languages|unassigned]]</td>")
elseif famCode == "qfa-dis" then
insert(ret, "<td>[[:ප්රවර්ගය:Languages of disputed affiliation|disputed affiliation]]</td>")
elseif famCode == "qfa-iso" then
insert(ret, "<td>[[:ප්රවර්ගය:Language isolates|language isolate]]</td>")
elseif famCode == "qfa-mix" then
insert(ret, "<td>[[:ප්රවර්ගය:Mixed languages|mixed language]]</td>")
elseif famCode == "qfa-unc" then
insert(ret, "<td>[[:ප්රවර්ගය:Unclassifiable languages|unclassifiable language]]</td>")
elseif famCode == "sgn" then
insert(ret, "<td>[[:ප්රවර්ගය:Sign languages|sign language]]</td>")
elseif famCode == "crp" then
insert(ret, "<td>[[:ප්රවර්ගය:Creole or pidgin languages|creole or pidgin]]</td>")
elseif famCode == "art" then
insert(ret, "<td>[[:ප්රවර්ගය:Constructed languages|constructed language]]</td>")
else
insert(ret, "<td>" .. fam:makeCategoryLink() .. "</td>")
end
insert(ret, "\n</tr>\n<tr>\n<th>පූර්වජයෝ</th>\n<td>")
local ancestors = lang:getAncestors()
if ancestors[2] then
local ancestorList = {}
for i, anc in ipairs(ancestors) do
ancestorList[i] = "<li>" .. anc:makeCategoryLink() .. "</li>"
end
insert(ret, "<ul>\n" .. concat(ancestorList, "\n") .. "</ul>")
else
local ancestorChain = lang:getAncestorChainOld()
if ancestorChain[1] then
local chain = {}
for _, anc in reverse_ipairs(ancestorChain) do
insert(chain, "<li>" .. anc:makeCategoryLink() .. "</li>")
end
insert(ret, "<ul>\n" .. concat(chain, "\n<ul>\n") .. ("</ul>"):rep(#chain))
else
insert(ret, "unknown")
end
end
insert(ret, "</td>\n</tr>\n")
local scripts = lang:getScripts()
if scripts[1] then
local script_text = {}
local function makeScriptLine(sc)
local code = sc:getCode()
local url = tostring(mw.uri.fullUrl('Special:Search', {
search = 'contentmodel:css insource:"' .. code
.. '" insource:/\\.' .. code .. '/',
ns8 = '1'
}))
local sc_catlink
if code == "Zxxx" then
sc_catlink = "[[:Category:Unwritten languages|unwritten]]"
else
sc_catlink = sc:makeCategoryLink(lang)
end
return sc_catlink
.. ' (<span class="plainlinks" title="Search for stylesheets referencing this script">[' .. url .. ' <code>' .. code .. '</code>]</span>)'
end
local function add_Hrkt(text)
insert(text, "<li>" .. makeScriptLine(Hrkt))
insert(text, "<ul>")
insert(text, "<li>" .. makeScriptLine(Hira) .. "</li>")
insert(text, "<li>" .. makeScriptLine(Kana) .. "</li>")
insert(text, "</ul>")
insert(text, "</li>")
end
for _, sc in ipairs(scripts) do
local text = {}
local code = sc:getCode()
if code == "Hrkt" then
add_Hrkt(text)
else
insert(text, "<li>" .. makeScriptLine(sc))
if code == "Jpan" then
insert(text, "<ul>")
insert(text, "<li>" .. makeScriptLine(Hani) .. "</li>")
add_Hrkt(text)
insert(text, "</ul>")
elseif code == "Kore" then
insert(text, "<ul>")
insert(text, "<li>" .. makeScriptLine(Hang) .. "</li>")
insert(text, "<li>" .. makeScriptLine(Hani) .. "</li>")
insert(text, "</ul>")
end
insert(text, "</li>")
end
insert(script_text, concat(text, "\n"))
end
insert(ret, "<tr>\n<th>[[වික්ෂනරි:අක්ෂර ක්රම|අක්ෂරක්රම]]</th>\n<td><ul>\n" .. concat(script_text, "\n") .. "</ul></td>\n</tr>\n")
else
insert(ret, "<tr>\n<th>[[වික්ෂනරි:අක්ෂර ක්රම|අක්ෂරක්රම]]</th>\n<td>not specified</td>\n</tr>\n")
end
local function add_module_info(raw_data, heading)
if raw_data then
local scripts = lang:getScriptCodes()
local module_info, add = {}, false
if type(raw_data) == "string" then
insert(module_info,
("[[Module:%s]]"):format(raw_data))
add = true
else
local raw_data_type = type(raw_data)
if raw_data_type == "table" and size(scripts) == 1 and type(raw_data[scripts[1]]) == "string" then
insert(module_info,
("[[Module:%s]]"):format(raw_data[scripts[1]]))
add = true
elseif raw_data_type == "table" then
insert(module_info, "<ul>")
for script, data in sorted_pairs(raw_data) do
if type(data) == "string" and m_sc_getByCode(script) then
insert(module_info, ("<li><code>%s</code>: [[Module:%s]]</li>"):format(script, data))
end
end
insert(module_info, "</ul>")
add = size(module_info) > 2
end
end
if add then
insert(ret, [=[
<tr>
<th>]=] .. heading .. [=[</th>
<td>]=] .. concat(module_info) .. [=[</td>
</tr>
]=])
end
end
end
add_module_info(raw_data.generate_alternants, "Alternant-generating<br>module")
add_module_info(raw_data.translit, "[[Wiktionary:Transliteration and romanization|Transliteration<br>module]]")
add_module_info(raw_data.display_text, "Display text<br>module")
add_module_info(raw_data.strip_diacritics, "Diacritic-stripping<br>module")
add_module_info(raw_data.sort_key, "[[sortkey|Sortkey]]<br>module")
local wikidataItem = lang:getWikidataItem()
if lang:getWikidataItem() and mw.wikibase then
local URL = mw.wikibase.getEntityUrl(wikidataItem)
local link
if URL then
link = '[[d:' .. wikidataItem .. '|' .. wikidataItem .. ']]'
else
link = '<span class="error">Invalid Wikidata item: <code>' .. wikidataItem .. '</code></span>'
end
insert(ret, "<tr><th>විකි දත්ත</th><td>" .. link .. "</td></tr>")
end
insert(ret, "</table>")
return concat(ret)
end
local function NavFrame_for_family_tree(content, title)
return '<div class="NavFrame"><div class="NavHead">'
.. (title or '{{{title}}}') .. '</div>'
.. '<div class="NavContent" style="text-align: left; font-size: calc(1em / 0.95); padding: 0.3em">'
.. content
.. '</div></div>'
end
local function get_description_topright_additional(lang, locations, extinct, setwiki, setwikt, setsister, entryname)
local nameWithLanguage = lang:getCategoryName("nocap")
if lang:getCode() == "und" then
local description =
"This is the main category of the '''" .. nameWithLanguage .. "''', represented in Wiktionary by the [[Wiktionary:Languages|code]] '''" .. lang:getCode() .. "'''. " ..
"This language contains terms in historical writing, whose meaning has not yet been determined by scholars."
return description, nil, nil
end
local canonicalName = lang:getCanonicalName()
local topright = linkbox(lang, setwiki, setwikt, setsister, entryname)
local the_prefix
if canonicalName:find(" භාෂාව$") then
the_prefix = ""
else
-- the_prefix = "the "
-- දැනට අවශ්ය නොවේ
the_prefix = ""
end
local description = "මෙය " .. the_prefix .. "'''" .. nameWithLanguage .. "''' සඳහා වන ප්රධාන ප්රවර්ගය වේ."
local location_links = {}
local prep
local saw_embedded_comma = false
for _, location in ipairs(locations) do
local this_prep
if location == "the world" then
this_prep = "පුරා"
insert(location_links, m_sinhala.sinhala(location))
elseif location ~= "UNKNOWN" then
this_prep = "තුළ"
if location:find(",") then
saw_embedded_comma = true
end
insert(location_links, link_location(m_sinhala.sinhala(location)))
end
if this_prep then
if prep and this_prep ~= prep then
error("Can't handle location 'the world' along with another location (clashing prepositions)")
end
prep = this_prep
end
end
local location_desc
if #location_links > 0 then
local location_link_text
if saw_embedded_comma and #location_links >= 3 then
location_link_text = mw.text.listToText(location_links, "; ", "; and ")
else
location_link_text = serial_comma_join(location_links)
end
location_desc = ("එය %s %s %s.\n\n"):format(
location_link_text,
prep,
extinct and "an [[extinct language]] that was formerly spoken" or "භාවිතා වන භාෂාවකි")
elseif extinct then
location_desc = "It is an [[extinct language]].\n\n"
else
location_desc = ""
end
local add = location_desc .. canonicalName .. " බස පිළිබඳ තොරතුරු" .. ":\n\n" .. infobox(lang)
if lang:hasType("reconstructed") then
add = add .. "\n\n" ..
ucfirst(canonicalName) .. " is a reconstructed language. Its words and roots are not directly attested in any written works, but have been reconstructed through the ''comparative method'', " ..
"which finds regular similarities between languages that cannot be explained by coincidence or word-borrowing, and extrapolates ancient forms from these similarities.\n\n" ..
"According to our [[Wiktionary:Criteria for inclusion|criteria for inclusion]], terms in " .. canonicalName ..
" should '''not''' be present in entries in the main namespace, but may be added to the Reconstruction: namespace."
elseif lang:hasType("appendix-constructed") then
add = add .. "\n\n" ..
ucfirst(canonicalName) .. " is a constructed language that is only in sporadic use. " ..
"According to our [[Wiktionary:Criteria for inclusion|criteria for inclusion]], terms in " .. canonicalName ..
" should '''not''' be present in entries in the main namespace, but may be added to the උපග්රන්ථය: namespace. " ..
"All terms in this language may be available at [[උපග්රන්ථය:" .. ucfirst(canonicalName) .. "]]."
end
local entry_guidelines_page = "Wiktionary:" .. canonicalName .. " entry guidelines"
local entry_guidelines = new_title(entry_guidelines_page)
if entry_guidelines.exists then
add = add .. "\n\n" ..
"Please see '''[[" .. entry_guidelines_page .. "]]''' for information and special considerations for creating " .. nameWithLanguage .. " entries."
end
local ok, tree_of_descendants = pcall(
require("Module:family tree").render,
lang:getCode(), {
families = "show",
varieties = "show",
pair = "family-first",
must_have_descendants = true,
})
if ok then
if tree_of_descendants then
add = add .. NavFrame_for_family_tree(
tree_of_descendants,
"Family tree")
else
add = add .. "\n\n" .. ucfirst(lang:getCanonicalName())
.. " has no descendants or varieties listed in Wiktionary's language data modules."
end
else
mw.log("error while generating tree: " .. tostring(tree_of_descendants))
end
return description, topright, add
end
local function get_parents(lang, locations, extinct)
local canonicalName = lang:getCanonicalName()
local sortkey = {sort_base = canonicalName, lang = "si"}
local ret = {{name = "භාෂා සියල්ල", sort = sortkey}}
local fam = lang:getFamily()
local famCode = fam and fam:getCode()
-- FIXME: Some of the following categories should be added to this module.
if not fam then
insert(ret, {name = "ප්රවර්ගය:Unassigned languages", sort = sortkey})
elseif famCode == "qfa-dis" then
insert(ret, {name = "ප්රවර්ගය:Languages of disputed affiliation", sort = sortkey})
elseif famCode == "qfa-iso" then
insert(ret, {name = "ප්රවර්ගය:Language isolates", sort = sortkey})
elseif famCode == "qfa-mix" then
insert(ret, {name = "ප්රවර්ගය:Mixed languages", sort = sortkey})
elseif famCode == "qfa-unc" then
insert(ret, {name = "ප්රවර්ගය:Unclassifiable languages", sort = sortkey})
elseif famCode == "crp" then
insert(ret, {name = "ප්රවර්ගය:Creole or pidgin languages", sort = sortkey})
for _, anc in ipairs(lang:getAncestors()) do
-- Avoid Haitian Creole being categorised in [[:ප්රවර්ගය:Haitian Creole-based creole or pidgin languages]], as one of its ancestors is an etymology-only variety of it.
-- Use that ancestor's ancestors instead.
if anc:getFullCode() == lang:getCode() then
for _, anc_extra in ipairs(anc:getAncestors()) do
insert(ret, {name = "ප්රවර්ගය:" .. ucfirst(anc_extra:getFullName()) .. "-based creole or pidgin languages", sort = sortkey})
end
else
insert(ret, {name = "ප්රවර්ගය:" .. ucfirst(anc:getFullName()) .. "-based creole or pidgin languages", sort = sortkey})
end
end
elseif famCode == "art" then
if lang:hasType("appendix-constructed") then
insert(ret, {name = "ප්රවර්ගය:Appendix-only constructed languages", sort = sortkey})
else
insert(ret, {name = "ප්රවර්ගය:Constructed languages", sort = sortkey})
end
for _, anc in ipairs(lang:getAncestors()) do
if anc:getFullCode() == lang:getCode() then
for _, anc_extra in ipairs(anc:getAncestors()) do
insert(ret, {name = "ප්රවර්ගය:" .. ucfirst(anc_extra:getFullName()) .. "-based constructed languages", sort = sortkey})
end
else
insert(ret, {name = "ප්රවර්ගය:" .. ucfirst(anc:getFullName()) .. "-based constructed languages", sort = sortkey})
end
end
else
insert(ret, {name = "ප්රවර්ගය:" .. fam:getCategoryName(), sort = sortkey})
if lang:hasType("reconstructed") then
insert(ret, {
name = "ප්රවර්ගය:Reconstructed languages",
sort = {sort_base = canonicalName:gsub("^Proto%-", ""), lang = "en"}
})
end
end
for _, pseudofam in ipairs(lang:getPseudoFamilies()) do
insert(ret, {name = "ප්රවර්ගය:" .. pseudofam:getCategoryName(), sort = sortkey})
end
local function add_sc_cat(sc)
local catname
if sc:getCode() == "Zxxx" then
catname = "Unwritten languages"
else
catname = sc:getCategoryName(false, lang) .. " භාවිතාවන භාෂා"
end
insert(ret, {name = "ප්රවර්ගය:" .. catname, sort = sortkey})
end
local function add_Hrkt()
add_sc_cat(Hrkt)
add_sc_cat(Hira)
add_sc_cat(Kana)
end
for _, sc in ipairs(lang:getScripts()) do
if sc:getCode() == "Hrkt" then
add_Hrkt()
else
add_sc_cat(sc)
if sc:getCode() == "Jpan" then
add_sc_cat(Hani)
add_Hrkt()
elseif sc:getCode() == "Kore" then
add_sc_cat(Hang)
add_sc_cat(Hani)
end
end
end
if lang:hasTranslit() then
insert(ret, {name = "ප්රවර්ගය:Languages with automatic transliteration", sort = sortkey})
end
local function insert_location_language_cat(location)
local cat = m_sinhala.sinhala(location) .. " තුළ භාවිතා වන භාෂා"
insert(ret, {name = "ප්රවර්ගය:" .. cat, sort = sortkey})
local auto_cat_args = scrape_category_for_auto_cat_args(cat)
local location_parent = auto_cat_args and auto_cat_args.parent
if location_parent then
local split_parents = require(parse_utilities_module).split_on_comma(location_parent)
for _, parent in ipairs(split_parents) do
parent = parent:match("^(.-):.*$") or parent
insert_location_language_cat(parent)
end
end
end
local saw_location = false
for _, location in ipairs(locations) do
if location ~= "UNKNOWN" then
saw_location = true
insert_location_language_cat(location)
end
end
if extinct then
insert(ret, {name = "ප්රවර්ගය:නෂ්ට වූ භාෂා සියල්ල", sort = sortkey})
end
if not saw_location and not (lang:hasType("reconstructed") or (fam and fam:getCode() == "art")) then
-- Constructed and reconstructed languages don't need a location specified and often won't have one,
-- so don't put them in this maintenance category.
insert(ret, {name = "ප්රවර්ගය:Languages not sorted into a location category", sort = sortkey})
end
return ret
end
local function get_children()
local ret = {}
-- FIXME: We should work on the children mechanism so it isn't necessary to manually specify these.
for _, label in ipairs({"උපග්රන්ථ", "ප්රවේශ නඩත්තුව", "පාඨ", "නාම", "වාක්ය ඛණ්ඩ", "rhymes", "සංකේත", "සැකිලි", "යෙදුම්, නිරුක්තිය අනුව", "terms by usage"}) do
insert(ret, {name = label, is_label = true})
end
insert(ret, {name = "යෙදුම්, {{{langname}}} වෙතින් ව්යුත්පන්න", is_label = true, lang = false})
insert(ret, {name = "{{{langcode}}}:මාතෘකා සියල්ල", sort = "මාතෘකා සියල්ල"})
insert(ret, {name = "{{{langname}}} ප්රභේද"})
insert(ret, {name = "Requests concerning {{{langname}}}"})
insert(ret, {name = "Rhymes:{{{langname}}}", description = "Lists of {{{langname}}} words by their rhymes."})
insert(ret, {name = "User {{{langcode}}}", description = "Wiktionary users categorized by fluency levels in {{{langdisp}}}."})
return ret
end
-- Handle language categories of the form e.g. [[:Category:French language]] and
-- [[:Category:British Sign Language]].
insert(raw_handlers, function(data)
local category = data.category
if not (category:find("භාෂාව$") or category:find("[Ll]ect$")) then
return nil
end
local lang = m_languages.getByCanonicalName(category)
if not lang then
local langname = category:match("^(.*) භාෂාව$")
if langname then
lang = m_languages.getByCanonicalName(langname)
end
if not lang then
return nil
end
end
local args = require("Module:parameters").process(data.args, {
[1] = {list = true},
["setwiki"] = true,
["setwikt"] = true,
["setsister"] = true,
["entryname"] = true,
["extinct"] = {type = "boolean"},
})
-- If called from inside, don't require any arguments, as they can't be known
-- in general and aren't needed just to generate the first parent (used for
-- breadcrumbs).
if #args[1] == 0 and not data.called_from_inside then
-- At least one location must be specified unless the language is constructed (e.g. Esperanto) or reconstructed (e.g. Proto-Indo-European).
local fam = lang:getFamily()
if not (lang:hasType("reconstructed") or (fam and fam:getCode() == "art")) then
error("At least one location (param 1=) must be specified for language '" .. lang:getCanonicalName() .. "' (code '" .. lang:getCode() .. "'). " ..
"Use the value UNKNOWN if the language's location is truly unknown.")
end
end
local description, topright, additional = "", "", ""
-- If called from inside the category tree system, it's called when generating
-- parents or children, and we don't need to generate the description or additional
-- text (which is very expensive in terms of memory because it calls [[Module:family tree]],
-- which calls [[Module:languages/data/all]]).
if not data.called_from_inside then
description, topright, additional = get_description_topright_additional(
lang, args[1], args.extinct, args.setwiki, args.setwikt, args.setsister, args.entryname
)
end
return {
canonical_name = lang:getCategoryName(),
description = description,
lang = lang:getCode(),
topright = topright,
additional = additional,
breadcrumb = lang:getCanonicalName(),
parents = get_parents(lang, args[1], args.extinct),
extra_children = get_children(lang),
umbrella = false,
can_be_empty = true,
}, true
end)
-- Handle categories such as [[:Category:Languages of Indonesia]].
insert(raw_handlers, function(data)
local location = data.category:match("^(.*) තුළ භාවිතා වන භාෂා$")
if location then
local args = require("Module:parameters").process(data.args, {
["flagfile"] = true,
["commonscat"] = true,
["wp"] = true,
["basename"] = true,
["parent"] = true,
["locationcat"] = true,
["locationlink"] = true,
})
local topright
local basename = args.basename or location:gsub(", .*", "")
if args.flagfile ~= "-" then
local flagfile_arg = args.flagfile or ("Flag of %s.svg"):format(basename)
local files = require(parse_utilities_module).split_on_comma(flagfile_arg)
local topright_parts = {}
for _, file in ipairs(files) do
local flagfile = "File:" .. file
local flagfile_page = new_title(flagfile)
if flagfile_page and flagfile_page.file.exists then
insert(topright_parts, ("[[%s|right|100px|border]]"):format(flagfile))
elseif args.flagfile then
error(("Explicit flagfile '%s' doesn't exist"):format(flagfile))
end
end
topright = concat(topright_parts)
end
if args.wp then
local wp = require("Module:yesno")(args.wp, "+")
if wp == "+" or wp == true then
wp = data.category
end
if wp then
local wp_topright = ("{{wikipedia|%s}}"):format(wp)
if topright then
topright = topright .. wp_topright
else
topright = wp_topright
end
end
end
if args.commonscat then
local commonscat = require("Module:yesno")(args.commonscat, "+")
if commonscat == "+" or commonscat == true then
commonscat = data.category
end
if commonscat then
local commons_topright = ("{{commonscat|%s}}"):format(commonscat)
if topright then
topright = topright .. commons_topright
else
topright = commons_topright
end
end
end
local bare_location = location:match("^the (.*)$") or location
local location_link = args.locationlink or link_location(location)
local bare_basename = basename:match("^the (.*)$") or basename
local parents = {}
if args.parent then
local explicit_parents = require(parse_utilities_module).split_on_comma(args.parent)
for i, parent in ipairs(explicit_parents) do
local actual_parent, sort_key = parent:match("^(.-):(.*)$")
if actual_parent then
parent = actual_parent
sort_key = sort_key:gsub("%+", bare_location)
else
sort_key = " " .. bare_location
end
insert(parents, {name = "Languages of " .. parent, sort = sort_key})
end
else
insert(parents, {name = "රට අනුව භාෂා", sort = {sort_base = bare_location, lang = "en"}})
end
if args.locationcat then
local explicit_location_cats = require(parse_utilities_module).split_on_comma(args.locationcat)
for i, locationcat in ipairs(explicit_location_cats) do
insert(parents, {name = "ප්රවර්ගය:" .. locationcat, sort = " Languages"})
end
else
local location_cat = ("ප්රවර්ගය:%s"):format(bare_location)
local location_page = new_title(location_cat)
if location_page and location_page.exists then
insert(parents, {name = location_cat, sort = "Languages"})
end
end
local description = ("%s තුළ භාවිතා වන භාෂා (including sublects) සඳහා වන ප්රවර්ග."):format(location_link)
return {
topright = topright,
description = description,
parents = parents,
breadcrumb = bare_basename,
additional = "{{{umbrella_msg}}}",
}, true
end
end)
-- Handle categories such as [[:Category:English-based creole or pidgin languages]].
insert(raw_handlers, function(data)
local langname = data.category:match("(.*)%-based creole or pidgin languages$")
if langname then
local lang = m_languages.getByCanonicalName(langname)
if lang then
return {
lang = lang:getCode(),
description = "Languages which developed as a [[creole]] or [[pidgin]] from " .. lang:makeCategoryLink() .. ".",
parents = {{name = "Creole or pidgin භාෂා", sort = {sort_base = "*" .. langname, lang = "si"}}},
breadcrumb = lang:getCanonicalName() .. "-based",
}
end
end
end)
-- Handle categories such as [[:Category:English-based constructed languages]].
insert(raw_handlers, function(data)
local langname = data.category:match("(.*)%-based constructed languages$")
if langname then
local lang = m_languages.getByCanonicalName(langname)
if lang then
return {
lang = lang:getCode(),
description = "Constructed languages which are based on " .. lang:makeCategoryLink() .. ".",
parents = {{name = "Constructed languages", sort = {sort_base = "*" .. langname, lang = "si"}}},
breadcrumb = lang:getCanonicalName() .. "-based",
}
end
end
end)
return {
RAW_CATEGORIES = raw_categories,
RAW_HANDLERS = raw_handlers
}
efd5llfwrsbhw9oefnu3ltitl7ffo7p
Module:etymology
828
8073
238904
226322
2026-09-17T04:55:02Z
en>Benwing2
0
qualifiers_labels_on_outside -> decorations_on_outside
238904
Scribunto
text/plain
local export = {}
-- For testing
local force_cat = false
local debug_track_module = "Module:debug/track"
local languages_module = "Module:languages"
local links_module = "Module:links"
local table_module = "Module:table"
local utilities_module = "Module:utilities"
local concat = table.concat
local insert = table.insert
local new_title = mw.title.new
local function debug_track(...)
debug_track = require(debug_track_module)
return debug_track(...)
end
local function format_categories(...)
format_categories = require(utilities_module).format_categories
return format_categories(...)
end
local function full_link(...)
full_link = require(links_module).full_link
return full_link(...)
end
local function get_language_data_module_name(...)
get_language_data_module_name = require(languages_module).getDataModuleName
return get_language_data_module_name(...)
end
local function get_link_page(...)
get_link_page = require(links_module).get_link_page
return get_link_page(...)
end
local function language_link(...)
language_link = require(links_module).language_link
return language_link(...)
end
local function serial_comma_join(...)
serial_comma_join = require(table_module).serialCommaJoin
return serial_comma_join(...)
end
local function shallow_copy(...)
shallow_copy = require(table_module).shallowCopy
return shallow_copy(...)
end
local function track(page, code)
local tracking_page = "etymology/" .. page
debug_track(tracking_page)
if code then
debug_track(tracking_page .. "/" .. code)
end
end
local function join_segs(segs, conj)
if not segs[2] then
return segs[1]
elseif conj == "and" or conj == "or" then
return serial_comma_join(segs, {conj = conj})
end
local sep
if conj == "," or conj == ";" then
sep = conj .. " "
elseif conj == "/" then
sep = "/"
elseif conj == "~" then
sep = " ~ "
elseif conj then
error(("Internal error: Unrecognized conjunction \"%s\""):format(conj))
else
error(("Internal error: No value supplied for conjunction"):format(conj))
end
return concat(segs, sep)
end
-- Returns true if `lang` is the same as `source`, or a variety of it.
local function lang_is_source(lang, source)
return lang:getCode() == source:getCode() or lang:hasParent(source)
end
--[==[
Format one or more links as specified in `termobjs`, a list of term objects of the format accepted by `full_link()` in
[[Module:links]], including decorations (qualifiers, labels and references). `conj` is used to join multiple terms
and must be specified if there is more than one term. `template_name` is the template name used in debug tracking and
must be specified. Optional `sourcetext` is text to prepend to the concatenated terms, separated by a space if the
concatenated terms are non-empty (which is always the case unless there is a single term with the value "-"). If
`decorations_on_outside` is given, any decorations specified in the first term go on the outside of (i.e before)
`sourcetext`; otherwise they will end up on the inside.
]==]
function export.format_links(termobjs, conj, template_name, sourcetext, decorations_on_outside)
if not template_name then
error("Internal error: Must specify `template_name` to format_links()")
end
for i, termobj in ipairs(termobjs) do
if termobj.lang:hasType("family") or termobj.lang:getFamilyCode() == "qfa-sub" then
if termobj.term and termobj.term ~= "-" then
debug_track(template_name .. "/family-with-term")
end
termobj.term = "-"
end
if termobj.term == "-" then
--[=[
[[Special:WhatLinksHere/Wiktionary:Tracking/cognate/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/derived/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/borrowed/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/calque/no-term]]
]=]
debug_track(template_name .. "/no-term")
termobjs[i] = i == 1 and sourcetext or ""
else
if i == 1 and decorations_on_outside and sourcetext then
termobj.pretext = sourcetext .. " "
sourcetext = nil
end
termobjs[i] = (i == 1 and sourcetext and sourcetext .. " " or "") .. full_link(termobj, "term")
end
end
return join_segs(termobjs, conj)
end
function export.get_display_and_cat_name(source, raw)
local display, cat_name
if source:getCode() == "und" then
display = "undetermined"
cat_name = "other languages"
elseif source:getCode() == "mul" then
display = raw and "translingual" or "[[w:Translingualism|translingual]]"
cat_name = "Translingual"
elseif source:getCode() == "mul-tax" then
display = raw and "taxonomic name" or "[[w:Biological nomenclature|taxonomic name]]"
cat_name = "taxonomic names"
else
display = raw and source:getCanonicalName() or source:makeWikipediaLink()
cat_name = source:getDisplayForm()
end
return display, cat_name
end
function export.insert_source_cat_get_display(data)
local categories, lang, source = data.categories, data.lang, data.source
local display, cat_name = export.get_display_and_cat_name(source, data.raw)
if lang and not data.nocat then
-- Add the category, but only if there is a current language
if not categories then
categories = {}
end
local langname = lang:getFullName()
-- If `lang` is an etym-only language, we need to check both it and its parent full language against `source`.
-- Otherwise if e.g. `lang` is Medieval Latin and `source` is Latin, we'll end up wrongly constructing a
-- category 'Latin terms derived from Latin'.
insert(categories, langname .. (
lang_is_source(lang, source) and " terms borrowed back into " .. cat_name or
" " .. (data.borrowing_type or "terms derived") .. " from " .. cat_name
))
end
return display, categories
end
function export.format_source(data)
local lang, sort_key = data.lang, data.sort_key
-- [[Special:WhatLinksHere/Wiktionary:Tracking/etymology/sortkey]]
if sort_key then
track("sortkey")
end
local display, categories = export.insert_source_cat_get_display(data)
if lang and not data.nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories
categories = format_categories(categories, lang, sort_key, nil, data.force_cat or force_cat)
else
categories = ""
end
return "<span class=\"etyl\">" .. display .. categories .. "</span>"
end
--[==[
Format sources for etymology templates such as {{tl|bor}}, {{tl|der}}, {{tl|inh}} and {{tl|cog}}. There may potentially
be more than one source language (except currently {{tl|inh}}, which doesn't support it because it doesn't really
make sense). In that case, all but the last source language is linked to the first term, but only if there is such a
term and this linking makes sense, i.e. either (1) the term page exists after stripping diacritics according to the
source language in question, or (2) the result of stripping diacritics according to the source language in question
results in a different page from the same process applied with the last source language. For example, {{m|ru|соля́нка}}
will link to [[солянка]] but {{m|en|соля́нка}} will link to [[соля́нка]] with an accent, and since they are different
pages, the use of English as a non-final source with term 'соля́нка' will link to [[соля́нка]] even though it doesn't
exist, on the assumption that it is merely a redlink that might exist. If none of the above criteria apply, a non-final
source language will be linked to the Wikipedia entry for the language, just as final source languages always are.
`data` contains the following fields:
* `lang`: The destination language object into which the terms were borrowed, inherited or otherwise derived. Used for
categorization and can be nil, as with {{tl|cog}}.
* `sources`: List of source objects. Most commonly there is only one. If there are multiple, the non-final ones are
handled specially; see above.
* `terms`: List of term objects. Most commonly there is only one. If there are multiple source objects as well as
multiple term objects, the non-final source objects link to the first term object.
* `sort_key`: Sort key for categories. Usually nil.
* `categories`: Categories to add to the page. Additional categories may be added to `categories` based on the source
languages ('''in which case `categories` is destructively modified'''). If `lang` is nil, no categories will be
added.
* `nocat`: Don't add any categories to the page.
* `sourceconj`: Conjunction used to separate multiple source languages. Defaults to {"and"}. Currently recognized
values are `and`, `or`, `,`, `;`, `/` and `~`.
* `borrowing_type`: Borrowing type used in categories, such as {"learned borrowings"}. Defaults to {"terms derived"}.
* `force_cat`: Force category generation on non-mainspace pages.
]==]
function export.format_sources(data)
local lang, sources, terms, borrowing_type, sort_key, categories, nocat =
data.lang, data.sources, data.terms, data.borrowing_type, data.sort_key, data.categories, data.nocat
local term1, sources_n, source_segs = terms[1], #sources, {}
local final_link_page
local term1_term, term1_sc = term1.term, term1.sc
if sources_n > 1 and term1_term and term1_term ~= "-" then
final_link_page = get_link_page(term1_term, sources[sources_n], term1_sc)
end
for i, source in ipairs(sources) do
local seg, display_term
if i < sources_n and term1_term and term1_term ~= "-" then
local link_page = get_link_page(term1_term, source, term1_sc)
display_term = (link_page ~= final_link_page) or (link_page and not not new_title(link_page):getContent())
end
-- TODO: if the display forms or transliterations are different, display the terms separately.
if display_term then
local display, this_cats = export.insert_source_cat_get_display{
lang = lang,
source = source,
borrowing_type = borrowing_type,
raw = true,
categories = categories,
nocat = nocat,
}
seg = language_link {
lang = source,
term = term1_term,
alt = display,
tr = "-",
}
if lang and not nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories
this_cats = format_categories(this_cats, lang, sort_key, nil, data.force_cat or force_cat)
else
this_cats = ""
end
seg = "<span class=\"etyl\">" .. seg .. this_cats .. "</span>"
else
seg = export.format_source{
lang = lang,
source = source,
borrowing_type = borrowing_type,
sort_key = sort_key,
categories = categories,
nocat = nocat,
}
end
insert(source_segs, seg)
end
return join_segs(source_segs, data.sourceconj or "and")
end
-- Internal implementation of {{cognate}}/{{cog}} template.
function export.format_cognate(data)
return export.format_derived {
sources = data.sources,
terms = data.terms,
sort_key = data.sort_key,
sourceconj = data.sourceconj,
conj = data.conj,
template_name = "cognate",
force_cat = data.force_cat,
}
end
--[==[
Internal implementation of {{derived}}/{{der}} template. This is called externally from [[Module:affix]],
[[Module:affixusex]] and [[Module:see]] and needs to support decorations (qualifiers, labels and references) on the
outside of the sources for use by those modules.
`data` contains the following fields:
* `lang`: The destination language object into which the terms were derived. Used for categorization and can be nil, as
with {{tl|cog}}; in this case, no categories are added.
* `sources`: List of source objects. Most commonly there is only one. If there are multiple, the non-final ones are
handled specially; see `format_sources()`.
* `terms`: List of term objects. Most commonly there is only one. If there are multiple source objects as well as
multiple term objects, the non-final source objects link to the first term object.
* `conj`: Conjunction used to separate multiple terms. '''Required'''. Currently recognized values are `and`, `or`, `,`,
`;`, `/` and `~`.
* `sourceconj`: Conjunction used to separate multiple source languages. Defaults to {"and"}. Currently recognized
values are as for `conj` above.
* `decorations_on_outside`: If specified, any decorations (qualifiers, labels or references) in the first term in
`terms` will be displayed on the outside of (before) the source language(s) in `sources`. Normally this should be
specified if there is only one term possible in `terms`.
* `template_name`: Name of the template invoking this function. Must be specified. Only used for tracking pages.
* `sort_key`: Sort key for categories. Usually nil.
* `categories`: Categories to add to the page. Additional categories may be added to `categories` based on the source
languages ('''in which case `categories` is destructively modified'''). If `lang` is nil, no categories will be
added.
* `nocat`: Don't add any categories to the page.
* `borrowing_type`: Borrowing type used in categories, such as {"learned borrowings"}. Defaults to {"terms derived"}.
* `force_cat`: Force category generation on non-mainspace pages.
]==]
function export.format_derived(data)
local terms = data.terms
local sourcetext = export.format_sources(data)
return export.format_links(terms, data.conj, data.template_name, sourcetext, data.decorations_on_outside)
end
function export.insert_borrowed_cat(categories, lang, source)
if lang_is_source(lang, source) then
return
end
-- If both are the same, we want e.g. [[:Category:English terms borrowed back into English]] not
-- [[:Category:English terms borrowed from English]]; the former is inserted automatically by format_source().
-- The second parameter here doesn't matter as it only affects `display`, which we don't use.
insert(categories, lang:getFullName() .. " terms borrowed from " .. select(2, export.get_display_and_cat_name(source, "raw")))
end
-- Internal implementation of {{borrowed}}/{{bor}} template.
function export.format_borrowed(data)
local categories = {}
if not data.nocat then
local lang = data.lang
for _, source in ipairs(data.sources) do
export.insert_borrowed_cat(categories, lang, source)
end
end
data = shallow_copy(data)
data.categories = categories
return export.format_links(data.terms, data.conj, "borrowed", export.format_sources(data))
end
do
-- Generate the non-ancestor error message.
local function show_language(lang)
local retval = ("%s (%s)"):format(lang:makeCategoryLink(), lang:getCode())
if lang:hasType("etymology-only") then
retval = retval .. (" (an etymology-only language whose regular parent is %s)"):format(
show_language(lang:getParent()))
end
return retval
end
-- Check that `lang` has `otherlang` (which may be an etymology-only language) as an ancestor. Throw an error if
-- not. When `lang` is a family, verifies that `otherlang` is a language in that family.
function export.check_ancestor(lang, otherlang)
-- When `lang` is a family, verify `otherlang` is in that family or in its parent family.
if lang.hasType and lang:hasType("family") then
local family_code = lang:getCode()
local function in_family_code(fcode, other)
if not fcode or fcode == "" then return false end
if other.inFamily and other:inFamily(fcode) then return true end
if other.getFamilyCode and other:getFamilyCode() == fcode then return true end
return false
end
local in_family = in_family_code(family_code, otherlang)
if not in_family then
local parent_code
if lang.getParent then
local parent_family = lang:getParent()
if parent_family and parent_family.getCode then
parent_code = parent_family:getCode()
end
end
if not parent_code and family_code:find("-", 1, true) then
parent_code = family_code:match("^(.+)-[^-]+$")
end
if parent_code then
in_family = in_family_code(parent_code, otherlang)
end
end
if not in_family then
local other_display = (otherlang.getCanonicalName and otherlang:getCanonicalName()) or (otherlang.getCode and otherlang:getCode()) or tostring(otherlang)
local fam_display = (lang.getCanonicalName and lang:getCanonicalName()) or family_code
error(("%s is not in family %s; inherited ancestor under a family must be a language in that family or its parent family.")
:format(other_display, fam_display))
end
return
end
-- FIXME: I don't know if this function works correctly with etym-only languages in `lang`. I have fixed up
-- the module link code appropriately (June 2024) but the remaining logic is untouched.
if lang:hasAncestor(otherlang) then
-- [[Special:WhatLinksHere/Wiktionary:Tracking/etymology/variety]]
-- Track inheritance from varieties of Latin that shouldn't have any descendants (everything except Old Latin, Classical Latin and Vulgar Latin).
if otherlang:getFullCode() == "la" then
otherlang = otherlang:getCode()
if not (otherlang == "itc-ola" or otherlang == "la-cla" or otherlang == "la-vul") then
track("bad ancestor", otherlang)
end
end
return
end
local ancestors = lang:getAncestors()
local postscript
local etym_module_link = lang:hasType("etymology-only") and "[[Module:etymology languages/data]] or " or ""
local module_link = "[[" .. get_language_data_module_name(lang:getFullCode()) .. "]]"
if not ancestors[1] then
postscript = show_language(lang) .. " has no ancestors."
else
local ancestor_list = {}
for _, ancestor in ipairs(ancestors) do
insert(ancestor_list, show_language(ancestor))
end
postscript = ("The ancestor%s of %s %s %s."):format(
ancestors[2] and "s" or "", lang:getCanonicalName(),
ancestors[2] and "are" or "is", concat(ancestor_list, " and "))
end
error(("%s is not set as an ancestor of %s in %s%s. %s")
:format(show_language(otherlang), show_language(lang), etym_module_link, module_link, postscript))
end
end
-- Internal implementation of {{inherited}}/{{inh}} template.
function export.format_inherited(data)
local lang, terms, nocat = data.lang, data.terms, data.nocat
local source = terms[1].lang
local categories = {}
if not nocat then
insert(categories, lang:getFullName() .. " terms inherited from " .. source:getCanonicalName())
end
export.check_ancestor(lang, source)
data = shallow_copy(data)
data.categories = categories
data.source = source
return export.format_links(terms, data.conj, "inherited", export.format_source(data))
end
-- Internal implementation of "misc variant" templates such as {{abbrev}}, {{clipping}}, {{reduplication}} and the like.
function export.format_misc_variant(data)
local lang, notext, terms, cats, parts = data.lang, data.notext, data.terms, data.cats, {}
if not notext then
insert(parts, data.text)
end
if terms[1] then
if not notext then
-- FIXME: If term is given as '-', we should consider displaying just "Clipping" not "Clipping of".
insert(parts, " " .. (data.oftext or "of"))
end
local termparts = {}
-- Make links out of all the parts.
for _, termobj in ipairs(terms) do
local result
if termobj.lang then
result = export.format_derived {
lang = lang,
terms = {termobj},
sources = termobj.termlangs or {termobj.lang},
template_name = "misc_variant",
decorations_on_outside = true,
force_cat = data.force_cat,
}
else
termobj.lang = lang
result = export.format_links({termobj}, nil, "misc_variant")
end
table.insert(termparts, result)
end
local linktext = join_segs(termparts, data.conj)
if not notext and linktext ~= "" then
insert(parts, " ")
end
insert(parts, linktext)
end
local categories = {}
if not data.nocat and cats then
for _, cat in ipairs(cats) do
insert(categories, lang:getFullName() .. " " .. cat)
end
end
if categories[1] then
insert(parts, format_categories(categories, lang, data.sort_key, nil, data.force_cat or force_cat))
end
return concat(parts)
end
-- Implementation of miscellaneous templates such as {{unknown}} and {{onomatopoeia}} that have no associated terms.
function export.format_misc_variant_no_term(data)
local parts = {}
if not data.notext then
insert(parts, data.title)
end
if not data.nocat and data.cat then
local lang, categories = data.lang, {}
insert(categories, lang:getFullName() .. " " .. data.cat)
insert(parts, format_categories(categories, lang, data.sort_key, nil, data.force_cat or force_cat))
end
return concat(parts)
end
return export
bz4oy4imn1osztk04jf87q163ctpr9d
238905
238904
2026-11-13T06:03:15Z
Lee
19
[[:en:Module:etymology]] වෙතින් එක් සංශෝධනයක්
238904
Scribunto
text/plain
local export = {}
-- For testing
local force_cat = false
local debug_track_module = "Module:debug/track"
local languages_module = "Module:languages"
local links_module = "Module:links"
local table_module = "Module:table"
local utilities_module = "Module:utilities"
local concat = table.concat
local insert = table.insert
local new_title = mw.title.new
local function debug_track(...)
debug_track = require(debug_track_module)
return debug_track(...)
end
local function format_categories(...)
format_categories = require(utilities_module).format_categories
return format_categories(...)
end
local function full_link(...)
full_link = require(links_module).full_link
return full_link(...)
end
local function get_language_data_module_name(...)
get_language_data_module_name = require(languages_module).getDataModuleName
return get_language_data_module_name(...)
end
local function get_link_page(...)
get_link_page = require(links_module).get_link_page
return get_link_page(...)
end
local function language_link(...)
language_link = require(links_module).language_link
return language_link(...)
end
local function serial_comma_join(...)
serial_comma_join = require(table_module).serialCommaJoin
return serial_comma_join(...)
end
local function shallow_copy(...)
shallow_copy = require(table_module).shallowCopy
return shallow_copy(...)
end
local function track(page, code)
local tracking_page = "etymology/" .. page
debug_track(tracking_page)
if code then
debug_track(tracking_page .. "/" .. code)
end
end
local function join_segs(segs, conj)
if not segs[2] then
return segs[1]
elseif conj == "and" or conj == "or" then
return serial_comma_join(segs, {conj = conj})
end
local sep
if conj == "," or conj == ";" then
sep = conj .. " "
elseif conj == "/" then
sep = "/"
elseif conj == "~" then
sep = " ~ "
elseif conj then
error(("Internal error: Unrecognized conjunction \"%s\""):format(conj))
else
error(("Internal error: No value supplied for conjunction"):format(conj))
end
return concat(segs, sep)
end
-- Returns true if `lang` is the same as `source`, or a variety of it.
local function lang_is_source(lang, source)
return lang:getCode() == source:getCode() or lang:hasParent(source)
end
--[==[
Format one or more links as specified in `termobjs`, a list of term objects of the format accepted by `full_link()` in
[[Module:links]], including decorations (qualifiers, labels and references). `conj` is used to join multiple terms
and must be specified if there is more than one term. `template_name` is the template name used in debug tracking and
must be specified. Optional `sourcetext` is text to prepend to the concatenated terms, separated by a space if the
concatenated terms are non-empty (which is always the case unless there is a single term with the value "-"). If
`decorations_on_outside` is given, any decorations specified in the first term go on the outside of (i.e before)
`sourcetext`; otherwise they will end up on the inside.
]==]
function export.format_links(termobjs, conj, template_name, sourcetext, decorations_on_outside)
if not template_name then
error("Internal error: Must specify `template_name` to format_links()")
end
for i, termobj in ipairs(termobjs) do
if termobj.lang:hasType("family") or termobj.lang:getFamilyCode() == "qfa-sub" then
if termobj.term and termobj.term ~= "-" then
debug_track(template_name .. "/family-with-term")
end
termobj.term = "-"
end
if termobj.term == "-" then
--[=[
[[Special:WhatLinksHere/Wiktionary:Tracking/cognate/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/derived/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/borrowed/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/calque/no-term]]
]=]
debug_track(template_name .. "/no-term")
termobjs[i] = i == 1 and sourcetext or ""
else
if i == 1 and decorations_on_outside and sourcetext then
termobj.pretext = sourcetext .. " "
sourcetext = nil
end
termobjs[i] = (i == 1 and sourcetext and sourcetext .. " " or "") .. full_link(termobj, "term")
end
end
return join_segs(termobjs, conj)
end
function export.get_display_and_cat_name(source, raw)
local display, cat_name
if source:getCode() == "und" then
display = "undetermined"
cat_name = "other languages"
elseif source:getCode() == "mul" then
display = raw and "translingual" or "[[w:Translingualism|translingual]]"
cat_name = "Translingual"
elseif source:getCode() == "mul-tax" then
display = raw and "taxonomic name" or "[[w:Biological nomenclature|taxonomic name]]"
cat_name = "taxonomic names"
else
display = raw and source:getCanonicalName() or source:makeWikipediaLink()
cat_name = source:getDisplayForm()
end
return display, cat_name
end
function export.insert_source_cat_get_display(data)
local categories, lang, source = data.categories, data.lang, data.source
local display, cat_name = export.get_display_and_cat_name(source, data.raw)
if lang and not data.nocat then
-- Add the category, but only if there is a current language
if not categories then
categories = {}
end
local langname = lang:getFullName()
-- If `lang` is an etym-only language, we need to check both it and its parent full language against `source`.
-- Otherwise if e.g. `lang` is Medieval Latin and `source` is Latin, we'll end up wrongly constructing a
-- category 'Latin terms derived from Latin'.
insert(categories, langname .. (
lang_is_source(lang, source) and " terms borrowed back into " .. cat_name or
" " .. (data.borrowing_type or "terms derived") .. " from " .. cat_name
))
end
return display, categories
end
function export.format_source(data)
local lang, sort_key = data.lang, data.sort_key
-- [[Special:WhatLinksHere/Wiktionary:Tracking/etymology/sortkey]]
if sort_key then
track("sortkey")
end
local display, categories = export.insert_source_cat_get_display(data)
if lang and not data.nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories
categories = format_categories(categories, lang, sort_key, nil, data.force_cat or force_cat)
else
categories = ""
end
return "<span class=\"etyl\">" .. display .. categories .. "</span>"
end
--[==[
Format sources for etymology templates such as {{tl|bor}}, {{tl|der}}, {{tl|inh}} and {{tl|cog}}. There may potentially
be more than one source language (except currently {{tl|inh}}, which doesn't support it because it doesn't really
make sense). In that case, all but the last source language is linked to the first term, but only if there is such a
term and this linking makes sense, i.e. either (1) the term page exists after stripping diacritics according to the
source language in question, or (2) the result of stripping diacritics according to the source language in question
results in a different page from the same process applied with the last source language. For example, {{m|ru|соля́нка}}
will link to [[солянка]] but {{m|en|соля́нка}} will link to [[соля́нка]] with an accent, and since they are different
pages, the use of English as a non-final source with term 'соля́нка' will link to [[соля́нка]] even though it doesn't
exist, on the assumption that it is merely a redlink that might exist. If none of the above criteria apply, a non-final
source language will be linked to the Wikipedia entry for the language, just as final source languages always are.
`data` contains the following fields:
* `lang`: The destination language object into which the terms were borrowed, inherited or otherwise derived. Used for
categorization and can be nil, as with {{tl|cog}}.
* `sources`: List of source objects. Most commonly there is only one. If there are multiple, the non-final ones are
handled specially; see above.
* `terms`: List of term objects. Most commonly there is only one. If there are multiple source objects as well as
multiple term objects, the non-final source objects link to the first term object.
* `sort_key`: Sort key for categories. Usually nil.
* `categories`: Categories to add to the page. Additional categories may be added to `categories` based on the source
languages ('''in which case `categories` is destructively modified'''). If `lang` is nil, no categories will be
added.
* `nocat`: Don't add any categories to the page.
* `sourceconj`: Conjunction used to separate multiple source languages. Defaults to {"and"}. Currently recognized
values are `and`, `or`, `,`, `;`, `/` and `~`.
* `borrowing_type`: Borrowing type used in categories, such as {"learned borrowings"}. Defaults to {"terms derived"}.
* `force_cat`: Force category generation on non-mainspace pages.
]==]
function export.format_sources(data)
local lang, sources, terms, borrowing_type, sort_key, categories, nocat =
data.lang, data.sources, data.terms, data.borrowing_type, data.sort_key, data.categories, data.nocat
local term1, sources_n, source_segs = terms[1], #sources, {}
local final_link_page
local term1_term, term1_sc = term1.term, term1.sc
if sources_n > 1 and term1_term and term1_term ~= "-" then
final_link_page = get_link_page(term1_term, sources[sources_n], term1_sc)
end
for i, source in ipairs(sources) do
local seg, display_term
if i < sources_n and term1_term and term1_term ~= "-" then
local link_page = get_link_page(term1_term, source, term1_sc)
display_term = (link_page ~= final_link_page) or (link_page and not not new_title(link_page):getContent())
end
-- TODO: if the display forms or transliterations are different, display the terms separately.
if display_term then
local display, this_cats = export.insert_source_cat_get_display{
lang = lang,
source = source,
borrowing_type = borrowing_type,
raw = true,
categories = categories,
nocat = nocat,
}
seg = language_link {
lang = source,
term = term1_term,
alt = display,
tr = "-",
}
if lang and not nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories
this_cats = format_categories(this_cats, lang, sort_key, nil, data.force_cat or force_cat)
else
this_cats = ""
end
seg = "<span class=\"etyl\">" .. seg .. this_cats .. "</span>"
else
seg = export.format_source{
lang = lang,
source = source,
borrowing_type = borrowing_type,
sort_key = sort_key,
categories = categories,
nocat = nocat,
}
end
insert(source_segs, seg)
end
return join_segs(source_segs, data.sourceconj or "and")
end
-- Internal implementation of {{cognate}}/{{cog}} template.
function export.format_cognate(data)
return export.format_derived {
sources = data.sources,
terms = data.terms,
sort_key = data.sort_key,
sourceconj = data.sourceconj,
conj = data.conj,
template_name = "cognate",
force_cat = data.force_cat,
}
end
--[==[
Internal implementation of {{derived}}/{{der}} template. This is called externally from [[Module:affix]],
[[Module:affixusex]] and [[Module:see]] and needs to support decorations (qualifiers, labels and references) on the
outside of the sources for use by those modules.
`data` contains the following fields:
* `lang`: The destination language object into which the terms were derived. Used for categorization and can be nil, as
with {{tl|cog}}; in this case, no categories are added.
* `sources`: List of source objects. Most commonly there is only one. If there are multiple, the non-final ones are
handled specially; see `format_sources()`.
* `terms`: List of term objects. Most commonly there is only one. If there are multiple source objects as well as
multiple term objects, the non-final source objects link to the first term object.
* `conj`: Conjunction used to separate multiple terms. '''Required'''. Currently recognized values are `and`, `or`, `,`,
`;`, `/` and `~`.
* `sourceconj`: Conjunction used to separate multiple source languages. Defaults to {"and"}. Currently recognized
values are as for `conj` above.
* `decorations_on_outside`: If specified, any decorations (qualifiers, labels or references) in the first term in
`terms` will be displayed on the outside of (before) the source language(s) in `sources`. Normally this should be
specified if there is only one term possible in `terms`.
* `template_name`: Name of the template invoking this function. Must be specified. Only used for tracking pages.
* `sort_key`: Sort key for categories. Usually nil.
* `categories`: Categories to add to the page. Additional categories may be added to `categories` based on the source
languages ('''in which case `categories` is destructively modified'''). If `lang` is nil, no categories will be
added.
* `nocat`: Don't add any categories to the page.
* `borrowing_type`: Borrowing type used in categories, such as {"learned borrowings"}. Defaults to {"terms derived"}.
* `force_cat`: Force category generation on non-mainspace pages.
]==]
function export.format_derived(data)
local terms = data.terms
local sourcetext = export.format_sources(data)
return export.format_links(terms, data.conj, data.template_name, sourcetext, data.decorations_on_outside)
end
function export.insert_borrowed_cat(categories, lang, source)
if lang_is_source(lang, source) then
return
end
-- If both are the same, we want e.g. [[:Category:English terms borrowed back into English]] not
-- [[:Category:English terms borrowed from English]]; the former is inserted automatically by format_source().
-- The second parameter here doesn't matter as it only affects `display`, which we don't use.
insert(categories, lang:getFullName() .. " terms borrowed from " .. select(2, export.get_display_and_cat_name(source, "raw")))
end
-- Internal implementation of {{borrowed}}/{{bor}} template.
function export.format_borrowed(data)
local categories = {}
if not data.nocat then
local lang = data.lang
for _, source in ipairs(data.sources) do
export.insert_borrowed_cat(categories, lang, source)
end
end
data = shallow_copy(data)
data.categories = categories
return export.format_links(data.terms, data.conj, "borrowed", export.format_sources(data))
end
do
-- Generate the non-ancestor error message.
local function show_language(lang)
local retval = ("%s (%s)"):format(lang:makeCategoryLink(), lang:getCode())
if lang:hasType("etymology-only") then
retval = retval .. (" (an etymology-only language whose regular parent is %s)"):format(
show_language(lang:getParent()))
end
return retval
end
-- Check that `lang` has `otherlang` (which may be an etymology-only language) as an ancestor. Throw an error if
-- not. When `lang` is a family, verifies that `otherlang` is a language in that family.
function export.check_ancestor(lang, otherlang)
-- When `lang` is a family, verify `otherlang` is in that family or in its parent family.
if lang.hasType and lang:hasType("family") then
local family_code = lang:getCode()
local function in_family_code(fcode, other)
if not fcode or fcode == "" then return false end
if other.inFamily and other:inFamily(fcode) then return true end
if other.getFamilyCode and other:getFamilyCode() == fcode then return true end
return false
end
local in_family = in_family_code(family_code, otherlang)
if not in_family then
local parent_code
if lang.getParent then
local parent_family = lang:getParent()
if parent_family and parent_family.getCode then
parent_code = parent_family:getCode()
end
end
if not parent_code and family_code:find("-", 1, true) then
parent_code = family_code:match("^(.+)-[^-]+$")
end
if parent_code then
in_family = in_family_code(parent_code, otherlang)
end
end
if not in_family then
local other_display = (otherlang.getCanonicalName and otherlang:getCanonicalName()) or (otherlang.getCode and otherlang:getCode()) or tostring(otherlang)
local fam_display = (lang.getCanonicalName and lang:getCanonicalName()) or family_code
error(("%s is not in family %s; inherited ancestor under a family must be a language in that family or its parent family.")
:format(other_display, fam_display))
end
return
end
-- FIXME: I don't know if this function works correctly with etym-only languages in `lang`. I have fixed up
-- the module link code appropriately (June 2024) but the remaining logic is untouched.
if lang:hasAncestor(otherlang) then
-- [[Special:WhatLinksHere/Wiktionary:Tracking/etymology/variety]]
-- Track inheritance from varieties of Latin that shouldn't have any descendants (everything except Old Latin, Classical Latin and Vulgar Latin).
if otherlang:getFullCode() == "la" then
otherlang = otherlang:getCode()
if not (otherlang == "itc-ola" or otherlang == "la-cla" or otherlang == "la-vul") then
track("bad ancestor", otherlang)
end
end
return
end
local ancestors = lang:getAncestors()
local postscript
local etym_module_link = lang:hasType("etymology-only") and "[[Module:etymology languages/data]] or " or ""
local module_link = "[[" .. get_language_data_module_name(lang:getFullCode()) .. "]]"
if not ancestors[1] then
postscript = show_language(lang) .. " has no ancestors."
else
local ancestor_list = {}
for _, ancestor in ipairs(ancestors) do
insert(ancestor_list, show_language(ancestor))
end
postscript = ("The ancestor%s of %s %s %s."):format(
ancestors[2] and "s" or "", lang:getCanonicalName(),
ancestors[2] and "are" or "is", concat(ancestor_list, " and "))
end
error(("%s is not set as an ancestor of %s in %s%s. %s")
:format(show_language(otherlang), show_language(lang), etym_module_link, module_link, postscript))
end
end
-- Internal implementation of {{inherited}}/{{inh}} template.
function export.format_inherited(data)
local lang, terms, nocat = data.lang, data.terms, data.nocat
local source = terms[1].lang
local categories = {}
if not nocat then
insert(categories, lang:getFullName() .. " terms inherited from " .. source:getCanonicalName())
end
export.check_ancestor(lang, source)
data = shallow_copy(data)
data.categories = categories
data.source = source
return export.format_links(terms, data.conj, "inherited", export.format_source(data))
end
-- Internal implementation of "misc variant" templates such as {{abbrev}}, {{clipping}}, {{reduplication}} and the like.
function export.format_misc_variant(data)
local lang, notext, terms, cats, parts = data.lang, data.notext, data.terms, data.cats, {}
if not notext then
insert(parts, data.text)
end
if terms[1] then
if not notext then
-- FIXME: If term is given as '-', we should consider displaying just "Clipping" not "Clipping of".
insert(parts, " " .. (data.oftext or "of"))
end
local termparts = {}
-- Make links out of all the parts.
for _, termobj in ipairs(terms) do
local result
if termobj.lang then
result = export.format_derived {
lang = lang,
terms = {termobj},
sources = termobj.termlangs or {termobj.lang},
template_name = "misc_variant",
decorations_on_outside = true,
force_cat = data.force_cat,
}
else
termobj.lang = lang
result = export.format_links({termobj}, nil, "misc_variant")
end
table.insert(termparts, result)
end
local linktext = join_segs(termparts, data.conj)
if not notext and linktext ~= "" then
insert(parts, " ")
end
insert(parts, linktext)
end
local categories = {}
if not data.nocat and cats then
for _, cat in ipairs(cats) do
insert(categories, lang:getFullName() .. " " .. cat)
end
end
if categories[1] then
insert(parts, format_categories(categories, lang, data.sort_key, nil, data.force_cat or force_cat))
end
return concat(parts)
end
-- Implementation of miscellaneous templates such as {{unknown}} and {{onomatopoeia}} that have no associated terms.
function export.format_misc_variant_no_term(data)
local parts = {}
if not data.notext then
insert(parts, data.title)
end
if not data.nocat and data.cat then
local lang, categories = data.lang, {}
insert(categories, lang:getFullName() .. " " .. data.cat)
insert(parts, format_categories(categories, lang, data.sort_key, nil, data.force_cat or force_cat))
end
return concat(parts)
end
return export
bz4oy4imn1osztk04jf87q163ctpr9d
238906
238905
2026-11-13T06:03:42Z
Lee
19
පැරණි සංස්කරණයකින් ගත් කොටස්...
238906
Scribunto
text/plain
local export = {}
-- For testing
local force_cat = false
local m_sinhala = require("Module:sinhala")
local debug_track_module = "Module:debug/track"
local languages_module = "Module:languages"
local links_module = "Module:links"
local table_module = "Module:table"
local utilities_module = "Module:utilities"
local concat = table.concat
local insert = table.insert
local new_title = mw.title.new
local function debug_track(...)
debug_track = require(debug_track_module)
return debug_track(...)
end
local function format_categories(...)
format_categories = require(utilities_module).format_categories
return format_categories(...)
end
local function format_qualifiers(...)
format_qualifiers = require(pron_qualifier_module).format_qualifiers
return format_qualifiers(...)
end
local function format_qualifiers(...)
format_qualifiers = require(pron_qualifier_module).format_qualifiers
return format_qualifiers(...)
end
local function full_link(...)
full_link = require(links_module).full_link
return full_link(...)
end
local function get_language_data_module_name(...)
get_language_data_module_name = require(languages_module).getDataModuleName
return get_language_data_module_name(...)
end
local function get_link_page(...)
get_link_page = require(links_module).get_link_page
return get_link_page(...)
end
local function language_link(...)
language_link = require(links_module).language_link
return language_link(...)
end
local function serial_comma_join(...)
serial_comma_join = require(table_module).serialCommaJoin
return serial_comma_join(...)
end
local function shallow_copy(...)
shallow_copy = require(table_module).shallowCopy
return shallow_copy(...)
end
local function track(page, code)
local tracking_page = "etymology/" .. page
debug_track(tracking_page)
if code then
debug_track(tracking_page .. "/" .. code)
end
end
local function join_segs(segs, conj)
if not segs[2] then
return segs[1]
elseif conj == "and" or conj == "or" then
return serial_comma_join(segs, {conj = conj})
end
local sep
if conj == "," or conj == ";" then
sep = conj .. " "
elseif conj == "/" then
sep = "/"
elseif conj == "~" then
sep = " ~ "
elseif conj then
error(("Internal error: Unrecognized conjunction \"%s\""):format(conj))
else
error(("Internal error: No value supplied for conjunction"):format(conj))
end
return concat(segs, sep)
end
-- Returns true if `lang` is the same as `source`, or a variety of it.
local function lang_is_source(lang, source)
return lang:getCode() == source:getCode() or lang:hasParent(source)
end
--[==[
Format one or more links as specified in `termobjs`, a list of term objects of the format accepted by `full_link()` in
[[Module:links]], including decorations (qualifiers, labels and references). `conj` is used to join multiple terms
and must be specified if there is more than one term. `template_name` is the template name used in debug tracking and
must be specified. Optional `sourcetext` is text to prepend to the concatenated terms, separated by a space if the
concatenated terms are non-empty (which is always the case unless there is a single term with the value "-"). If
`decorations_on_outside` is given, any decorations specified in the first term go on the outside of (i.e before)
`sourcetext`; otherwise they will end up on the inside.
]==]
function export.format_links(termobjs, conj, template_name, sourcetext, decorations_on_outside)
if not template_name then
error("Internal error: Must specify `template_name` to format_links()")
end
for i, termobj in ipairs(termobjs) do
if termobj.lang:hasType("family") or termobj.lang:getFamilyCode() == "qfa-sub" then
if termobj.term and termobj.term ~= "-" then
debug_track(template_name .. "/family-with-term")
end
termobj.term = "-"
end
if termobj.term == "-" then
--[=[
[[Special:WhatLinksHere/Wiktionary:Tracking/cognate/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/derived/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/borrowed/no-term]]
[[Special:WhatLinksHere/Wiktionary:Tracking/calque/no-term]]
]=]
debug_track(template_name .. "/no-term")
termobjs[i] = i == 1 and sourcetext or ""
else
if i == 1 and decorations_on_outside and sourcetext then
termobj.pretext = sourcetext .. " "
sourcetext = nil
end
termobjs[i] = (i == 1 and sourcetext and sourcetext .. " " or "") .. full_link(termobj, "term")
end
end
return join_segs(termobjs, conj)
end
function export.get_display_and_cat_name(source, raw)
local display, cat_name
if source:getCode() == "und" then
display = "undetermined"
cat_name = "other languages"
elseif source:getCode() == "mul" then
display = raw and "translingual" or "[[w:Translingualism|translingual]]"
cat_name = "Translingual"
elseif source:getCode() == "mul-tax" then
display = raw and "taxonomic name" or "[[w:Biological nomenclature|taxonomic name]]"
cat_name = "taxonomic names"
else
display = raw and source:getCanonicalName() or source:makeWikipediaLink()
cat_name = source:getDisplayForm()
end
return display, cat_name
end
function export.insert_source_cat_get_display(data)
local categories, lang, source = data.categories, data.lang, data.source
local display, cat_name = export.get_display_and_cat_name(source, data.raw)
if lang and not data.nocat then
-- Add the category, but only if there is a current language
if not categories then
categories = {}
end
local langname = lang:getFullName()
-- If `lang` is an etym-only language, we need to check both it and its parent full language against `source`.
-- Otherwise if e.g. `lang` is Medieval Latin and `source` is Latin, we'll end up wrongly constructing a
-- category 'Latin terms derived from Latin'.
insert(categories, langname .. (
lang_is_source(lang, source) and " යෙදුම්, " .. cat_name .. " වෙතට යළි ණයට ගත්" or
" යෙදුම්, " .. cat_name .. " වෙතින් " .. (m_sinhala.sinhala(data.borrowing_type) or "ව්යුත්පන්න")
))
end
return display, categories
end
function export.format_source(data)
local lang, sort_key = data.lang, data.sort_key
-- [[Special:WhatLinksHere/Wiktionary:Tracking/etymology/sortkey]]
if sort_key then
track("sortkey")
end
local display, categories = export.insert_source_cat_get_display(data)
if lang and not data.nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories
categories = format_categories(categories, lang, sort_key, nil, data.force_cat or force_cat)
else
categories = ""
end
return "<span class=\"etyl\">" .. display .. categories .. "</span>"
end
--[==[
Format sources for etymology templates such as {{tl|bor}}, {{tl|der}}, {{tl|inh}} and {{tl|cog}}. There may potentially
be more than one source language (except currently {{tl|inh}}, which doesn't support it because it doesn't really
make sense). In that case, all but the last source language is linked to the first term, but only if there is such a
term and this linking makes sense, i.e. either (1) the term page exists after stripping diacritics according to the
source language in question, or (2) the result of stripping diacritics according to the source language in question
results in a different page from the same process applied with the last source language. For example, {{m|ru|соля́нка}}
will link to [[солянка]] but {{m|en|соля́нка}} will link to [[соля́нка]] with an accent, and since they are different
pages, the use of English as a non-final source with term 'соля́нка' will link to [[соля́нка]] even though it doesn't
exist, on the assumption that it is merely a redlink that might exist. If none of the above criteria apply, a non-final
source language will be linked to the Wikipedia entry for the language, just as final source languages always are.
`data` contains the following fields:
* `lang`: The destination language object into which the terms were borrowed, inherited or otherwise derived. Used for
categorization and can be nil, as with {{tl|cog}}.
* `sources`: List of source objects. Most commonly there is only one. If there are multiple, the non-final ones are
handled specially; see above.
* `terms`: List of term objects. Most commonly there is only one. If there are multiple source objects as well as
multiple term objects, the non-final source objects link to the first term object.
* `sort_key`: Sort key for categories. Usually nil.
* `categories`: Categories to add to the page. Additional categories may be added to `categories` based on the source
languages ('''in which case `categories` is destructively modified'''). If `lang` is nil, no categories will be
added.
* `nocat`: Don't add any categories to the page.
* `sourceconj`: Conjunction used to separate multiple source languages. Defaults to {"and"}. Currently recognized
values are `and`, `or`, `,`, `;`, `/` and `~`.
* `borrowing_type`: Borrowing type used in categories, such as {"learned borrowings"}. Defaults to {"terms derived"}.
* `force_cat`: Force category generation on non-mainspace pages.
]==]
function export.format_sources(data)
local lang, sources, terms, borrowing_type, sort_key, categories, nocat =
data.lang, data.sources, data.terms, data.borrowing_type, data.sort_key, data.categories, data.nocat
local term1, sources_n, source_segs = terms[1], #sources, {}
local final_link_page
local term1_term, term1_sc = term1.term, term1.sc
if sources_n > 1 and term1_term and term1_term ~= "-" then
final_link_page = get_link_page(term1_term, sources[sources_n], term1_sc)
end
for i, source in ipairs(sources) do
local seg, display_term
if i < sources_n and term1_term and term1_term ~= "-" then
local link_page = get_link_page(term1_term, source, term1_sc)
display_term = (link_page ~= final_link_page) or (link_page and not not new_title(link_page):getContent())
end
-- TODO: if the display forms or transliterations are different, display the terms separately.
if display_term then
local display, this_cats = export.insert_source_cat_get_display{
lang = lang,
source = source,
borrowing_type = borrowing_type,
raw = true,
categories = categories,
nocat = nocat,
}
seg = language_link {
lang = source,
term = term1_term,
alt = display,
tr = "-",
}
if lang and not nocat then
-- Format categories, but only if there is a current language; {{cog}} currently gets no categories
this_cats = format_categories(this_cats, lang, sort_key, nil, data.force_cat or force_cat)
else
this_cats = ""
end
seg = "<span class=\"etyl\">" .. seg .. this_cats .. "</span>"
else
seg = export.format_source{
lang = lang,
source = source,
borrowing_type = borrowing_type,
sort_key = sort_key,
categories = categories,
nocat = nocat,
}
end
insert(source_segs, seg)
end
return join_segs(source_segs, data.sourceconj or "and")
end
-- Internal implementation of {{cognate}}/{{cog}} template.
function export.format_cognate(data)
return export.format_derived {
sources = data.sources,
terms = data.terms,
sort_key = data.sort_key,
sourceconj = data.sourceconj,
conj = data.conj,
template_name = "cognate",
force_cat = data.force_cat,
}
end
--[==[
Internal implementation of {{derived}}/{{der}} template. This is called externally from [[Module:affix]],
[[Module:affixusex]] and [[Module:see]] and needs to support decorations (qualifiers, labels and references) on the
outside of the sources for use by those modules.
`data` contains the following fields:
* `lang`: The destination language object into which the terms were derived. Used for categorization and can be nil, as
with {{tl|cog}}; in this case, no categories are added.
* `sources`: List of source objects. Most commonly there is only one. If there are multiple, the non-final ones are
handled specially; see `format_sources()`.
* `terms`: List of term objects. Most commonly there is only one. If there are multiple source objects as well as
multiple term objects, the non-final source objects link to the first term object.
* `conj`: Conjunction used to separate multiple terms. '''Required'''. Currently recognized values are `and`, `or`, `,`,
`;`, `/` and `~`.
* `sourceconj`: Conjunction used to separate multiple source languages. Defaults to {"and"}. Currently recognized
values are as for `conj` above.
* `decorations_on_outside`: If specified, any decorations (qualifiers, labels or references) in the first term in
`terms` will be displayed on the outside of (before) the source language(s) in `sources`. Normally this should be
specified if there is only one term possible in `terms`.
* `template_name`: Name of the template invoking this function. Must be specified. Only used for tracking pages.
* `sort_key`: Sort key for categories. Usually nil.
* `categories`: Categories to add to the page. Additional categories may be added to `categories` based on the source
languages ('''in which case `categories` is destructively modified'''). If `lang` is nil, no categories will be
added.
* `nocat`: Don't add any categories to the page.
* `borrowing_type`: Borrowing type used in categories, such as {"learned borrowings"}. Defaults to {"terms derived"}.
* `force_cat`: Force category generation on non-mainspace pages.
]==]
function export.format_derived(data)
local terms = data.terms
local sourcetext = export.format_sources(data)
return export.format_links(terms, data.conj, data.template_name, sourcetext, data.decorations_on_outside)
end
function export.insert_borrowed_cat(categories, lang, source)
if lang_is_source(lang, source) then
return
end
-- If both are the same, we want e.g. [[:Category:English terms borrowed back into English]] not
-- [[:Category:English terms borrowed from English]]; the former is inserted automatically by format_source().
-- The second parameter here doesn't matter as it only affects `display`, which we don't use.
insert(categories, ("%s යෙදුම්, %s වෙතින් ණයට ගත්"):format(lang:getFullName(), select(2, export.get_display_and_cat_name(source, "raw"))))
end
-- Internal implementation of {{borrowed}}/{{bor}} template.
function export.format_borrowed(data)
local categories = {}
if not data.nocat then
local lang = data.lang
for _, source in ipairs(data.sources) do
export.insert_borrowed_cat(categories, lang, source)
end
end
data = shallow_copy(data)
data.categories = categories
return export.format_links(data.terms, data.conj, "borrowed", export.format_sources(data))
end
do
-- Generate the non-ancestor error message.
local function show_language(lang)
local retval = ("%s (%s)"):format(lang:makeCategoryLink(), lang:getCode())
if lang:hasType("etymology-only") then
retval = retval .. (" (an etymology-only language whose regular parent is %s)"):format(
show_language(lang:getParent()))
end
return retval
end
-- Check that `lang` has `otherlang` (which may be an etymology-only language) as an ancestor. Throw an error if
-- not. When `lang` is a family, verifies that `otherlang` is a language in that family.
function export.check_ancestor(lang, otherlang)
-- When `lang` is a family, verify `otherlang` is in that family or in its parent family.
if lang.hasType and lang:hasType("family") then
local family_code = lang:getCode()
local function in_family_code(fcode, other)
if not fcode or fcode == "" then return false end
if other.inFamily and other:inFamily(fcode) then return true end
if other.getFamilyCode and other:getFamilyCode() == fcode then return true end
return false
end
local in_family = in_family_code(family_code, otherlang)
if not in_family then
local parent_code
if lang.getParent then
local parent_family = lang:getParent()
if parent_family and parent_family.getCode then
parent_code = parent_family:getCode()
end
end
if not parent_code and family_code:find("-", 1, true) then
parent_code = family_code:match("^(.+)-[^-]+$")
end
if parent_code then
in_family = in_family_code(parent_code, otherlang)
end
end
if not in_family then
local other_display = (otherlang.getCanonicalName and otherlang:getCanonicalName()) or (otherlang.getCode and otherlang:getCode()) or tostring(otherlang)
local fam_display = (lang.getCanonicalName and lang:getCanonicalName()) or family_code
error(("%s is not in family %s; inherited ancestor under a family must be a language in that family or its parent family.")
:format(other_display, fam_display))
end
return
end
-- FIXME: I don't know if this function works correctly with etym-only languages in `lang`. I have fixed up
-- the module link code appropriately (June 2024) but the remaining logic is untouched.
if lang:hasAncestor(otherlang) then
-- [[Special:WhatLinksHere/Wiktionary:Tracking/etymology/variety]]
-- Track inheritance from varieties of Latin that shouldn't have any descendants (everything except Old Latin, Classical Latin and Vulgar Latin).
if otherlang:getFullCode() == "la" then
otherlang = otherlang:getCode()
if not (otherlang == "itc-ola" or otherlang == "la-cla" or otherlang == "la-vul") then
track("bad ancestor", otherlang)
end
end
return
end
local ancestors = lang:getAncestors()
local postscript
local etym_module_link = lang:hasType("etymology-only") and "[[Module:etymology languages/data]] or " or ""
local module_link = "[[" .. get_language_data_module_name(lang:getFullCode()) .. "]]"
if not ancestors[1] then
postscript = show_language(lang) .. " has no ancestors."
else
local ancestor_list = {}
for _, ancestor in ipairs(ancestors) do
insert(ancestor_list, show_language(ancestor))
end
postscript = ("The ancestor%s of %s %s %s."):format(
ancestors[2] and "s" or "", lang:getCanonicalName(),
ancestors[2] and "are" or "is", concat(ancestor_list, " and "))
end
error(("%s is not set as an ancestor of %s in %s%s. %s")
:format(show_language(otherlang), show_language(lang), etym_module_link, module_link, postscript))
end
end
-- Internal implementation of {{inherited}}/{{inh}} template.
function export.format_inherited(data)
local lang, terms, nocat = data.lang, data.terms, data.nocat
local source = terms[1].lang
local categories = {}
if not nocat then
insert(categories, ("%s යෙදුම්, %s වෙතින් උරුම වූ"):format(lang:getFullName(), source:getCanonicalName()))
end
export.check_ancestor(lang, source)
data = shallow_copy(data)
data.categories = categories
data.source = source
return export.format_links(terms, data.conj, "inherited", export.format_source(data))
end
-- Internal implementation of "misc variant" templates such as {{abbrev}}, {{clipping}}, {{reduplication}} and the like.
function export.format_misc_variant(data)
local lang, notext, terms, cats, parts = data.lang, data.notext, data.terms, data.cats, {}
if not notext then
insert(parts, data.text)
end
if terms[1] then
if not notext then
-- FIXME: If term is given as '-', we should consider displaying just "Clipping" not "Clipping of".
insert(parts, " " .. (data.oftext or "of"))
end
local termparts = {}
-- Make links out of all the parts.
for _, termobj in ipairs(terms) do
local result
if termobj.lang then
result = export.format_derived {
lang = lang,
terms = {termobj},
sources = termobj.termlangs or {termobj.lang},
template_name = "misc_variant",
decorations_on_outside = true,
force_cat = data.force_cat,
}
else
termobj.lang = lang
result = export.format_links({termobj}, nil, "misc_variant")
end
table.insert(termparts, result)
end
local linktext = join_segs(termparts, data.conj)
if not notext and linktext ~= "" then
insert(parts, " ")
end
insert(parts, linktext)
end
local categories = {}
if not data.nocat and cats then
for _, cat in ipairs(cats) do
insert(categories, lang:getFullName() .. " " .. cat)
end
end
if categories[1] then
insert(parts, format_categories(categories, lang, data.sort_key, nil, data.force_cat or force_cat))
end
return concat(parts)
end
-- Implementation of miscellaneous templates such as {{unknown}} and {{onomatopoeia}} that have no associated terms.
function export.format_misc_variant_no_term(data)
local parts = {}
if not data.notext then
insert(parts, data.title)
end
if not data.nocat and data.cat then
local lang, categories = data.lang, {}
insert(categories, lang:getFullName() .. " " .. data.cat)
insert(parts, format_categories(categories, lang, data.sort_key, nil, data.force_cat or force_cat))
end
return concat(parts)
end
return export
tfx02txjouvxx1gyy3p1chja5a5kl1e
සැකිල්ල:sa-alt/documentation
10
8528
238858
211344
2026-08-08T18:49:00Z
en>Benwing2
0
fill out
238858
wikitext
text/x-wiki
{{documentation subpage}}
{{uses lua|Module:sa-headword|Module:sa-convert}}
This template provides readings of Sanskrit lemmas in various scripts.
==Parameters==
;{{para|Deva}}
:Devanagari form of the lemma, if it is not in Devanagari. Not often needed; if omitted, the module will auto-convert the lemma into Devanagari. Only specify this if the auto-converted form is incorrect. Separate multiple alternatives with a comma.
;{{para|as-Beng}}
:Assamese form of the lemma, if it is not written in the Assamese variant of the Bengali script. Not often needed; if omitted, the module will auto-convert the lemma into the Assamese script variant. Only specify this if the auto-converted form is incorrect. Separate multiple alternatives with a comma.
;{{para|Bali}}
:Balinese form of the lemma, if it is not written in the Balinese script. Not often needed; if omitted, the module will auto-convert the lemma into the Balinese script. Only specify this if the auto-converted form is incorrect. Separate multiple alternatives with a comma.
;{{para|Beng}}
:Same for Bengali script.
;{{para|Bhks}}
:Same for Bhaiksuki script.
;{{para|Brah}}
:Same for Brahmi script.
;{{para|Gujr}}
:Same for Gujarati script.
;{{para|Guru}}
:Same for Gurmukhi script.
;{{para|Gran}}
:Same for Grantha script.
;{{para|Java}}
:Same for Javanese script.
;{{para|Khmr}}
:Same for Khmer script.
;{{para|Knda}}
:Same for Kannada script.
;{{para|Kthi}}
:Same for Kaithi script.
;{{para|Laoo}}
:Same for Lao script.
;{{para|Mlym}}
:Same for Malayalam script.
;{{para|mnc-Mong}}
:Same for the Manchu variant of the Mongolian script.
;{{para|Modi}}
:Same for Modi script.
;{{para|Mong}}
:Same for Mongolian script.
;{{para|Mymr}}
:Same for Burmese script.
;{{para|Nand}}
:Same for Nandinagari script.
;{{para|Newa}}
:Same for Newa script.
;{{para|Orya}}
:Same for Odia script.
;{{para|Saur}}
:Same for Saurashtra script.
;{{para|Shrd}}
:Same for Sharada script.
;{{para|Sidd}}
:Same for Siddham script.
;{{para|Sinh}}
:Same for Sinhalese script.
;{{para|Soyo}}
:Same for Soyombo script.
;{{para|Takr}}
:Same for Takri script.
;{{para|Taml}}
:Same for Tamil script.
;{{para|Telu}}
:Same for Telugu script.
;{{para|Thai}}
:Same for Thai script.
;{{para|Tibt}}
:Same for Tibetan script.
;{{para|Tirh}}
:Same for Tirhuta script.
;{{para|Zanb}}
:Same for Zanzibar Square script.
;{{para|Hani}}
:Same for Chinese script, except there is no auto-generated form.
;{{para|Kawi}}
:Same for Kawi script, except there is no auto-generated form.
;{{para|Khar}}
:Same for Kharoshthi script, except there is no auto-generated form.
;{{para|Lana}}
:Same for Tai Tham script, except there is no auto-generated form.
;{{para|Marc}}
:Same for Marchen script, except there is no auto-generated form.
;{{para|Phag}}
:Same for Phags-pa script, except there is no auto-generated form.
;{{para|Ranj}}
:Same for Ranjana script, except there is no auto-generated form (and this script is not yet encoded in Unicode, so it cannot be represented).
;{{para|Tang}}
:Same for Tangut script, except there is no auto-generated form.
;{{para|Tutg}}
:Same for Tigalari script, except there is no auto-generated form.
;{{para|xwo-Mong}}
:Same for the Clear Script variant of the Mongolian script, except there is no auto-generated form.
{{tcat|orthvar}}
5kxvu5i3ekr5bwugyb8d2g7xppl7md7
238859
238858
2026-11-13T04:10:00Z
Lee
19
[[:en:Template:sa-alt/documentation]] වෙතින් එක් සංශෝධනයක්
238858
wikitext
text/x-wiki
{{documentation subpage}}
{{uses lua|Module:sa-headword|Module:sa-convert}}
This template provides readings of Sanskrit lemmas in various scripts.
==Parameters==
;{{para|Deva}}
:Devanagari form of the lemma, if it is not in Devanagari. Not often needed; if omitted, the module will auto-convert the lemma into Devanagari. Only specify this if the auto-converted form is incorrect. Separate multiple alternatives with a comma.
;{{para|as-Beng}}
:Assamese form of the lemma, if it is not written in the Assamese variant of the Bengali script. Not often needed; if omitted, the module will auto-convert the lemma into the Assamese script variant. Only specify this if the auto-converted form is incorrect. Separate multiple alternatives with a comma.
;{{para|Bali}}
:Balinese form of the lemma, if it is not written in the Balinese script. Not often needed; if omitted, the module will auto-convert the lemma into the Balinese script. Only specify this if the auto-converted form is incorrect. Separate multiple alternatives with a comma.
;{{para|Beng}}
:Same for Bengali script.
;{{para|Bhks}}
:Same for Bhaiksuki script.
;{{para|Brah}}
:Same for Brahmi script.
;{{para|Gujr}}
:Same for Gujarati script.
;{{para|Guru}}
:Same for Gurmukhi script.
;{{para|Gran}}
:Same for Grantha script.
;{{para|Java}}
:Same for Javanese script.
;{{para|Khmr}}
:Same for Khmer script.
;{{para|Knda}}
:Same for Kannada script.
;{{para|Kthi}}
:Same for Kaithi script.
;{{para|Laoo}}
:Same for Lao script.
;{{para|Mlym}}
:Same for Malayalam script.
;{{para|mnc-Mong}}
:Same for the Manchu variant of the Mongolian script.
;{{para|Modi}}
:Same for Modi script.
;{{para|Mong}}
:Same for Mongolian script.
;{{para|Mymr}}
:Same for Burmese script.
;{{para|Nand}}
:Same for Nandinagari script.
;{{para|Newa}}
:Same for Newa script.
;{{para|Orya}}
:Same for Odia script.
;{{para|Saur}}
:Same for Saurashtra script.
;{{para|Shrd}}
:Same for Sharada script.
;{{para|Sidd}}
:Same for Siddham script.
;{{para|Sinh}}
:Same for Sinhalese script.
;{{para|Soyo}}
:Same for Soyombo script.
;{{para|Takr}}
:Same for Takri script.
;{{para|Taml}}
:Same for Tamil script.
;{{para|Telu}}
:Same for Telugu script.
;{{para|Thai}}
:Same for Thai script.
;{{para|Tibt}}
:Same for Tibetan script.
;{{para|Tirh}}
:Same for Tirhuta script.
;{{para|Zanb}}
:Same for Zanzibar Square script.
;{{para|Hani}}
:Same for Chinese script, except there is no auto-generated form.
;{{para|Kawi}}
:Same for Kawi script, except there is no auto-generated form.
;{{para|Khar}}
:Same for Kharoshthi script, except there is no auto-generated form.
;{{para|Lana}}
:Same for Tai Tham script, except there is no auto-generated form.
;{{para|Marc}}
:Same for Marchen script, except there is no auto-generated form.
;{{para|Phag}}
:Same for Phags-pa script, except there is no auto-generated form.
;{{para|Ranj}}
:Same for Ranjana script, except there is no auto-generated form (and this script is not yet encoded in Unicode, so it cannot be represented).
;{{para|Tang}}
:Same for Tangut script, except there is no auto-generated form.
;{{para|Tutg}}
:Same for Tigalari script, except there is no auto-generated form.
;{{para|xwo-Mong}}
:Same for the Clear Script variant of the Mongolian script, except there is no auto-generated form.
{{tcat|orthvar}}
5kxvu5i3ekr5bwugyb8d2g7xppl7md7
සැකිල්ල:sa-alt
10
8529
238856
195613
2026-08-08T18:27:54Z
en>Benwing2
0
+doc
238856
wikitext
text/x-wiki
<includeonly>{{#invoke:sa-headword|alt}}</includeonly><noinclude>{{documentation}}</noinclude>
5mixsl2hzb44kvqcwlwcoc1wql4s2dl
238857
238856
2026-11-13T04:09:21Z
Lee
19
[[:en:Template:sa-alt]] වෙතින් එක් සංශෝධනයක්
238856
wikitext
text/x-wiki
<includeonly>{{#invoke:sa-headword|alt}}</includeonly><noinclude>{{documentation}}</noinclude>
5mixsl2hzb44kvqcwlwcoc1wql4s2dl
ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms කාණ්ඩය
15
22749
238849
59267
2026-11-13T04:05:14Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms block]] සිට [[ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
59267
wikitext
text/x-wiki
{| class="wikitable"
! oldid || date/time || username || edit summary
|----
| 40527693 || 2016-09-13T15:07:07Z || Daniel Carrero || <nowiki>Created page with "{{autocat}}"</nowiki>
|}
g1ok8f4qmyfskcftuf6yjxpxyexzrww
ප්රවර්ගය:Alphabetic Presentation Forms කාණ්ඩය
14
22751
238847
59269
2026-11-13T04:05:13Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ගය:Alphabetic Presentation Forms block]] සිට [[ප්රවර්ගය:Alphabetic Presentation Forms කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
59269
wikitext
text/x-wiki
{{autocat}}
slf0sbtwkqpj1yctqc9wbjjf1tuf7jr
238851
238847
2026-11-13T04:05:23Z
Pinthura
2424
සේවා: ඉංග්රීසි ව්යාපෘතිය වෙත සබැඳියක් එක් කිරීම.
238851
wikitext
text/x-wiki
{{autocat}}
[[en:Category:Alphabetic Presentation Forms block]]
5qvql61lwltsjpr0ivusf1zz4rhn0gq
238853
238851
2026-11-13T04:06:05Z
Pinthura
2424
සේවා: auto cat භාවිතය පරික්ෂාව
238853
wikitext
text/x-wiki
{{auto cat}}
[[en:Category:Alphabetic Presentation Forms block]]
c2lwnqzs6wjsl278tikmtow02atk6e5
ප්රවර්ග සාකච්ඡාව:ආමේනියානු කාණ්ඩය
15
22757
238885
59275
2026-11-13T05:36:10Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ග සාකච්ඡාව:Armenian block]] සිට [[ප්රවර්ග සාකච්ඡාව:ආමේනියානු කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
59275
wikitext
text/x-wiki
{| class="wikitable"
! oldid || date/time || username || edit summary
|----
| 40525679 || 2016-09-13T09:12:12Z || Daniel Carrero || <nowiki>Created page with "{{autocat}}"</nowiki>
|}
s42lb353t52fztwmxb2tzb2xzaa7s7v
ප්රවර්ගය:ආමේනියානු කාණ්ඩය
14
22759
238883
59277
2026-11-13T05:36:10Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ගය:Armenian block]] සිට [[ප්රවර්ගය:ආමේනියානු කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
59277
wikitext
text/x-wiki
{{autocat}}
slf0sbtwkqpj1yctqc9wbjjf1tuf7jr
238887
238883
2026-11-13T05:36:20Z
Pinthura
2424
සේවා: ඉංග්රීසි ව්යාපෘතිය වෙත සබැඳියක් එක් කිරීම.
238887
wikitext
text/x-wiki
{{autocat}}
[[en:Category:Armenian block]]
f1u7b8tvlj93w9smqign9q3zql5hw56
238891
238887
2026-11-13T05:37:00Z
Pinthura
2424
සේවා: auto cat භාවිතය පරික්ෂාව
238891
wikitext
text/x-wiki
{{auto cat}}
[[en:Category:Armenian block]]
bnt1rzbrxll4w4qjks17i7dh538xsgt
ප්රවර්ග සාකච්ඡාව:Pajonal Ashéninka සැකිලි
15
24840
238896
68687
2026-11-13T05:39:27Z
Lee
19
Lee විසින් [[ප්රවර්ග සාකච්ඡාව:Ashéninka Pajonal සැකිලි]] සිට [[ප්රවර්ග සාකච්ඡාව:Pajonal Ashéninka සැකිලි]] වෙත පිටුව ගෙන යන ලදී
65601
wikitext
text/x-wiki
{| class="wikitable"
! oldid || date/time || username || edit summary
|----
| 43065597 || 2017-05-22T03:24:59Z || NadandoBot || <nowiki>None</nowiki>
|}
h1a4nbemnqqfgzrl43bt0yl5zy7es47
ප්රවර්ගය:Pajonal Ashéninka සැකිලි
14
24841
238894
73889
2026-11-13T05:39:26Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Ashéninka Pajonal සැකිලි]] සිට [[ප්රවර්ගය:Pajonal Ashéninka සැකිලි]] වෙත පිටුව ගෙන යන ලදී
73889
wikitext
text/x-wiki
{{auto cat}}
[[en:Category:Ashéninka Pajonal templates]]
aoushou8jh7j5q69m1aq9rsamlav9ao
ප්රවර්ග සාකච්ඡාව:Ashéninka Pajonal templates
15
27581
238909
68688
2026-11-13T11:43:57Z
EmausBot
1976
Fixing double redirect from [[ප්රවර්ග සාකච්ඡාව:Ashéninka Pajonal සැකිලි]] to [[ප්රවර්ග සාකච්ඡාව:Pajonal Ashéninka සැකිලි]]
238909
wikitext
text/x-wiki
#යළියොමුව [[ප්රවර්ග සාකච්ඡාව:Pajonal Ashéninka සැකිලි]]
gdbhxqv966pj8qb1f3mbtf9bqe0ch1u
ප්රවර්ගය:Pajonal Ashéninka භාෂාව
14
117022
238892
179414
2026-11-13T05:37:32Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Ashéninka Pajonal භාෂාව]] සිට [[ප්රවර්ගය:Pajonal Ashéninka භාෂාව]] වෙත පිටුව ගෙන යන ලදී
179414
wikitext
text/x-wiki
{{auto cat|Peru}}
[[en:Category:Ashéninka Pajonal language]]
o7dpsf3scnxy5cf05ib00694y6wn8cc
ප්රවර්ගය:භාෂාව අනුව Terms in nonstandard scripts
14
141018
238881
228899
2026-11-13T05:31:41Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Terms in nonstandard scripts by language]] සිට [[ප්රවර්ගය:භාෂාව අනුව Terms in nonstandard scripts]] වෙත පිටුව ගෙන යන ලදී
228898
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
ප්රවර්ගය:Alphabetic Presentation Forms block
14
145776
238848
2026-11-13T04:05:14Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ගය:Alphabetic Presentation Forms block]] සිට [[ප්රවර්ගය:Alphabetic Presentation Forms කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
238848
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:Alphabetic Presentation Forms කාණ්ඩය]]
6eihyf8bkz4v6jj5rr6pey9149gp02a
238852
238848
2026-11-13T04:05:33Z
Pinthura
2424
සේවා: යළියොමුව, මෘදු ප්රවර්ග යළියොමුවක් බවට හැරවීම.
238852
wikitext
text/x-wiki
{{category redirect|Alphabetic Presentation Forms කාණ්ඩය}}
5lmun0i9fq29yelvy77seyb9blmsuky
ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms block
15
145777
238850
2026-11-13T04:05:14Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms block]] සිට [[ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
238850
wikitext
text/x-wiki
#යළියොමුව [[ප්රවර්ග සාකච්ඡාව:Alphabetic Presentation Forms කාණ්ඩය]]
mhmk2uo78txw2t2z2s4qh4ziucl6n0r
ප්රවර්ගය:Orthographic and regional variant templates
14
145778
238854
2025-12-10T05:44:59Z
en>Benwing2
0
Created page with "{{auto cat}}"
238854
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238855
238854
2026-11-13T04:08:40Z
Lee
19
[[:en:Category:Orthographic_and_regional_variant_templates]] වෙතින් එක් සංශෝධනයක්
238854
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
ප්රවර්ගය:සංස්කෘත මං සලකුණු සැකිලි
14
145779
238860
2025-12-07T09:04:03Z
en>WingerBot
0
Created page with "{{auto cat}}"
238860
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238861
238860
2026-11-13T04:11:18Z
Lee
19
[[:en:Category:Sanskrit_navigation_templates]] වෙතින් එක් සංශෝධනයක්
238860
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238862
238861
2026-11-13T04:12:06Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Sanskrit navigation templates]] සිට [[ප්රවර්ගය:සංස්කෘත navigation templates]] වෙත පිටුව ගෙන යන ලදී
238860
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238878
238862
2026-11-13T04:22:18Z
Lee
19
Lee විසින් [[ප්රවර්ගය:සංස්කෘත navigation templates]] සිට [[ප්රවර්ගය:සංස්කෘත මං සලකුණු සැකිලි]] වෙත පිටුව ගෙන යන ලදී
238860
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
ප්රවර්ගය:Sanskrit navigation templates
14
145780
238863
2026-11-13T04:12:06Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Sanskrit navigation templates]] සිට [[ප්රවර්ගය:සංස්කෘත navigation templates]] වෙත පිටුව ගෙන යන ලදී
238863
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:සංස්කෘත navigation templates]]
egsga6mjyq0qj1ksx8edyxr875xrdt4
238908
238863
2026-11-13T11:43:47Z
EmausBot
1976
Fixing double redirect from [[ප්රවර්ගය:සංස්කෘත navigation templates]] to [[ප්රවර්ගය:සංස්කෘත මං සලකුණු සැකිලි]]
238908
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:සංස්කෘත මං සලකුණු සැකිලි]]
c8h292fwnt46yb5xm1appmg2kbi46yw
ප්රවර්ගය:සංස්කෘත සබැඳි සැකිලි
14
145781
238864
2026-11-13T04:14:40Z
Pinthura
2424
සේවා: [[:[[en:Category:Sanskrit link templates]]]] තුළ තිබූ පෙළ මෙහි ඇතුළු කිරීම.
238864
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238866
238864
2026-11-13T04:14:50Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ගය:Sanskrit link templates]] සිට [[ප්රවර්ගය:සංස්කෘත සබැඳි සැකිලි]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
238864
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238869
238866
2026-11-13T04:15:00Z
Pinthura
2424
සේවා: ඉංග්රීසි ව්යාපෘතිය වෙත සබැඳියක් එක් කිරීම.
238869
wikitext
text/x-wiki
{{auto cat}}
[[en:Category:Sanskrit link templates]]
0nnwbgn1y2vu4y0mkclvld54o2qs74s
ප්රවර්ගය:භාෂාව අනුව මං සලකුණු සැකිලි
14
145782
238865
2025-12-07T07:05:23Z
en>WingerBot
0
Created page with "{{auto cat}}"
238865
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238868
238865
2026-11-13T04:14:50Z
Lee
19
[[:en:Category:Navigation_templates_by_language]] වෙතින් එක් සංශෝධනයක්
238865
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238873
238868
2026-11-13T04:15:39Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Navigation templates by language]] සිට [[ප්රවර්ගය:භාෂාව අනුව Navigation templates]] වෙත පිටුව ගෙන යන ලදී
238865
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238875
238873
2026-11-13T04:21:12Z
Lee
19
Lee විසින් [[ප්රවර්ගය:භාෂාව අනුව Navigation templates]] සිට [[ප්රවර්ගය:භාෂාව අනුව මං සලකුණු සැකිලි]] වෙත පිටුව ගෙන යන ලදී
238865
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
ප්රවර්ගය:Sanskrit link templates
14
145783
238867
2026-11-13T04:14:50Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ගය:Sanskrit link templates]] සිට [[ප්රවර්ගය:සංස්කෘත සබැඳි සැකිලි]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
238867
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:සංස්කෘත සබැඳි සැකිලි]]
tgkj2rjv1m1d7bk2j6gxmlpe2qwnvzd
238870
238867
2026-11-13T04:15:10Z
Pinthura
2424
සේවා: යළියොමුව, මෘදු ප්රවර්ග යළියොමුවක් බවට හැරවීම.
238870
wikitext
text/x-wiki
{{category redirect|සංස්කෘත සබැඳි සැකිලි}}
s7fjcjbvllb3k2nvn0a026ay9as9eo6
ප්රවර්ගය:Sanskrit සබැඳි සැකිලි
14
145784
238871
2026-11-13T04:15:20Z
Pinthura
2424
සේවා: මෘදු ප්රවර්ග යළියොමුවක් නිර්මාණය.
238871
wikitext
text/x-wiki
{{category redirect|සංස්කෘත සබැඳි සැකිලි}}
s7fjcjbvllb3k2nvn0a026ay9as9eo6
ප්රවර්ගය:සංස්කෘත link templates
14
145785
238872
2026-11-13T04:15:30Z
Pinthura
2424
සේවා: මෘදු ප්රවර්ග යළියොමුවක් නිර්මාණය.
238872
wikitext
text/x-wiki
{{category redirect|සංස්කෘත සබැඳි සැකිලි}}
s7fjcjbvllb3k2nvn0a026ay9as9eo6
ප්රවර්ගය:Navigation templates by language
14
145786
238874
2026-11-13T04:15:40Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Navigation templates by language]] සිට [[ප්රවර්ගය:භාෂාව අනුව Navigation templates]] වෙත පිටුව ගෙන යන ලදී
238874
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:භාෂාව අනුව Navigation templates]]
99xn8450fh335r6svsx7awxwgsq9nwa
238898
2025-12-07T07:05:23Z
en>WingerBot
0
Created page with "{{auto cat}}"
238898
wikitext
text/x-wiki
{{auto cat}}
eomzlm5v4j7ond1phrju7cnue91g5qx
238899
238874
2026-11-13T05:47:02Z
Lee
19
[[:en:Category:Navigation_templates_by_language]] වෙතින් එක් සංශෝධනයක්
238874
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:භාෂාව අනුව Navigation templates]]
99xn8450fh335r6svsx7awxwgsq9nwa
238907
238899
2026-11-13T11:43:37Z
EmausBot
1976
Fixing double redirect from [[ප්රවර්ගය:භාෂාව අනුව Navigation templates]] to [[ප්රවර්ගය:භාෂාව අනුව මං සලකුණු සැකිලි]]
238907
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:භාෂාව අනුව මං සලකුණු සැකිලි]]
i85qrpda1k71d6jljx3nlvkaszn00e7
ප්රවර්ගය:භාෂාව අනුව Navigation templates
14
145787
238876
2026-11-13T04:21:13Z
Lee
19
Lee විසින් [[ප්රවර්ගය:භාෂාව අනුව Navigation templates]] සිට [[ප්රවර්ගය:භාෂාව අනුව මං සලකුණු සැකිලි]] වෙත පිටුව ගෙන යන ලදී
238876
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:භාෂාව අනුව මං සලකුණු සැකිලි]]
i85qrpda1k71d6jljx3nlvkaszn00e7
ප්රවර්ගය:සංස්කෘත navigation templates
14
145788
238879
2026-11-13T04:22:18Z
Lee
19
Lee විසින් [[ප්රවර්ගය:සංස්කෘත navigation templates]] සිට [[ප්රවර්ගය:සංස්කෘත මං සලකුණු සැකිලි]] වෙත පිටුව ගෙන යන ලදී
238879
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:සංස්කෘත මං සලකුණු සැකිලි]]
c8h292fwnt46yb5xm1appmg2kbi46yw
ප්රවර්ගය:Terms in nonstandard scripts by language
14
145789
238882
2026-11-13T05:31:41Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Terms in nonstandard scripts by language]] සිට [[ප්රවර්ගය:භාෂාව අනුව Terms in nonstandard scripts]] වෙත පිටුව ගෙන යන ලදී
238882
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:භාෂාව අනුව Terms in nonstandard scripts]]
7c1ied387zj34jjgb65q3wt84s9tri9
ප්රවර්ගය:Armenian block
14
145790
238884
2026-11-13T05:36:10Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ගය:Armenian block]] සිට [[ප්රවර්ගය:ආමේනියානු කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
238884
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:ආමේනියානු කාණ්ඩය]]
5vscnyxyy7qzki6errw3bj349e6lfl4
238888
238884
2026-11-13T05:36:30Z
Pinthura
2424
සේවා: යළියොමුව, මෘදු ප්රවර්ග යළියොමුවක් බවට හැරවීම.
238888
wikitext
text/x-wiki
{{category redirect|ආමේනියානු කාණ්ඩය}}
qgvlk65au1gwm18dwko354fty288s4y
ප්රවර්ග සාකච්ඡාව:Armenian block
15
145791
238886
2026-11-13T05:36:10Z
Pinthura
2424
Pinthura විසින් [[ප්රවර්ග සාකච්ඡාව:Armenian block]] සිට [[ප්රවර්ග සාකච්ඡාව:ආමේනියානු කාණ්ඩය]] වෙත පිටුව ගෙන යන ලදී: සේවා: නව ප්රවර්ග නාමය වෙත ගෙනයාම.
238886
wikitext
text/x-wiki
#යළියොමුව [[ප්රවර්ග සාකච්ඡාව:ආමේනියානු කාණ්ඩය]]
5ockyxt5s0gh67haguyjksqvgvw5sz9
ප්රවර්ගය:Armenian කාණ්ඩය
14
145792
238889
2026-11-13T05:36:40Z
Pinthura
2424
සේවා: මෘදු ප්රවර්ග යළියොමුවක් නිර්මාණය.
238889
wikitext
text/x-wiki
{{category redirect|ආමේනියානු කාණ්ඩය}}
qgvlk65au1gwm18dwko354fty288s4y
ප්රවර්ගය:ආමේනියානු block
14
145793
238890
2026-11-13T05:36:50Z
Pinthura
2424
සේවා: මෘදු ප්රවර්ග යළියොමුවක් නිර්මාණය.
238890
wikitext
text/x-wiki
{{category redirect|ආමේනියානු කාණ්ඩය}}
qgvlk65au1gwm18dwko354fty288s4y
ප්රවර්ගය:Ashéninka Pajonal භාෂාව
14
145794
238893
2026-11-13T05:37:33Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Ashéninka Pajonal භාෂාව]] සිට [[ප්රවර්ගය:Pajonal Ashéninka භාෂාව]] වෙත පිටුව ගෙන යන ලදී
238893
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:Pajonal Ashéninka භාෂාව]]
qe8hbl9b93nq8oe1pqvmjc8pk6td3vt
ප්රවර්ගය:Ashéninka Pajonal සැකිලි
14
145795
238895
2026-11-13T05:39:26Z
Lee
19
Lee විසින් [[ප්රවර්ගය:Ashéninka Pajonal සැකිලි]] සිට [[ප්රවර්ගය:Pajonal Ashéninka සැකිලි]] වෙත පිටුව ගෙන යන ලදී
238895
wikitext
text/x-wiki
#යළියොමුව [[:ප්රවර්ගය:Pajonal Ashéninka සැකිලි]]
o7juzrgn03obfwtvnqun5ylre3jh9g9
ප්රවර්ග සාකච්ඡාව:Ashéninka Pajonal සැකිලි
15
145796
238897
2026-11-13T05:39:27Z
Lee
19
Lee විසින් [[ප්රවර්ග සාකච්ඡාව:Ashéninka Pajonal සැකිලි]] සිට [[ප්රවර්ග සාකච්ඡාව:Pajonal Ashéninka සැකිලි]] වෙත පිටුව ගෙන යන ලදී
238897
wikitext
text/x-wiki
#යළියොමුව [[ප්රවර්ග සාකච්ඡාව:Pajonal Ashéninka සැකිලි]]
gdbhxqv966pj8qb1f3mbtf9bqe0ch1u