FANDOM


local CharacterInfoboxAlignment = {}
local HF = require("Module:HF")
 
function CharacterInfoboxAlignment.main( frame )
    local output = ""
    local alignment = ""
    local args = frame.args
 
    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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.