Module:anui-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 9: Line 9:


local lang = require("Module:languages").getByCode("art-nui")
local lang = require("Module:languages").getByCode("art-nui")
local args = frame:getParent().args
local deabb = {["adj"] = "adjectives", ["v"] = "verb", ["adv"] = "adverb",}
local deabb = {["adj"] = "adjectives", ["v"] = "verb", ["adv"] = "adverb",}
local data = {lang = lang, pos_category = deabb[args[1]], categories = {}, inflections = {},}
local data = {lang = lang, pos_category = deabb[args[1]], categories = {}, inflections = {},}
Line 29: Line 28:


function export.show()
function export.show()
local args = frame:getParent().args
local word = mw.title.getCurrentTitle().text or args["w"]
local word = mw.title.getCurrentTitle().text or args["w"]
local pos = args[1]; local f = args[2]
local pos = args[1]; local f = args[2]