七日内新公告:全站维护公告
  • 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
  • 本镜像站和其他萌娘百科的镜像站无关,请注意分别。

Module:SuppressUserList

猛汉♂百科,万男皆可猛的百科全书!转载请标注来源页面的网页链接,并声明引自猛汉百科。内容不可商用。
跳转到导航 跳转到搜索
模块文档  [创建] [刷新]
local p = {}

local DATA = mw.text.jsonDecode(mw.title.new("Module:UserGroup/data"):getContent()).suppress

function p.main(frame)
    if not frame then
        frame = mw.getCurrentFrame()
    end
    local r = ""
    for _, name in ipairs(DATA) do
        r = r ..
            "* " ..
            frame:expandTemplate { title = "User", args = { name } } ..
            " ([[Special:Emailuser/" .. name .. "|发送电子邮件]])\n"
    end
    return r
end

return p