Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 45: | Строка 45: | ||
local tableContainer = item.EntityTableContainerFill and item.EntityTableContainerFill.containers | local tableContainer = item.EntityTableContainerFill and item.EntityTableContainerFill.containers | ||
local result = wrapped and '<div>' or '' | local result = wrapped and '<div class="2">' or '' | ||
if contents then | if contents then | ||
| Строка 65: | Строка 65: | ||
for _, child in ipairs(children) do | for _, child in ipairs(children) do | ||
if wrapped then | if wrapped then | ||
result = result .. string.format('<div>%s</div>', child.id) | result = result .. string.format('<div class="1 2">{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s.png|name={{#invoke:Entity Lookup|getname|%s}} }}</div>', child.id, child.id) | ||
else | else | ||
result = result .. string.format('%s | result = result .. string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s.png|name={{#invoke:Entity Lookup|getname|%s}}', child.id, child.id) | ||
end | end | ||
end | end | ||
| Строка 83: | Строка 83: | ||
result = result .. '</div>' | result = result .. '</div>' | ||
end | end | ||
return result | return mw.getCurrentFrame():preprocess(result) | ||
end | end | ||