Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
-- Загрузка данных | -- Загрузка данных | ||
local itemData = mw.loadData("Модуль:IanComradeBot/prototypes/fills/Item.json/data") | local itemData = mw.loadData("Модуль:IanComradeBot/prototypes/fills/Item.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"] == "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 | ||