Module:PageDates
Documentation for this module may be created at Module:PageDates/doc
local p = {}
function p.dates(frame)
local title = mw.title.getCurrentTitle()
local lang = mw.language.getContentLanguage()
-- Only thing Scribunto gives us reliably:
local updatedTimestamp = title:getTimestamp()
local updatedDate = lang:formatDate("j F Y", updatedTimestamp)
-- Since we can't get the true creation timestamp, fallback phrasing
return string.format("This page was last updated on %s.", updatedDate)
end
return p