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

мНет описания правки
мНет описания правки
Строка 218: Строка 218:
     end
     end


    if wrapped then
if wrapped and (classesRolls or classesProb and (classesRolls > 0 or classesProb > 0)) then
        result[#result + 1] = string.format('{{LinkСard/Сollapsible|name=Группа %s%s|content=', classesRolls, classesProb)
    result[#result + 1] = string.format('{{LinkСard/Сollapsible|name=Группа %s%s|content=', classesRolls or "", classesProb or "")
    end
end


     result[#result + 1] = getTableOutput(nestedSelector.tableId)
     result[#result + 1] = getTableOutput(nestedSelector.tableId)


     if wrapped then
     if wrapped and (classesRolls or classesProb and (classesRolls > 0 or classesProb > 0)) then
         result[#result + 1] = "}}"
         result[#result + 1] = "}}"
     end
     end