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

Нет описания правки
Нет описания правки
Строка 1: Строка 1:
-- Загрузка данных
-- Загрузка данных
local itemData = mw.loadData("Модуль:IanComradeBot/prototypes/fills/Item.json/data")
local itemData = mw.loadData("Модуль:IanComradeBot/prototypes/fills/Item.json/data")
local tableData = mw.loadData("Модуль:IanComradeBot/prototypes/table.json/data")


local p = {}
local p = {}
Строка 94: Строка 93:
         if child.id then
         if child.id then
             results[#results + 1] = formatContent(child)
             results[#results + 1] = formatContent(child)
        elseif child["!type"] == "NestedSelector" then
            results[#results + 1] = handleNestedSelector(child, true)
         elseif child["!type"] == "GroupSelector" then
         elseif child["!type"] == "GroupSelector" then
             results[#results + 1] = handleGroupSelector(child)
             results[#results + 1] = handleGroupSelector(child)
        elseif child["!type"] == "AllSelector" then
            results[#results + 1] = handleAllSelector(child)
        end
        if child.children then
            results[#results + 1] = processNestedSelectors(child.children)
         end
         end
     end
     end