Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 93: | Строка 93: | ||
return string.format( | return string.format( | ||
'{{Шаблон:LinkСard/Предмет|%s|%s%s {{#invoke:Prototypes/Хранилище/Предмет|main|framing|contained|%s}} {{#invoke:Prototypes/Хранилище/Предмет|main|framing|slot|%s}} {{#invoke:Prototypes/Хранилище/Предмет|main | '{{Шаблон:LinkСard/Предмет|%s|%s%s {{#invoke:Prototypes/Хранилище/Предмет|main|framing|contained|%s}} {{#invoke:Prototypes/Хранилище/Предмет|main|framing|slot|%s}} {{СollapsibleMenu|color=#3e7c82| {{#invoke:Prototypes/Хранилище/Предмет|main|chem|%s}} }} }}', | ||
id, amount, prob, id, id, id | id, amount, prob, id, id, id | ||
) | ) | ||
| Строка 339: | Строка 339: | ||
end | end | ||
if subMode == 'contained' then | if subMode == 'chem' then | ||
return frame:preprocess('{{СollapsibleMenu|color=#3e7c82|' .. getChemOutput(chemData, id) .. '}}') | |||
elseif subMode == 'contained' then | |||
return frame:preprocess('{{СollapsibleMenu|' .. getContainedOutput(itemDataIndex, id) .. '}}') | return frame:preprocess('{{СollapsibleMenu|' .. getContainedOutput(itemDataIndex, id) .. '}}') | ||
elseif subMode == "slot" then | elseif subMode == "slot" then | ||
local itemDataEntry = findDataById(itemSlotsData, id) | local itemDataEntry = findDataById(itemSlotsData, id) | ||