Documentation for this module may be created at Module:Character occurrences/doc
return {
main = function(frame)
local params = {
["first appearance"] = true,
["cameo"] = true,
["non-speaking"] = true
}
local str = frame.args[1] .. ", "
for i,param in ipairs(frame:getParent().args) do
if params[param:lower()]
and (mw.title.new(param, "Template")) then
str = str .. param:lower() .. ", "
end
end
return '<small>(' .. str:sub(1,-3) .. ')</small>'
end
}