Модуль:Entity Sprite/all: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 34: | Строка 34: | ||
return "" | return "" | ||
end | end | ||
local function fileExists(name) | local function fileExists(name) | ||
local title = mw.title.new(name, "File") | local title = mw.title.new(name, "File") | ||
return title and title.exists | return title and title.exists | ||
| Строка 118: | Строка 109: | ||
return mw.getCurrentFrame():preprocess( | return mw.getCurrentFrame():preprocess( | ||
"{{ | "{{Entity Sprite/Image|файл=" .. prefix .. id .. | ||
"|id=" .. id .. | "|id=" .. id .. | ||
"|путь=" .. baseUrl .. spritePath .. | "|путь=" .. baseUrl .. spritePath .. | ||