Open main menu

OrthodoxWiki β

Template:Monthoffset

Revision as of 03:07, April 20, 2007 by ASDamick (talk | contribs) (New page: <!-- Check if less than one -->{{#ifeq:{{#expr:({{CURRENTDAY}}+{{{1}}})<1}}|1<!-- Do if less than one -->|{{MONTHNAME|{{#expr:{{CURRENTMONTH}}-1}}}}<!-- Check if more than days in month --...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

January

Documentation

This template calculates the month that will result from a given positive or negative offset in days. See also {{dayoffset}} to calculate the day of the month.

Examples:

English Template Result
Today - 30 {{monthoffset|-30}} December
Today + 2 {{monthoffset|2}} January
Today + 30 {{monthoffset|30}} January

Combination with {{dayoffset}}:

English Template Result
Today - 30 {{monthoffset|-30}} {{dayoffset|-30}} December
26


Today + 2 {{monthoffset|2}} {{dayoffset|2}} January
27


Today + 30 {{monthoffset|30}} {{dayoffset|30}} January
24