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

мНет описания правки
Нет описания правки
Строка 122: Строка 122:
    if subMode == 'chem' then
    if subMode == 'chem' then
        return mw.getCurrentFrame():preprocess('{{СollapsibleMenu|' .. getChemOutput(data, id) .. '}}')
        local output = getChemOutput(data, id)
        if not output or output == '' then
            return 'getChemOutput вернул пустой результат.'
        end
        return '{{СollapsibleMenu|' .. output .. '}}'
    elseif subMode == 'contained' then
    elseif subMode == 'contained' then
        return mw.getCurrentFrame():preprocess('{{СollapsibleMenu|' .. getContainedOutput(data, id, false) .. '}}')
        local output = getContainedOutput(data, id, false)
        if not output or output == '' then
            return 'getContainedOutput вернул пустой результат.'
        end
        return '{{СollapsibleMenu|' .. output .. '}}'
    else
    else
        return 'Неизвестный подрежим для framing: ' .. subMode
        return 'Неизвестный подрежим для framing: ' .. subMode
    end
    end
end
end


     -- При нормальном режиме
     -- При нормальном режиме