Difference between revisions of "Module:OTable"

Jump to navigation Jump to search
m
no edit summary
m
m
Line 78: Line 78:
end
end
local construction = ''
        local construction = ''
if c.construction then
        if c.construction then
for k, v in pairs(c.construction) do
            local n = #c.construction -- Trying to make it count so it excludes the last one (bonus splendor)
construction = construction .. i.icon(k, v, nil, k, 'en') .. '<br />'
            local i = 0
end
            for k, v in pairs(c.construction) do
local l = string.len(construction)
                i = i + 1
construction = string.sub(construction, 1, l -6)
                if i < n then
end
                    construction = construction .. i.icon(k, v, nil, k, 'en') .. '<br />'
                end
            end
            local l = string.len(construction)
            if l > 0 then
                construction = string.sub(construction, 1, l -6)
            end
        end
local newRow = mw.html.create('tr')
local newRow = mw.html.create('tr')
newRow:tag('th')
newRow:tag('th')
606

edits

Navigation menu