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

мНет описания правки
мНет описания правки
Строка 117: Строка 117:
         local subId = frame.args[3]
         local subId = frame.args[3]
         if subMode == 'chem' then
         if subMode == 'chem' then
             return frame:preprocess('{{СollapsibleMenu|' .. getChemOutput(data, subId) .. '}}')
             return mw.getCurrentFrame():preprocess('{{СollapsibleMenu|' .. getChemOutput(data, subId) .. '}}')
         elseif subMode == 'contained' then
         elseif subMode == 'contained' then
        local getContainedOutput = getContainedOutput(data, subId, false)
    local containedOutput = getContainedOutput(data, subId, false)
            return frame:preprocess('{{СollapsibleMenu|' .. getContainedOutput .. '}}')
    if containedOutput == '' then
         else
        return 'Ошибка: данные для contained не найдены или пусты.'
            return 'Неизвестный подрежим для framing: ' .. subMode
    end
        end
    return mw.getCurrentFrame():preprocess('{{СollapsibleMenu|' .. containedOutput .. '}}')
end
         return 'Неизвестный подрежим для framing: ' .. subMode
     end
     end