Template:Cal-date/yesterday: Difference between revisions
From MediaWiki
Jump to navigationJump to searchmNo edit summary |
m So there isn't a link to "-1" hanging around. |
||
| Line 3: | Line 3: | ||
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". | 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}}}}|yesterday]] | --><includeonly>[[{{#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]]</includeonly> | ||
<noinclude>[[Category:Meta templates]]</noinclude> | <noinclude>[[Category:Meta templates]]</noinclude> | ||

