Modulu:Wdl-eu-senses
Itxura
Documentation for this module may be created at Modulu:Wdl-eu-senses/dok
local p = {}
function p.getSenseTable ( frame )
local sensetable = mw.wikibase.getEntity( frame.args[1] ):getSenses()
local htmlTable = mw.html.create("table")
for i, sense in pairs(sensetable) do
local row = htmlTable:tag("tr")
local indexcell = row:tag("td")
indexcell:wikitext("'''[http://www.wikidata.org/entity/" .. frame.args[1] .. "-S" .. i .. " " .. i .. "]: '''")
local glosscell = row:tag("td")
glosscell:wikitext(sense:getGlosses()[1][1])
end
return htmlTable
end
return p