Changes

Jump to: navigation, search

Module:PrimalAspect

191 bytes added, 5 years ago
no edit summary
local p = {}
 
function toGrid(aspect, size)
return "{{Gc|mod=TC4A|link=none|" .. aspect .. "|" .. size .. "}}"
end
 
function p.aspect(params)
local size = "" -- There MUST be a better way to do this (todo)
if params.args.stacksize == nil then
size = "1"
else
size = params.args.stacksize
end
if params.args.aspect == "Aer" or parms.args.aspect == "A" then
return toGrid("{{Gc|mod=TC4A|link=none|Aer}}", size)
elseif params.args.aspect == "Terra" or params.args.aspect == "T" then
return toGrid("{{Gc|mod=TC4A|link=none|Terra}}", size)
elseif params.args.aspect == "Ignis" or params.args.aspect == "I" then
return toGrid("{{Gc|mod=TC4A|link=none|Ignis}}", size)
elseif params.args.aspect == "Aqua" or params.args.aspect == "Aq" or params.args.aspect == "Q" then
return toGrid("{{Gc|mod=TC4A|link=none|Aqua}}", size)
elseif params.args.aspect == "Ordo" or params.args.aspect == "O" then
return toGrid("{{Gc|mod=TC4A|link=none|Ordo}}", size)
elseif params.args.aspect == "Perdito" or params.args.aspect == "P" then
return toGrid("{{Gc|mod=TC4A|link=none|Perdito}}", size)
else
return "{{Gc}}"
Autopatrol, banhammer, Bureaucrats, Editors, Reviewers, Administrators, translate-proofr, Translation administrators
380

edits