▶️
Planeshift.
The documentation for this module can be found at Template:Symbol.
You may be forwarded to another wiki language, in case a translation is not available.
Dependencies
local getArgs = require( 'Module:Arguments' ).main
local p = {}
function p.main( frame )
local args = getArgs()
return p._main( args )
end
function p._main( args )
if args[1] then
local size = '16px'
if args[2] and string.find( args[2], 'px', plain ) then
size = args[2]
elseif args[3] and string.find( args[3], 'px', plain ) then
size = args[3]
end
local symbols = {
["cooldown"] = "[[File:Cooldown symbol.png|" .. size .. "|text-top|link=Cooldown]]",
["mana"] = "[[File:Mana symbol.png|" .. size .. "|text-top|link=Mana]]",
["bkb"] = {{
["yes"] = "[[File:Spell immunity block symbol.png|" .. size .. "|text-top|link=Spell Immunity|Does not pierce spell immunity.]]",
["no"] = "[[File:Spell immunity block no symbol.png|" .. size .. "|text-top|link=Spell Immunity|Pierces spell immunity.]]",
["partially"] = "[[File:Spell immunity block partial symbol.png|" .. size .. "|text-top|link=Spell Immunity|Partially pierces spell immunity.]]",
}},
["linken"] = {{
["yes"] = "[[File:Spell block symbol.png|" .. size .. "|text-top|link=Linken's Sphere|Blocked by Linken's Sphere.]]",
["no"] = "[[File:Spell block no symbol.png|" .. size .. "|text-top|link=Linken's Sphere|Not blocked by Linken's Sphere.]]",
["partially"] = "[[File:Spell block partial symbol.png|" .. size .. "|text-top|link=Linken's Sphere|Partially blocked by Linken's Sphere.]]",
}},
["illusion"] = {{
["yes"] = "[[File:Illusion symbol.png|" .. size .. "|text-top|link=Illusions|Can be used by illusions.]]",
["no"] = "[[File:Illusion no symbol.png|" .. size .. "|text-top|link=Illusions|Cannot be used by illusions.]]",
["partially"] = "[[File:Illusion partial symbol.png|" .. size .. "|text-top|link=Illusions|Partially usable by illusions.]]",
}},
["break"] = {{
["yes"] = "[[File:Breakable symbol.png|" .. size .. "|text-top|link=Break|Disabled by Break.]]",
["no"] = "[[File:Breakable no symbol.png|" .. size .. "|text-top|link=Break|Not disabled by Break.]]",
["partially"] = "[[File:Breakable partial symbol.png|" .. size .. "|text-top|link=Break|Partially disabled by Break.]]",
}},
["disjoint"] = {{
["yes"] = "[[File:Disjointable symbol.png|" .. size .. "|text-top|link=Disjoint|Can be disjointed.]]",
["no"] = "[[File:Disjointable no symbol.png|" .. size .. "|text-top|link=Disjoint|Cannot be disjointed.]]",
["partially"] = "[[File:Disjointable partial symbol.png|" .. size .. "|text-top|link=Disjoint|Can partially be disjointed.]]",
}},
["root"] = "[[File:Root disables symbol.png|" .. size .. "|text-top|link=Root|Cannot be cast while rooted.]]",
["on cast proc"] = "[[File:On cast proc symbol.png|" .. size .. "|text-top|link=Abilities#Cast event|Does not proc any on-cast effects when cast.]]",
["aghanim"] = "[[File:Aghanim's Scepter symbol.png|" .. size .. "|text-top|link=Aghanim's Scepter|Upgradable by Aghanim's Scepter.]]",
["gold"] = "[[File:Gold symbol.png|" .. size .. "|text-top|link=Gold|Gold]]",
["experience"] = "[[File:Experience symbol.png|" .. size .. "|text-top|link=Experience|Experience]]",
["strength"] = "[[File:Strength attribute symbol.png|{{{2|20px}}}|text-top|link=Strength]]",
["agility"] = "[[File:Agility attribute symbol.png|{{{2|20px}}}|text-top|link=Agility]]",
["intelligence"] = "[[File:Intelligence attribute symbol.png|{{{2|20px}}}|text-top|link=Intelligence]]",
["modifier"] = {{
["buff"] = "[[File:Modifier buff symbol.png|" .. size .. "|text-top|link=Dispel|Buff]]",
["debuff"] = "[[File:Modifier debuff symbol.png|" .. size .. "|text-top|link=Dispel|Debuff]]",
["both"] = "[[File:Modifier both symbol.png|" .. size .. "|text-top|link=Dispel|Buff or Debuff, based on the target's alliance]]",
}},
["roshan"] = "[[File:Roshan minimap icon.png|" .. size .. "|text-top|link=Roshan]]",
["burrow"] = "[[File:Burrow icon.png|" .. size .. "|text-top|link=Nyx Assassin#Burrow|Burrow]]",
["elder dragon form"] = "[[File:Elder Dragon Form icon.png|" .. size .. "|text-top|link=Dragon Knight#Elder Dragon Form|Elder Dragon Form]]",
["earth"] = "[[File:Brewmaster Earth minimap icon.png|" .. size .. "|text-top|link=Earth]]",
["storm"] = "[[File:Brewmaster Storm minimap icon.png|" .. size .. "|text-top|link=Storm]]",
["fire"] = "[[File:Brewmaster Fire minimap icon.png|" .. size .. "|text-top|link=Fire]]",
["talent"] = "[[File:Talent tree symbol.png|" .. size .. "|text-top|link=Talents|Talent]]",
}
local output = symbols[string.lower( args[1] )]
if type( output ) == 'table' then
return output[1][string.lower( args[2] )]
else
return output
end
end
end
return p