<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AInterval%2Fdoc</id>
	<title>Template:Interval/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AInterval%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Interval/doc&amp;action=history"/>
	<updated>2026-12-06T21:41:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Interval/doc&amp;diff=168927&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Doc creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Interval/doc&amp;diff=168927&amp;oldid=prev"/>
		<updated>2024-01-23T23:03:04Z</updated>

		<summary type="html">&lt;p&gt;Doc creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{lua|Module:Interval}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This template determines which interval a given value lies in.&lt;br /&gt;
&lt;br /&gt;
The intervals are defined by the unnamed parameters. The value to be determined is named parameter &amp;#039;&amp;#039;n&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;format=time&amp;lt;/code&amp;gt; can also be passed to the template. If set, the intervals and value will be compared as times (and if n is not provided, it will evaluate as the current timestamp).&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Passing 2, 4 and 6 as the unnamed parameters defines the following intervals:&lt;br /&gt;
* -∞&amp;lt;x&amp;lt;2&lt;br /&gt;
* 2≤x&amp;lt;4&lt;br /&gt;
* 4≤x&amp;lt;6&lt;br /&gt;
* 6≤x&amp;lt;∞&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
*{{tlx|Interval|2=n=1|3=2|4=4|5=6}} gives {{Interval|n=1|2|4|6}} because 1 is in the interval between the 0th and 1st values.&lt;br /&gt;
*{{tlx|Interval|2=n=4|3=2|4=4|5=6}} gives {{Interval|n=4|2|4|6}} because 4 is in the interval between the 2nd and 3rd values.&lt;br /&gt;
*{{tlx|Interval|2=n=5|3=2|4=4|5=6}} gives {{Interval|n=5|2|4|6}} because 5 is in the interval between the 2nd and 3rd values.&lt;br /&gt;
*{{tlx|Interval|2=n=6|3=2|4=4|5=6}} gives {{Interval|n=6|2|4|6}} because 6 is in the interval between the 3rd and 4th values.&lt;br /&gt;
&lt;br /&gt;
==== Time ====&lt;br /&gt;
* {{tlx|1=interval|2=14 October|3=24 October|4=29 October|5=7 December|6=format=time}} produces {{interval|14 October|24 October|29 October|7 December|format=time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:If-then-else templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>