<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tenchimuyowiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACal-date%2Foffset</id>
	<title>Template:Cal-date/offset - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tenchimuyowiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACal-date%2Foffset"/>
	<link rel="alternate" type="text/html" href="https://tenchimuyowiki.com/index.php?title=Template:Cal-date/offset&amp;action=history"/>
	<updated>2026-10-25T21:07:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://tenchimuyowiki.com/index.php?title=Template:Cal-date/offset&amp;diff=470&amp;oldid=prev</id>
		<title>Dagon123: Created page with &quot;{{#if:{{{monthoffset|}}}| {{#switch:{{#expr: {{{monthoffset}}} + {{{offset|0}}}}} |0=12 |13=1 |{{#expr: {{{monthoffset}}} + {{{offset|0}}}}} }} |}}&lt;!--  Get the number of days in a month  --&gt;{{#if:{{{daysinmonth|}}}| {{#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 | }}|}}&lt;!--  isnextmonth params: isnextMonth (day), offset, month  --&gt;{{#if:{{{isnextmonth|}}}|{{#ifeq:{{#expr: ({{{isnextmonth}}} + {{{offset|0}}}) &gt; {{ca...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tenchimuyowiki.com/index.php?title=Template:Cal-date/offset&amp;diff=470&amp;oldid=prev"/>
		<updated>2022-04-24T10:48:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{#if:{{{monthoffset|}}}| {{#switch:{{#expr: {{{monthoffset}}} + {{{offset|0}}}}} |0=12 |13=1 |{{#expr: {{{monthoffset}}} + {{{offset|0}}}}} }} |}}&amp;lt;!--  Get the number of days in a month  --&amp;gt;{{#if:{{{daysinmonth|}}}| {{#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 | }}|}}&amp;lt;!--  isnextmonth params: isnextMonth (day), offset, month  --&amp;gt;{{#if:{{{isnextmonth|}}}|{{#ifeq:{{#expr: ({{{isnextmonth}}} + {{{offset|0}}}) &amp;gt; {{ca...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#if:{{{monthoffset|}}}|&lt;br /&gt;
{{#switch:{{#expr: {{{monthoffset}}} + {{{offset|0}}}}}&lt;br /&gt;
|0=12&lt;br /&gt;
|13=1&lt;br /&gt;
|{{#expr: {{{monthoffset}}} + {{{offset|0}}}}}&lt;br /&gt;
}}&lt;br /&gt;
|}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
Get the number of days in a month&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#if:{{{daysinmonth|}}}|&lt;br /&gt;
{{#switch:{{{daysinmonth}}}&lt;br /&gt;
|1=31&lt;br /&gt;
|2=29&lt;br /&gt;
|3=31&lt;br /&gt;
|4=30&lt;br /&gt;
|5=31&lt;br /&gt;
|6=30&lt;br /&gt;
|7=31&lt;br /&gt;
|8=31&lt;br /&gt;
|9=30&lt;br /&gt;
|10=31&lt;br /&gt;
|11=30&lt;br /&gt;
|12=31&lt;br /&gt;
|&lt;br /&gt;
}}|}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
isnextmonth&lt;br /&gt;
params: isnextMonth (day), offset, month&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#if:{{{isnextmonth|}}}|{{#ifeq:{{#expr: ({{{isnextmonth}}} + {{{offset|0}}}) &amp;gt; {{cal-date/offset2|daysinmonth={{{month|}}}}} }}|1|1|}}|}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
isprevmonth&lt;br /&gt;
params: isprevMonth (day), offset, month&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#if:{{{isprevmonth|}}}|{{#ifeq:{{#expr: ({{{isprevmonth}}} + {{{offset|0}}}) &amp;lt; 1}}|1|1|}}|}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
getoffsetmonth&lt;br /&gt;
params: getoffsetmonth (month), offset, day&lt;br /&gt;
returns: a numeric month&lt;br /&gt;
&lt;br /&gt;
NOTE: WILL NOT WORK CORRECTLY IF THE OFFSET IS MORE THAN A SINGLE DAY&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#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}}}}}|}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
getoffsetday - Get the day offset&lt;br /&gt;
NOTE: THIS DOES NOT WORK IF THE NUMBER OF DAYS BEING OFFSET IS MORE THAN 1.&lt;br /&gt;
params: getoffsetday (day), offset, month&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#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}}}}}}}|}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;[[Category:Meta templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dagon123</name></author>
	</entry>
</feed>