Модуль:Сущность: различия между версиями

Нет описания правки
Нет описания правки
Строка 70: Строка 70:
     local parts = {}
     local parts = {}


     -- типы (cardTag)
     -- типы  
     if merged.tags and #merged.tags > 0 then
     if merged.tags and #merged.tags > 0 then
         table.sort(merged.tags)
         table.sort(merged.tags)
Строка 297: Строка 297:
     end
     end


    -- support component_store.json: when the searched id is present as a key there,
    -- create component/*/store templates (and prototype/*/store for prototype_store.json)
    local compStoreEntry = componentStoreDefs[id]
    if type(compStoreEntry) == "table" then
        for compName, members in pairs(compStoreEntry) do
            -- mark the component as found so we also process its regular template if exists
            foundComponents[compName] = true
        end
    end
    -- if the id references other names (comma separated), include their defs too
     for name in string.gmatch(id, "[^,]+") do
     for name in string.gmatch(id, "[^,]+") do
         local n = trim(name)
         local n = trim(name)