https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ADeletion_sortingModule:Deletion sorting - Revision history2025-05-25T17:46:31ZRevision history for this page on the wikiMediaWiki 1.45.0-wmf.2https://en.wikipedia.org/w/index.php?title=Module:Deletion_sorting&diff=1072702344&oldid=prevAhecht: Copy from Module:Deletion sorting/sandbox2022-02-19T02:27:09Z<p>Copy from <a href="/wiki/Module:Deletion_sorting/sandbox" title="Module:Deletion sorting/sandbox">Module:Deletion sorting/sandbox</a></p>
<p><b>New page</b></p><div>local p = {}<br />
<br />
local function makeError(msg)<br />
return mw.text.tag('strong', {['class']='error'}, 'Error in [[Template:Deletion sorting]]: ' .. msg)<br />
end<br />
<br />
function p.multi(frame)<br />
local args = {}<br />
local rootpage = '[[Wikipedia:WikiProject Deletion sorting'<br />
local sig = os.date("!%H:%M, %e %B %Y (UTC)")<br />
<br />
for k, v in pairs(frame:getParent().args) do<br />
if mw.ustring.match(v,'%S') then<br />
if type(k) == 'number' then<br />
local title = mw.title.new(v)<br />
if title and title.rootText then<br />
table.insert(args, title.rootText)<br />
else<br />
return makeError('Input contains forbidden characters.')<br />
end <br />
elseif k:sub(0,3) == 'sig' then<br />
sig = v<br />
end<br />
end<br />
end<br />
<br />
if #args == 0 then<br />
if frame.args.example then args[1] = frame.args.example else return makeError('Category not specified.') end<br />
end<br />
local outStr = 'Note: This discussion has been included in the '<br />
if #args == 1 then<br />
outStr = outStr..rootpage..'/'..args[1]..'|list of '..args[1]..'-related deletion discussions]]'<br />
else<br />
outStr = outStr..rootpage..'|deletion sorting]] lists for the following topics: '<br />
for i = 1, #args do<br />
if i > 1 then<br />
if #args > 2 then outStr = outStr..', ' end<br />
if i == #args then outStr = outStr..' and ' end<br />
end<br />
outStr = outStr..rootpage..'/'..args[i]..'|'..args[i]..']]'<br />
end<br />
end<br />
return mw.text.tag('small', {['class']='delsort-notice'}, outStr..'. '..sig)<br />
end<br />
<br />
return p</div>Ahecht