Module:CharacterInfoboxAlignment

local CharacterInfoboxAlignment = {} local HF = require("Module:HF") function CharacterInfoboxAlignment.main( frame ) local output = "" local alignment = "" if not HF.isempty( args.Alignment ) then local lowercase = args.Alignment:lower if lowercase == "evil" or lowercase == "bad" then alignment = "Bad" elseif lowercase == "neutral" then alignment = "Neutral" elseif lowercase == "good" then alignment = "Good" end output = HF.CategoryLink( alignment .. " Characters", args.Pagename, alignment ) else output = "" end return output end return CharacterInfoboxAlignment