Модуль:Prototypes/Хранилище/Предмет: различия между версиями

Нет описания правки
мНет описания правки
Строка 49: Строка 49:
     if contents then
     if contents then
         for _, content in ipairs(contents) do
         for _, content in ipairs(contents) do
             result = result .. string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s.png|name={{#invoke:Entity Lookup|getname|%s}}%s }}', child.id, child.id, child.amount and string.format(" [%d]", child.amount) or "")
             result = result .. string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s.png|name={{#invoke:Entity Lookup|getname|%s}}%s }}', content.id, content.id, content.amount and string.format(" [%d]", content.amount) or "")
         end
         end
     elseif tableContainer then
     elseif tableContainer then