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

Нет описания правки
мНет описания правки
Строка 59: Строка 59:
     if param == "image" then
     if param == "image" then
         return mw.getCurrentFrame():preprocess("{{Entity Sprite/Imege|" .. entry.id .. "|" .. entry.Sprite.sprite .. "}}")
         return mw.getCurrentFrame():preprocess("{{Entity Sprite/Imege|" .. entry.id .. "|" .. entry.Sprite.sprite .. "}}")
     elseif param == "license" then
     elseif param == "path" then
         return mw.getCurrentFrame():preprocess("{{Entity Sprite/License|" .. entry.id .. "|" .. entry.Sprite.sprite .. "}}")
         return mw.getCurrentFrame():preprocess("{{Entity Sprite/Path|" .. entry.id .. "|" .. entry.Sprite.sprite .. "}}")
     end
     end


Строка 127: Строка 127:
     end
     end


     -- Логика для других параметров, как "image", "license", "repeat"
     -- Логика для других параметров, как "image", "path", "repeat"
     if param == "repeat" then
     if param == "repeat" then
         return generateRepeatTemplate(data)
         return generateRepeatTemplate(data)