Module:LatestEditedPage

From Fonline The Long Journey Wiki
Revision as of 23:23, 9 March 2026 by Dody (talk | contribs) (Module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

local p = {}

function p.main()

   local frame = mw.getCurrentFrame()
   local rc = frame:expandTemplate{ title = 'Special:RecentChanges', args = { '1' } }
   -- extract the first link from the RecentChanges output
   local title = rc:match('%[%[(.-)%]%]')
   if not title then
       return 'No recent edits'
   end
   return string.format('Latest Edited Page', title)

end

return p