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

мНет описания правки
мНет описания правки
Строка 78: Строка 78:
     if not path or path == "" then
     if not path or path == "" then
         path = "Resources/Textures/" .. entry.Sprite.sprite
         path = "Resources/Textures/" .. entry.Sprite.sprite
    end
    if not entry.id or not entry.Sprite or not entry.Sprite.sprite then
        return nil
     end
     end


     -- Формирование шаблон
     -- Формирование шаблон
     return mw.getCurrentFrame():preprocess(
     return mw.getCurrentFrame():preprocess(
        "{{Entity Sprite\n" ..
         "\n== Краткое описание ==\n" ..
         "\n== Краткое описание ==\n" ..
         "{{Файл\n" ..
         "{{Файл\n" ..