FANDOM


local p = {}
 
function p._row( row, elts, header )
    local _tag = header and 'th' or 'td'
    local ret = {}
    for _, v in ipairs(elts) do
        if type(v) == 'table' then
            table.insert(ret,row:tag(_tag):wikitext(v.text):attr(v.attr or {}):addClass(v.class or ""):css(v.css or {}):done())
        else
            table.insert(ret,row:tag(_tag):wikitext(v):done())
        end
    end
    row:done()
    return unpack(ret)
end
 
function p._table(table, data)
    for _, rowdata in ipairs(data) do
        row = table:tag('tr')
        for _, v in ipairs(rowdata) do
            if not v then
            else
                row:tag(v.tag or 'td'):wikitext(v.text):attr(v.attr or {}):css(v.css or {}):done()
            end
        end
        row:done()
    end
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.