Module:Interviewee list

local linkUtil = require('Module:LinkUtil') local p = {}

function p.intervieweeList(frame) local args = frame:getParent.args local done = false local wikitext = "" local count = 1 while not done do		if args[count] and args[count] ~= "" then wikitext = wikitext .. "* " .. linkUtil.stripDab(args[count]) .. "" .. (args["ref" .. tostring(count)] or "") if args["r" .. tostring(count)] or args["role" .. tostring(count)] then wikitext = wikitext .. ", " .. (args["r" .. tostring(count)] or args["role" .. tostring(count)]) .. "\n" else wikitext = wikitext .. "\n" end else done = true end count = count + 1 end return wikitext:sub(1,-2) end

return p