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 = { | ||
[ | [2] = { default = PAGENAME }, | ||
[ | [1] = { required = true }, | ||
} | } | ||
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 = frame.args[2] | ||
if head == "" then | if head == "" then | ||
head = nil | head = nil | ||
end | end | ||
local poscat = args[ | local poscat = 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 = {}} | ||