Особое оружие ближнего боя
Не найденПредмет не найден local out = " " local entity = p.entities[frame.args[2]] local stats = frame:expandTemplate{ title = "Особое", args = { frame.args[2] }} if entity ~= nil then do if frame.args["img"] ~= nil then do out = frame:expandTemplate{ title = "Tooltip", args = { frame.args[1], entity.name, entity.desc, stats, img=frame.args["img"] }} end else out = frame:expandTemplate{ title = "Tooltip", args = { frame.args[1], entity.name, entity.desc, stats }} end -- Текст64x64px|left|middle|link= Название
Описание end else out = frame:expandTemplate{ title = "Tooltip", args = { frame.args[1], "Не найден", "Предмет не найден", img=frame.args[3]}} end return out end -- p.createimagetooltip{args={"Файл:Honks.gif", "FreedomImplant", Статы="Имеет 3 заряда"}} function p.createimagetooltip(frame) -- мета
Не найденПредмет не найден local out = " " local entity = p.entities[frame.args[2]] local pic = frame.args[1] local meta = frame.args["Мета"] local stats = frame:expandTemplate{ title = "Особое", args = { frame.args[2] }} if meta == nil then meta = "64x64px|link=" end meta = meta:gsub(',', '|') pic = "[[" .. frame.args[1] .. "|" .. meta .. "]]" if entity ~= nil then do if frame.args[1] ~= nil then do out = frame:expandTemplate{ title = "Tooltip", args = { pic, entity.name, entity.desc, stats }} end else out = frame:expandTemplate{ title = "Tooltip", args = { "
end
-- Текст64x64px|left|middle|link= Название
Описание
end else
out = frame:expandTemplate{ title = "Tooltip", args = { pic, "Не найден", "Предмет не найден", img="Mousegif.gif"}}
end
return out
end
return p



