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

Нет описания правки
мНет описания правки
Строка 92: Строка 92:


     for _, child in ipairs(children) do
     for _, child in ipairs(children) do
        -- Если у элемента есть id, то выводим его
         if child.id then
         if child.id then
             results[#results + 1] = formatContent(child)
             results[#results + 1] = formatContent(child)
Строка 98: Строка 99:
         elseif child["!type"] == "GroupSelector" then
         elseif child["!type"] == "GroupSelector" then
             results[#results + 1] = handleGroupSelector(child)
             results[#results + 1] = handleGroupSelector(child)
        else
            -- Если это не поддерживаемый тип, выводим ошибку
            results[#results + 1] = "<div>Ошибка: не поддерживаемый тип элемента.</div>"
         end
         end
     end
     end
Строка 138: Строка 142:
         if containers.entity_storage then
         if containers.entity_storage then
             if containers.entity_storage.children then
             if containers.entity_storage.children then
                -- Добавим обработку обычных элементов с id
                 result[#result + 1] = processNestedSelectors(containers.entity_storage.children)
                 result[#result + 1] = processNestedSelectors(containers.entity_storage.children)
             else
             else