モジュール:登場人物
表示
テンプレート:登場人物のためのモジュール
local p = {}
local makers = require("モジュール:メーカー")
function p.category(frame)
local cats = {}
for i, maker in next, mw.text.split(frame.args[1] or "", ",") do
if makers.makers[maker] then
table.insert(cats, "[[カテゴリ:" .. maker .. "作品出演者]]")
else
table.insert(cats, "[[カテゴリ:他社作品出演者]]")
end
end
return table.concat(cats, "\n")
end
function p.type(frame)
return mw.text.split(frame.args[1] or "", ",")[1]
end
return p