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