Module:LNDB

local p = {} local nxb_dengeki = mw.loadData( 'Module:LNDB/Dengeki' )

local function _dengeki(frame) tablestart = " " tablebody = ""

timestamp = frame.args[1] language = frame.args[2] rows = {} romanji = "" kanji = "" author = "" illustrator = "" for c in pairs(nxb_dengeki) do       if c.d = timestamp then romanji = c.tr           kanji = c.tk            author = c.ar            illustrator = c.ir            rows[#rows+1] = " "..romanji.." "..kanji.." "..author.." "..illustrator.."  " end end tablebody = tablestart..table.concat(rows,'')..tableend return tablebody end

function p.dengeki(frame) return _dengeki(frame) end return p