Модуль:Entity Sprite: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 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 == " | elseif param == "path" then | ||
return mw.getCurrentFrame():preprocess("{{Entity Sprite/ | return mw.getCurrentFrame():preprocess("{{Entity Sprite/Path|" .. entry.id .. "|" .. entry.Sprite.sprite .. "}}") | ||
end | end | ||
| Строка 127: | Строка 127: | ||
end | end | ||
-- Логика для других параметров, как "image", " | -- Логика для других параметров, как "image", "path", "repeat" | ||
if param == "repeat" then | if param == "repeat" then | ||
return generateRepeatTemplate(data) | return generateRepeatTemplate(data) | ||