Модуль:Entity Sprite: различия между версиями

мНет описания правки
мНет описания правки
Строка 56: Строка 56:
         return nil
         return nil
     end
     end
    local path = "Resources/Textures/" .. entry.Sprite.sprite


     if param == "image" then
     if param == "image" then
Строка 67: Строка 65:
     return nil
     return nil
end
end


-- Генерация шаблона по умолчанию
-- Генерация шаблона по умолчанию
Строка 78: Строка 75:
     local tags = params.Tags or ""
     local tags = params.Tags or ""
     local licensing = params.Licensing or "CC-BY-SA-3.0"
     local licensing = params.Licensing or "CC-BY-SA-3.0"
    if not entry.id or not entry.Sprite or not entry.Sprite.sprite then
        return nil
    end
    if not path or path == "" then
        path = "Resources/Textures/" .. entry.Sprite.sprite
    end


     -- Формирование шаблона
     -- Формирование шаблона