Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 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 }}', | 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 | ||