此模块的文档可以在Module:Template:Delete/data/doc创建

function reqns(nslist)
    return function(title)
        if type(nslist) ~= 'table' then
            nslist = {nslist}
        end
        text = {}
        for i, ns in ipairs(nslist) do
            if title:inNamespace(ns) then
                return nil
            end
            if mw.site.namespaces[ns].id ~= 0 then
                table.insert(text, mw.site.namespaces[ns].name)
            else
                table.insert(text, mw.site.namespaces[ns].displayName)
            end
        end
        if #text then
            return '仅适用于' .. mw.text.listToText(text, '、', '或') .. '[[w:Help:名字空间|名字空间]]'
        end
        return nil
    end
end

return {
    {code = 'G1', aliases = {'empty'}, criteria = '無實際內容或非教科書。'},
    {code = 'G2', aliases = {'test'}, criteria = '測試頁。'},
    {code = 'G3', aliases = {'r4', 'attack', 'van', 'g6'}, criteria = '破壞。'},
    {code = 'G5', aliases = {'rep'}, "曾經依存廢討論被刪除的重建內容。"},
    {code = 'G8', aliases = {'rm'}, criteria = '管理员因技术原因删除页面。'},
    {code = 'G10', aliases = {'author', 'ad'}, criteria = '作者請求或原作者清空頁面。'},
    {code = 'G11', aliases = {'spam'}, criteria = '廣告或宣傳。'},
    {code = 'G12', aliases = {'bio'}, "未列明來源或違反[[:w:Wikipedia:生者傳記|生者傳記]]的負面內容。"},
    {code = 'G13', aliases = {'mt'}, criteria = '明顯且拙劣的機器翻譯。'},
    {code = 'G14', aliases = {'nc'}, criteria = '超過兩周沒有翻譯的非現代標準漢語頁面。'},
    {code = 'G15', aliases = {'orphan', 'r1', 'o2'}, criteria = '孤立頁面。'},
    {code = 'A1', aliases = {'context', 'g4'}, criteria = '非常短而無定義或內容。', check = reqns(0)},
    {code = 'A2', aliases = {'text'}, criteria = '內容只包含參考、連接、模板或/及分類。', check = reqns(0)},
    {code = 'A3', aliases = {'nc', 'g7'}, criteria = '與其他中文維基計畫內容相同的文章。'},
    {code = 'R2', aliases = {'interwk', 'g9'}, criteria = '跨名字空間重定向。', check = reqns(0)},
    {code = 'R3', aliases = {'wr'}, criteria = '名稱錯誤的重定向。'},
    {code = 'R5', aliases = {'br'}, criteria = '指向本身的重定向或循環的重定向。'},
    {code = 'O1', aliases = {'aup', 'o6'}, criteria = '用戶請求刪除自己的用戶頁子頁面。', check = reqns('User')},
    {code = 'O3', aliases = {'ip'}, criteria = '匿名用戶的討論頁。', check = reqns('User talk')},
    {code = 'O4', aliases = {'o5', 'uc'}, criteria = '空的類別。', check = reqns('Category')},
}