Module:kilta-headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 36: Line 36:
[1] = {},
[1] = {},
["pl"] = {list = true},
["pl"] = {list = true},
["w"] = {default = PAGENAME},
["w"] = {default = mw.title.getCurrentTitle().text},
}
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local args = require("Module:parameters").process(frame:getParent().args, params)
local word = args["w"] or PAGENAME
local word = args["w"]
local pos = args[1]; local pl = args["pl"]
local pos = args[1]; local pl = args["pl"]
local data = {lang = lang, pos_category = deabb[pos], heads = {word}, categories = {}, inflections = {},}
local data = {lang = lang, pos_category = deabb[pos], heads = {word}, categories = {}, inflections = {},}

Navigation menu