Модуль:Entity Lookup: различия между версиями
Pok (обсуждение | вклад) м откат суффиксов Метка: ручная отмена |
CL w (обсуждение | вклад) м Замена текста — «Mousegif.gif» на «MobMouse2.png» |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 63: | Строка 63: | ||
-- p.createtexttooltip{args={"Верхний текст", "FreedomImplant", "Файл: | -- p.createtexttooltip{args={"Верхний текст", "FreedomImplant", "Файл:Horns.png"}} | ||
function p.createtexttooltip(frame) -- {{#invoke:Entity Lookup|createtexttooltip|Текст|ProtoID|img=картиночка}} | function p.createtexttooltip(frame) -- {{#invoke:Entity Lookup|createtexttooltip|Текст|ProtoID|img=картиночка}} | ||
local out = " " | local out = " " | ||
| Строка 76: | Строка 76: | ||
-- {{Tooltip|Текст|[[картиночка|64x64px|left|middle|link=]] Название|Описание}} | -- {{Tooltip|Текст|[[картиночка|64x64px|left|middle|link=]] Название|Описание}} | ||
end else | end else | ||
out = frame:preprocess("{{Tooltip|".. frame.args[1] .."|Не найден|Предмет не найден|img= | out = frame:preprocess("{{Tooltip|".. frame.args[1] .."|Не найден|Предмет не найден|img=MobMouse2.png}}") | ||
end | end | ||
return out | return out | ||
| Строка 82: | Строка 82: | ||
-- p.createimagetooltip{args={"Файл: | -- p.createimagetooltip{args={"Файл:Horns.png", "FreedomImplant", Статы="Имеет 3 заряда"}} | ||
function p.createimagetooltip(frame) -- {{#invoke:Entity Lookup|createimagetooltip|Картинка|ProtoID|Мета=мета|Статы=статы}} | function p.createimagetooltip(frame) -- {{#invoke:Entity Lookup|createimagetooltip|Картинка|ProtoID|Мета=мета|Статы=статы}} | ||
local out = " " | local out = " " | ||
| Строка 98: | Строка 98: | ||
out = frame:preprocess("{{Tooltip|".. pic .. "|" .. entity.name .. "|" .. entity.desc .. "|" .. stats .."|no-text-decoration=1}}") | out = frame:preprocess("{{Tooltip|".. pic .. "|" .. entity.name .. "|" .. entity.desc .. "|" .. stats .."|no-text-decoration=1}}") | ||
end else | end else | ||
out = frame:preprocess("{{Tooltip|[[Файл: | out = frame:preprocess("{{Tooltip|[[Файл:MobMouse2.png|64x64px|left|middle|link=]]|" .. entity.name .. "|" .. entity.desc .. "|" .. stats .."|no-text-decoration=1}}") | ||
end | end | ||
-- {{Tooltip|Текст|[[картиночка|64x64px|left|middle|link=]] Название|Описание}} | -- {{Tooltip|Текст|[[картиночка|64x64px|left|middle|link=]] Название|Описание}} | ||
end else | end else | ||
out = frame:preprocess("{{Tooltip|" .. pic .. "|Не найден|Предмет не найден|img= | out = frame:preprocess("{{Tooltip|" .. pic .. "|Не найден|Предмет не найден|img=MobMouse2.png|no-text-decoration=1}}") | ||
end | end | ||
return out | return out | ||