https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ADeletion_sorting Module:Deletion sorting - Revision history 2025-05-25T17:46:31Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.2 https://en.wikipedia.org/w/index.php?title=Module:Deletion_sorting&diff=1072702344&oldid=prev Ahecht: Copy from Module:Deletion sorting/sandbox 2022-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(&#039;strong&#039;, {[&#039;class&#039;]=&#039;error&#039;}, &#039;Error in [[Template:Deletion sorting]]: &#039; .. msg)<br /> end<br /> <br /> function p.multi(frame)<br /> local args = {}<br /> local rootpage = &#039;[[Wikipedia:WikiProject Deletion sorting&#039;<br /> local sig = os.date(&quot;!%H:%M, %e %B %Y (UTC)&quot;)<br /> <br /> for k, v in pairs(frame:getParent().args) do<br /> if mw.ustring.match(v,&#039;%S&#039;) then<br /> if type(k) == &#039;number&#039; 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(&#039;Input contains forbidden characters.&#039;)<br /> end <br /> elseif k:sub(0,3) == &#039;sig&#039; 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(&#039;Category not specified.&#039;) end<br /> end<br /> local outStr = &#039;Note: This discussion has been included in the &#039;<br /> if #args == 1 then<br /> outStr = outStr..rootpage..&#039;/&#039;..args[1]..&#039;|list of &#039;..args[1]..&#039;-related deletion discussions]]&#039;<br /> else<br /> outStr = outStr..rootpage..&#039;|deletion sorting]] lists for the following topics: &#039;<br /> for i = 1, #args do<br /> if i &gt; 1 then<br /> if #args &gt; 2 then outStr = outStr..&#039;, &#039; end<br /> if i == #args then outStr = outStr..&#039; and &#039; end<br /> end<br /> outStr = outStr..rootpage..&#039;/&#039;..args[i]..&#039;|&#039;..args[i]..&#039;]]&#039;<br /> end<br /> end<br /> return mw.text.tag(&#039;small&#039;, {[&#039;class&#039;]=&#039;delsort-notice&#039;}, outStr..&#039;. &#039;..sig)<br /> end<br /> <br /> return p</div> Ahecht