Module:JobRelationship

local p = {}

function p.relatedJobList(frame) local args = require('Module:Arguments').getArgs(frame, {       parentFirst = true,    }) local iname = mw.text.trim(args[1]) return p._relatedJobList(iname) end

function p._relatedJobList(iname) if iname == nil then return 'Invalid parameter' end local jobs = mw.loadData("Module:Data/MasterParam/JobRelationship")[iname] if not jobs then return '' end

local render_job_icon = require('Module:Render/Job')._icon

local output = {} for i,entry in pairs( jobs ) do       table.insert(output, render_job_icon({entry, size='small'})) end return table.concat(output, ', ') end

return p