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

мНет описания правки
мНет описания правки
Строка 37: Строка 37:
     end
     end
      
      
     if mode and mode == 'framing' then
     if mode ~= 'framing' then
    return string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s|name=%s%s%s }}', image, name, amount, prob)
    else
         return string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s|name=%s%s%s }} {{#invoke:Prototypes/Хранилище/Предмет|main|framing|contained|%s}}', image, name, amount, prob, content.id)
         return string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s|name=%s%s%s }} {{#invoke:Prototypes/Хранилище/Предмет|main|framing|contained|%s}}', image, name, amount, prob, content.id)
    else
        return string.format('{{LinkСard|SideStyle=1|background-color=#d7d7ff0b|image=%s|name=%s%s%s }}', image, name, amount, prob)
     end
     end
end
end