Модуль:Prototypes/Роль/Лодаут: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 73: | Строка 73: | ||
local infoOutput = "" | local infoOutput = "" | ||
if extraInfo ~= "" then | if extraInfo ~= "" then | ||
infoOutput = '<div class=" | infoOutput = '<div class="роль-лодаут__time">{{AltTooltip|[[Файл:Small_watch.png|link=]]|' .. extraInfo .. '}}</div>' | ||
end | end | ||
table.insert(results, infoOutput .. '{{#invoke:Prototypes/Предмет/Содержание|image|' .. eqValue .. '}} [[File:Slot.png|64px|link=]]') | table.insert(results, infoOutput .. '{{#invoke:Prototypes/Предмет/Содержание|image|' .. eqValue .. '}} [[File:Slot.png|64px|link=]]') | ||
| Строка 83: | Строка 83: | ||
local output = {} | local output = {} | ||
for _, eq in ipairs(results) do | for _, eq in ipairs(results) do | ||
table.insert(output, '<div class=" | table.insert(output, '<div class="роль-лодаут__item">' .. eq .. '</div>') | ||
end | end | ||
return frame:preprocess(table.concat(output)) | return frame:preprocess(table.concat(output)) | ||