45,660
edits
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
local PAGENAME = mw.title.getCurrentTitle().text | local PAGENAME = mw.title.getCurrentTitle().text | ||
local params = { | local params = { | ||
[1 | [1] = { default = PAGENAME }, | ||
} | } | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local head = args[ | local head = args[1] | ||
if head == "" then | if head == "" then | ||
head = nil | head = nil | ||
end | end | ||
local poscat = args[1] | local poscat = frame.args[1] | ||
--local data = {lang = lang, pos_category = (postype and postype .. " " or "") .. poscat, categories = {}, heads = {head}, genders = {}, inflections = {}} | --local data = {lang = lang, pos_category = (postype and postype .. " " or "") .. poscat, categories = {}, heads = {head}, genders = {}, inflections = {}} | ||