Template:Cal-date/offset: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Derik (talk | contribs)
mNo edit summary
 
Line 29: Line 29:
params: isnextMonth (day), offset, month
params: isnextMonth (day), offset, month


-->{{#if:{{{isnextmonth|}}}|{{#ifeq:{{#expr: ({{{isnextmonth}}} + {{{offset|0}}}) > {{cal-date/offset_recurs|daysinmonth={{{month|}}}}} }}|1|1|}}|}}<!--
-->{{#if:{{{isnextmonth|}}}|{{#ifeq:{{#expr: ({{{isnextmonth}}} + {{{offset|0}}}) > {{cal-date/offset2|daysinmonth={{{month|}}}}} }}|1|1|}}|}}<!--


isprevmonth
isprevmonth
Line 43: Line 43:
NOTE: WILL NOT WORK CORRECTLY IF THE OFFSET IS MORE THAN A SINGLE DAY
NOTE: WILL NOT WORK CORRECTLY IF THE OFFSET IS MORE THAN A SINGLE DAY


-->{{#if:{{{getoffsetmonth|}}}|{{#if:{{cal-date/offset_recurs|isprevmonth={{{day}}}|offset={{{offset}}}|month={{{getoffsetmonth}}}}}{{cal-date/offset_recurs|isnextmonth={{{day}}}|offset={{{offset}}}|month={{{getoffsetmonth}}}}}|{{cal-date/offset_recurs|monthoffset={{{getoffsetmonth}}}|offset={{{offset|0}}}}}|{{{getoffsetmonth}}}}}|}}<!--
-->{{#if:{{{getoffsetmonth|}}}|{{#if:{{cal-date/offset2|isprevmonth={{{day}}}|offset={{{offset}}}|month={{{getoffsetmonth}}}}}{{cal-date/offset2|isnextmonth={{{day}}}|offset={{{offset}}}|month={{{getoffsetmonth}}}}}|{{cal-date/offset2|monthoffset={{{getoffsetmonth}}}|offset={{{offset|0}}}}}|{{{getoffsetmonth}}}}}|}}<!--


getoffsetday - Get the day offset
getoffsetday - Get the day offset
Line 50: Line 50:




-->{{#if:{{{getoffsetday|}}}|{{#if:{{cal-date/offset_recurs|isprevmonth={{{getoffsetday}}}|offset={{{offset}}}|month={{{month}}}}}{{cal-date/offset_recurs|isnextmonth={{{getoffsetday}}}|offset={{{offset}}}|month={{{month}}}}}|{{#if:{{cal-date/offset_recurs|isprevmonth={{{getoffsetday}}}|offset={{{offset}}}|month={{{month}}}}}|{{cal-date/offset_recurs|daysinmonth={{cal-date/offset_recurs|getoffsetmonth={{{month}}}|offset={{{offset|0}}}|day={{{getoffsetday}}}}}}}|1}}|pew{{#expr: {{{getoffsetday}}} + {{{offset|0}}}}}}}|}}<!--
-->{{#if:{{{getoffsetday|}}}|{{#if:{{cal-date/offset2|isprevmonth={{{getoffsetday}}}|offset={{{offset}}}|month={{{month}}}}}{{cal-date/offset2|isnextmonth={{{getoffsetday}}}|offset={{{offset}}}|month={{{month}}}}}|{{#if:{{cal-date/offset2|isprevmonth={{{getoffsetday}}}|offset={{{offset}}}|month={{{month}}}}}|{{cal-date/offset2|daysinmonth={{cal-date/offset2|getoffsetmonth={{{month}}}|offset={{{offset|0}}}|day={{{getoffsetday}}}}}}}|1}}|pew{{#expr: {{{getoffsetday}}} + {{{offset|0}}}}}}}|}}<!--


--><noinclude>[[Category:Meta templates]]</noinclude>
--><noinclude>[[Category:Meta templates]]</noinclude>

Latest revision as of 06:33, 17 January 2013