添加456字节
	
		、 2021年1月1日 (五) 17:54
	
 
local smw = require("Module:SMWUtils")
local p = {}
function p.latest_list(frame)
    local user_query = frame.args.query
    local query = user_query .. [[ 
        |limit=20
        |offset=0
        |sort=Modification date
        |order=desc
     ]]
    local pages = smw.query_pages(query)
    local ul = mw.html.create("ul")
    for i, t in ipairs(pages) do
        ul:tag("li"):wikitext("[[" .. t .. "]]")
    end
    return ul:done()
end
return p