Module:UtilsDisplay

local p = {}

function p.DisplayEffectTables(tabs) local result = mw.html.create("div") :addClass("details-effects-container") local tabber = " " for key, tab in ipairs(tabs) do tabber = tabber .. "\n" .. tab["name"] .. "="		local effectsTable = mw.html.create("table") :addClass("details-effects-table") local counter = 0 for key2, effect in ipairs(tab["effects"]) do			effectsTable:node(mw.html.create("tr")				:node(mw.html.create("td") :addClass("details-effects-item") :wikitext(effect))) counter = counter + 1 end while counter < 8 do			effectsTable:node(mw.html.create("tr")				:node(mw.html.create("td") :addClass("details-effects-item"))) counter = counter + 1 end tabber = tabber .. tostring(effectsTable) .. "\n|-|" end tabber = mw.getCurrentFrame:preprocess(tabber .. " ") result:wikitext(tabber) return result end

return p