Module:User:SDZeroBot/Purge list
Appearance
local getArgs = require('Module:Arguments').getArgs
local p = {}
p.entry = function (frame)
local args = getArgs(frame)
if args[1] then
args.page = args[1]
end
if not args.page then
return '* <span class=error>Missing page name</span>'
end
local link = args.page:sub(1, 2) == '[[' and args.page or ('[[' .. args.page .. ']]')
local dayOrDays = args.interval and
mw.language.getContentLanguage():plural(tonumber(args.interval), 'day', 'days') or ''
return '* ' .. link ..
(args.interval and ' (every '..args.interval..' '..dayOrDays..')' or '') ..
(args.forcerecursivelinkupdate and ' <abbr title="with recursive link update">R</abbr>'
or (args.forcelinkupdate and ' <abbr title="with link update">L</abbr>' or '')
)
end
return p