More actions
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
function p.formatDate(frame) | function p.formatDate(frame) | ||
local day = | local day = frame.args[4] or 1 | ||
local month = | local month = frame.args[5] or 1 | ||
local year = | local year = frame.args[6] or 1970 | ||
return mw.getContentLanguage():formatDate('j F Y', string.format('%d-%d-%d', year, month, day)) | return mw.getContentLanguage():formatDate('j F Y', string.format('%d-%d-%d', year, month, day)) | ||
end | end |