606
modifications
m |
m |
||
| Ligne 78 : | Ligne 78 : | ||
end | end | ||
local construction = '' | |||
if c.construction then | |||
local n = #c.construction -- Trying to make it count so it excludes the last one (bonus splendor) | |||
local i = 0 | |||
for k, v in pairs(c.construction) do | |||
i = i + 1 | |||
if i < n then | |||
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') | ||
modifications