Module:Alignment

local p={} function p.main(frame) local good=tonumber(frame.args[1]) local order=tonumber(frame.args[2]) local alignment="" if order >= (2.0/3.0) then alignment = alignment .. "LAWFUL_" elseif order >= (1.0/3.0) then alignment = alignment .. "NEUTRAL_" else alignment = alignment .. "CHAOTIC_" end if good >= (2.0/3.0) then alignment = alignment .. "GOOD" elseif good >= (1.0/3.0) then alignment = alignment .. "NEUTRAL" else alignment = alignment .. "EVIL" end return alignment end return p