FANDOM


local CharacterInfoboxMaritalStatus = {}
local HF = require("Module:HF")
 
function CharacterInfoboxMaritalStatus.main( frame )
    local args = frame.args
 
    local statuses = HF.explode( ";", args.MaritalStatus )
 
    local output = ""
 
    for i, status in ipairs( statuses ) do
    if string.lower(status) == "married" or string.lower(status) == "remarried" then
        output = output .. HF.CategoryLink( "Married Characters", args.Pagename, status )
    else
        output = output .. HF.CategoryLink( status .. " Characters", args.Pagename, status )
    end
    end
 
    output = output .. " " .. args.MaritalStatus2
 
    return output
end
 
return CharacterInfoboxMaritalStatus

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.