Модуль:Песочница/Pok: различия между версиями

Нет описания правки
мНет описания правки
Строка 322: Строка 322:
             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)
if not itemDataEntry then  
        if not itemDataEntry then return "ID не найден в данных ItemSlots." end
    return "ID не найден в данных ItemSlots."  
end
        local startingItem = getFirstStartingItem(itemDataEntry)
        if not startingItem then return "Не найден startingItem в slots." end
return mw.text.jsonEncode(itemDataEntry)
        return frame:preprocess('{{СollapsibleMenu|' .. formatContent(startingItem)) .. '}}'
         else
         else
             return 'Неизвестный подрежим для framing: ' .. subMode
             return 'Неизвестный подрежим для framing: ' .. subMode