This module is invoked by {{R:LBG}}
.
local export = {}
local tag_greek = require("Module:grc-utilities").tag
local function load_data(w)
--return mw.loadData("Module:R:LBG/data")
return require("Module:data tables").index_table("grc_RLBG_lemma_to_index", w)
end
function export.index(frame)
local params = {
w = {default = mw.title.getCurrentTitle().text},
= {},
= {alias_of = "w"},
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local title = args.w
local tagged_title = tag_greek(title)
local number = args
if number then
return (" in ")
else
local n = load_data(title)
if n then
return (".."&context=lsj "..tagged_title.."] in ")
else
return ""
end
end
end
return export