Content deleted Content added
Jackmcbarn (talk | contribs) ok, we're fully HHVM now, so this gerrit change should be everywhere now |
Jackmcbarn (talk | contribs) set up monthly categories |
||
Line 25:
local target = getTargetFromText(args.content)
local isError = not target or not mw.title.new(target)
local category
if args.category then
category = args.category
elseif args.month and args.year then
else
category = string.format('[[Category:Redirects for discussion|%s]][[Category:All redirects for discussion|%s]]', currentTitle.text, currentTitle.text)
end
return string.format('%s<span id="delete-reason" style="display:none;">%s</span>%s%s',
messageBox.main('mbox', {
Line 32 ⟶ 40:
}),
mw.uri.encode(deleteReason),
category,
▲ args.category or string.format('[[Category:Redirects for discussion|%s]]', currentTitle.text),
isError and '[[Category:RfD errors]]' or ''
)
|