Модуль:Entity Sprite: различия между версиями
Pok (обсуждение | вклад) м Pok переименовал страницу Модуль:Prototypes/Entity Sprite в Модуль:Entity Sprite без оставления перенаправления |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 91: | Строка 91: | ||
local path = params.Path | local path = params.Path | ||
local tags = params.Tags or "" | local tags = params.Tags or "" | ||
if not entry.Sprite or not entry.Sprite.sprite then | if not entry.Sprite or not entry.Sprite.sprite then | ||
| Строка 103: | Строка 102: | ||
-- Формирование шаблона | -- Формирование шаблона | ||
return mw.getCurrentFrame():preprocess( | return mw.getCurrentFrame():preprocess( | ||
"{{Файл\n" .. | "{{Файл\n" .. | ||
"|Описание = " .. description .. "\n" .. | "|Описание = " .. description .. "\n" .. | ||
| Строка 111: | Строка 109: | ||
"|Путь = " .. path .. "\n" .. | "|Путь = " .. path .. "\n" .. | ||
"|Теги = " .. tags .. "\n" .. | "|Теги = " .. tags .. "\n" .. | ||
"}}\n | "}}\n" | ||
) | ) | ||
end | end | ||