PaladinOne (talk | contribs) m (does the spacing look better yet) |
PaladinOne (talk | contribs) mNo edit summary |
||
Line 21: | Line 21: | ||
elseif aspect == "P" then |
elseif aspect == "P" then |
||
return toGrid("Perditio", size) |
return toGrid("Perditio", size) |
||
− | + | else |
|
− | + | return toGrid(aspect, size) |
|
end |
end |
||
end |
end |
Revision as of 13:27, 8 August 2015
Documentation for this module may be created at Module:PrimalAspect/doc
local p = {}
function toGrid(aspect, size)
return mw.getCurrentFrame():expandTemplate{title = "Gc", args = {aspect, size, mod = "TC4A", link = "none"}}
end
function p.aspect(params)
local aspect = params.args.aspect
local size = params.args.stacksize -- defaults to 1 via the template
if aspect == "A" then
return toGrid("Aer", size)
elseif aspect == "T" then
return toGrid("Terra", size)
elseif aspect == "I" then
return toGrid("Ignis", size)
elseif aspect == "Aq" or aspect == "Q" then
return toGrid("Aqua", size)
elseif aspect == "O" then
return toGrid("Ordo", size)
elseif aspect == "P" then
return toGrid("Perditio", size)
else
return toGrid(aspect, size)
end
end
return p