Template:Cal-date/yesterday: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Abates (talk | contribs)
No edit summary
Abates (talk | contribs)
m Protected "Template:Cal-date/yesterday" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))
 
(3 intermediate revisions by the same user not shown)
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}}}}
--><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>

Latest revision as of 10:50, 20 January 2013