Module:Calendar date/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 103:
 
local function makeDate(year, month, day, df, format)
local formatformatFull = {
['dmy'] = 'j F Y',
['mdy'] = 'F j, Y',
Line 122:
local date = table.concat ({year, month, day}) -- assemble iso format date
if format ~= "infobox" then
return mw.getContentLanguage():formatDate (formatformatFull[df], date)
else
return mw.getContentLanguage():formatDate (formatInfobox[df], date)