Module:CharacterInfoboxMaritalStatus

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