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