Différences entre les versions de « Module:OTable »

Aller à la navigation Aller à la recherche
m
aucun résumé de modification
m
m
Ligne 78 : Ligne 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

modifications

Menu de navigation