View source for Module:AFC submission catcheck
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
local function removeFalsePositives(str)
if not str then
return ''
end
str = mw.ustring.gsub(str, "<!--.--->", "")
str = mw.ustring.gsub(str, "<nowiki>.-</nowiki>", "")
str = mw.ustring.gsub(str, "{{[Dd]raft categories[^{}]-{{[^{}]-}}[^{}]-}}", "")
str = mw.ustring.gsub(str, "{{[Dd]raft categories.-}}", "")
str = mw.ustring.gsub(str,"%[%[Category:Unsuitable for Wikipedia AfC submissions%]%]","")
str = mw.ustring.gsub(str,"%[%[Category:[Dd]rafts.-%]%]","")
str = mw.ustring.gsub(str,"%[%[Category:.-drafts%]%]","")
return str
end
function p.checkforcats(frame)
local t = mw.title.getCurrentTitle()
tc = t:getContent()
if tc == nil then
return ""
end
000
1:0
Template used on this page:
Return to Module:AFC submission catcheck.