Модуль:Sandbox: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 116: | Строка 116: | ||
function p.createtexttooltippartvi(frame) -- {{#invoke:Entity Lookup|createtexttooltip|Текст|ProtoID|Pic=картиночка}} | function p.createtexttooltippartvi(frame) -- {{#invoke:Entity Lookup|createtexttooltip|Текст|ProtoID|Pic=картиночка}} | ||
local out = " " | local out = " " | ||
local entity = p.entities[frame.args[ | local entity = p.entities[frame.args[1]] | ||
local pic = frame.args[ | local pic = frame.args[2] | ||
local stats = frame:expandTemplate{ title = "Особое", args = { frame.args[2] }} | local stats = frame:expandTemplate{ title = "Особое", args = { frame.args[2] }} | ||
if entity ~= nil then do | if entity ~= nil then do | ||
| Строка 135: | Строка 135: | ||
function p.createtexttooltippartvii(frame) -- {{#invoke:Entity Lookup|createtexttooltip|Текст|ProtoID|Pic=картиночка}} | function p.createtexttooltippartvii(frame) -- {{#invoke:Entity Lookup|createtexttooltip|Текст|ProtoID|Pic=картиночка}} | ||
local out = " " | local out = " " | ||
local entity = p.entities[frame.args[ | local entity = p.entities[frame.args[1]] | ||
local pic = frame.args[ | local pic = frame.args[2] | ||
local stats = frame:expandTemplate{ title = "Особое", args = { frame.args[2] }} | local stats = frame:expandTemplate{ title = "Особое", args = { frame.args[2] }} | ||
if entity ~= nil then do | if entity ~= nil then do | ||