Module:Occupation

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