local p =
function p.count(frame) local page = mw.title.getCurrentTitle local content = page:getContent if content
function p.countAt(frame) local target = frame.args[1] if target
function p.countFfD(frame) local content = mw.title.makeTitle(4, "Files_for_discussion"):getContent or "Error #1" content = mw.text.split(content, "
")[2] content = mw.text.split(content, "For older nominations") local to_return = content[1] return to_returnend
function p.countRM(frame) local content = mw.title.makeTitle(4, "Requested_moves/Current_discussions"):getContent or "Error #1" content = mw.text.split(content, "
")[2] local _, count = string.gsub(content, "|Discuss%]%]%)", "|Discuss%]%]%)") local _, count2 = string.gsub(content, "|Discuss%]%]%)", "|Discuss%]%]%)"); local dump = require('Module:Dump')._dump return "Elapsed listings:" .. (count + count2) .. dump(content, 'content') --return to_returnend
return p