Module:LNDB

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

local function _dengeki(frame) tablestart = "\\\\Phiên âm\\Tên gốc\\Tác giả\\Minh họa\\" tableend = "\\" tablebody = "" timestamp = tostring(frame.args[1])

rows = {} romanji = "" kanji = "" author = "" illustrator = "" tmp = "" count = 0 for i, v in pairs(nxb_dengeki) do       tmp = v.d        if c.d == timestamp then count = count + 1 romanji = c.tr           kanji = c.tk            author = c.ar            illustrator = c.ir            rows[#rows+1] = "\\"..romanji.."\</td\>\<td style='max-width:300px;'\>"..kanji.."\</td\>\<td style='max-width:200px;'\>"..author.."\</td\>\<td style='max-width:200px;'\>"..illustrator.."\</td\>\</tr\>" end end tablebody = tablestart..table.concat(rows,'')..tableend return tmp end

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