Module:pollasena-roots: Difference between revisions
Jump to navigation
Jump to search
This module implemented inherited templates for Pollasena languages:
(Created page with "local gsub = mw.ustring.gsub local PAGENAME = gsub(mw.title.getCurrentTitle().text, "%s", " ") local match = mw.ustring.match local gmatch = mw.ustring.gmatch local lang = require("Module:languages").getByCode("socl") local export = {} local function link(term) return "" .. term .. "" end function export.getLink(text) -- WIP return require("Module:utilities").format_categories(pass.categories, lang) end return export") |
No edit summary |
||
Line 12: | Line 12: | ||
end | end | ||
function export.getLink( | local function ncategories(categories) | ||
local out_categories = {} | |||
for key, cat in ipairs(categories) do | |||
out_categories[key] = "[[Category:" .. cat .. "]]" | |||
end | |||
return table.concat(out_categories, "") | |||
end | |||
function export.getLink(frame) | |||
local categories = {} | |||
-- WIP | -- WIP | ||
return | return ncategories(categories) | ||
end | end | ||
return export | return export |
Revision as of 22:11, 2 May 2023
- The following documentation is located at Module:pollasena-roots/doc.[edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
This module implemented inherited templates for Pollasena languages:
{{qsc-inh}}
, {{gwax-wasc}}
. It was generalized to also include other non-Pollasena languages: {{guim-inh}}
.
local gsub = mw.ustring.gsub
local PAGENAME = gsub(mw.title.getCurrentTitle().text, "%s", " ")
local match = mw.ustring.match
local gmatch = mw.ustring.gmatch
local lang = require("Module:languages").getByCode("socl")
local export = {}
local function link(term)
return "[[Contionary:" .. term .. "|" .. term .. "]]"
end
local function ncategories(categories)
local out_categories = {}
for key, cat in ipairs(categories) do
out_categories[key] = "[[Category:" .. cat .. "]]"
end
return table.concat(out_categories, "")
end
function export.getLink(frame)
local categories = {}
-- WIP
return ncategories(categories)
end
return export