1,124
edits
Line 79: | Line 79: | ||
end | end | ||
local construction = '' | |||
if c.construction then | |||
for k, v in pairs(c.construction) do | |||
construction = construction .. i.icon(k, v, nil, k, 'en') .. '<br />' | |||
end | |||
local l = string.len(construction) | |||
construction = string.sub(construction, 1, l -6) | |||
end | |||
local newRow = mw.html.create('tr') | local newRow = mw.html.create('tr') | ||
newRow:tag('th') | newRow:tag('th') | ||
Line 88: | Line 97: | ||
:tag('td') | :tag('td') | ||
:wikitext(production) | :wikitext(production) | ||
:done() | |||
:tag('td') | |||
:wikitext(construction) | |||
:done() | :done() | ||
buildingTable:node(newRow) | buildingTable:node(newRow) |