Template:Cal-date/offset
Jump to navigation
Jump to search
{{#if:| {{#switch:{{#expr: {{{monthoffset}}} + 0}} |0=12 |13=1 |{{#expr: {{{monthoffset}}} + 0}} }} |}}{{#if:| {{#switch:{{{daysinmonth}}} |1=31 |2=29 |3=31 |4=30 |5=31 |6=30 |7=31 |8=31 |9=30 |10=31 |11=30 |12=31 | }}|}}{{#if:|{{#ifeq:{{#expr: ({{{isnextmonth}}} + 0) > Template:Cal-date/offset2 }}|1|1|}}|}}{{#if:|{{#ifeq:{{#expr: ({{{isprevmonth}}} + 0) < 1}}|1|1|}}|}}{{#if:|{{#if:Template:Cal-date/offset2Template:Cal-date/offset2|Template:Cal-date/offset2|{{{getoffsetmonth}}}}}|}}{{#if:|{{#if:Template:Cal-date/offset2Template:Cal-date/offset2|{{#if:Template:Cal-date/offset2|Template:Cal-date/offset2|1}}|pew{{#expr: {{{getoffsetday}}} + 0}}}}|}}