Module:anui-headword: Difference between revisions

Jump to navigation Jump to search
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 data = {lang = lang, pos_category = deabb[args[1]], categories = {}, inflections = {},}


local function glossary_link(entry, text)
local function glossary_link(entry, text)
Line 28: Line 27:


function export.show(frame)
function export.show(frame)
args = frame:getParent().args
local args = frame:getParent().args
local data = {lang = lang, pos_category = deabb[args[1]], categories = {}, inflections = {},}
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]

Navigation menu