Module:anui-headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10: Line 10:
local lang = require("Module:languages").getByCode("art-nui")
local lang = require("Module:languages").getByCode("art-nui")
local deabb = {["adj"] = "adjectives", ["v"] = "verb", ["adv"] = "adverb",}
local deabb = {["adj"] = "adjectives", ["v"] = "verb", ["adv"] = "adverb",}
local args = frame:getParent().args
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(frame)
function export.show(frame)
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]