View source for Module:XfD old
MyWikiBiz, Author Your Legacy — Friday July 25, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
local tableTools = require("Module:TableTools")
local ymd = require("Module:YMD to ISO")._main
local lang = mw.getContentLanguage()
local function getlog(name)
-- Files for discussion has no /Log/ in the title for some reason, so it is optional
return mw.ustring.match(name, "Log/(.*)") or mw.ustring.match(name, "/(.*)")
end
function sortkey(name1, name2)
local key1 = ymd(getlog(name1))
local key2 = ymd(getlog(name2))
return key1 > key2
end
function p._main(frame, makeoutput)
local t = frame.args.title or frame:getParent():getTitle()
local content = mw.title.new(t .. "/Old unclosed discussions"):getContent()
local m = mw.ustring.gmatch(content, "* %[%[(" .. t .. "/L?o?g?/?[^#]*)#%{%{anchorencode:([^}]*)")
local seen = {}
while true do
local logpage, header = m()
if not logpage then
000
1:0
Templates used on this page:
Return to Module:XfD old.