Module:PageDates: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 17: | Line 17: | ||
function p.dates(frame) | function p.dates(frame) | ||
local lang = mw.language.getContentLanguage() | local lang = mw.language.getContentLanguage() | ||
local timestamp = frame:preprocess("{{ | local timestamp = frame:preprocess("{{REVISIONTIMESTAMP}}") | ||
-- Extract date parts | |||
local day = tonumber(lang:formatDate("j", timestamp)) | local day = tonumber(lang:formatDate("j", timestamp)) | ||
local month = lang:formatDate("F", timestamp) | local month = lang:formatDate("F", timestamp) |