Template:LastMonth: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Thesevenseas
Optimised Code
meta>PrimeHunter
replace {{{1|{{CURRENTDAY}}}}} by 1 to ensure that -1 month gives a valid day in the previous month; fixes bug where for example {{LastMonth|March|31|2012}} produced March 2012 instead of February 2012
Line 1: Line 1:
{{{{{|safesubst:}}}#time:F Y|{{{2|{{CURRENTMONTHNAME}}}}} {{{1|{{CURRENTDAY}}}}} {{{3|{{CURRENTYEAR}}}}}-1 month}}<noinclude>{{Reference desk navigation/Note}}</noinclude>
{{{{{|safesubst:}}}#time:F Y|{{{2|{{CURRENTMONTHNAME}}}}} 1 {{{3|{{CURRENTYEAR}}}}}-1 month}}<noinclude>{{Reference desk navigation/Note}}</noinclude>

Revision as of 00:25, 28 February 2013