Template:Cal-date/yesterday: Difference between revisions
From MediaWiki
Jump to navigationJump to searchm moved User:Abates/yesterday to Template:Cal-date/yesterday |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
Takes two arguments: Month number and day number, and returns the preceding day in the format "January 1". | Takes two arguments: Month number and day number, and returns a link to the preceding day in the format "January 1" with the text "yesterday". | ||
-->{{#ifeq:{{{2|}}}|1|{{Cal-date/monthstrings|{{#ifeq:{{{1|}}}|1|12|{{#expr:{{{1|}}}-1}}}}}} {{Cal-date/daysinmonth|{{#ifeq:{{{1|}}}|1|12|{{#expr:{{{1|}}}-1}}}}}}|{{Cal-date/monthstrings|{{{1|}}}}} {{#expr:{{{2|}}}-1}}}} | -->[[{{#ifeq:{{{2|}}}|1|{{Cal-date/monthstrings|{{#ifeq:{{{1|}}}|1|12|{{#expr:{{{1|}}}-1}}}}}} {{Cal-date/daysinmonth|{{#ifeq:{{{1|}}}|1|12|{{#expr:{{{1|}}}-1}}}}}}|{{Cal-date/monthstrings|{{{1|}}}}} {{#expr:{{{2|}}}-1}}}}|yesterday]] | ||
<noinclude>[[Category:Meta templates]]</noinclude> | <noinclude>[[Category:Meta templates]]</noinclude> | ||

