FANDOM


local CharacterInfoboxOccupation = {}
local HF = require("Module:HF")
 
function CharacterInfoboxOccupation.main( frame )
    local args = frame.args
 
    local occupations = require('Module:CharacterInfoboxOccupation')
    local output = args.Occupation
 
    for key, value in pairs(occupations) do
        if string.find( string.lower(args.Occupation), key ) ~= nil then
            for i, category in ipairs( value ) do
                output = output .. HF.CategoryLink( category, args.Pagename, "" )
            end
        end
    end
 
    return output
end
 
return CharacterInfoboxOccupation

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.