45,640
edits
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
function export.show(frame) | function export.show(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local word = mw.title.getCurrentTitle().text | local word = args["w"] or mw.title.getCurrentTitle().text | ||
local data = {lang = lang, pos_category = deabb[args[1]], head = word, categories = {}, inflections = {},} | local data = {lang = lang, pos_category = deabb[args[1]], head = word, categories = {}, inflections = {},} | ||
local pos = args[1]; local f = args[2] | local pos = args[1]; local f = args[2] |