<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki3d.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterval</id>
	<title>Module:Interval - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki3d.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterval"/>
	<link rel="alternate" type="text/html" href="https://mediawiki3d.org/index.php?title=Module:Interval&amp;action=history"/>
	<updated>2026-04-27T07:47:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://mediawiki3d.org/index.php?title=Module:Interval&amp;diff=827&amp;oldid=prev</id>
		<title>Bawolff: 1 revision imported from :wikipedia:en:Module:Interval</title>
		<link rel="alternate" type="text/html" href="https://mediawiki3d.org/index.php?title=Module:Interval&amp;diff=827&amp;oldid=prev"/>
		<updated>2025-08-16T02:01:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/en:Module:Interval&quot; class=&quot;extiw&quot; title=&quot;wikipedia:en:Module:Interval&quot;&gt;wikipedia:en:Module:Interval&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:01, 16 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki3d:diff:1.41:old-826:rev-827 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bawolff</name></author>
	</entry>
	<entry>
		<id>https://mediawiki3d.org/index.php?title=Module:Interval&amp;diff=826&amp;oldid=prev</id>
		<title>wikipedia:en&gt;Anomie: Changed protection level for &quot;Module:Interval&quot;: Syncing protection from formerly cascade-protected Template:ACEWatchlistNotice ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://mediawiki3d.org/index.php?title=Module:Interval&amp;diff=826&amp;oldid=prev"/>
		<updated>2018-11-29T01:11:27Z</updated>

		<summary type="html">&lt;p&gt;Changed protection level for &amp;quot;&lt;a href=&quot;/index.php/Module:Interval&quot; title=&quot;Module:Interval&quot;&gt;Module:Interval&lt;/a&gt;&amp;quot;: Syncing protection from formerly cascade-protected &lt;a href=&quot;/index.php?title=Template:ACEWatchlistNotice&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:ACEWatchlistNotice (page does not exist)&quot;&gt;Template:ACEWatchlistNotice&lt;/a&gt; ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module powers {{interval}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Constants&lt;br /&gt;
local lang = mw.language.getContentLanguage()&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
local function getArgNums(args)&lt;br /&gt;
    -- Returns an array containing the keys of all positional arguments&lt;br /&gt;
    -- that contain data (i.e. non-whitespace values).&lt;br /&gt;
    -- (from Module:Unbulleted_list)&lt;br /&gt;
    local nums = {}&lt;br /&gt;
    for k, v in pairs(args) do&lt;br /&gt;
        if type(k) == &amp;#039;number&amp;#039; and&lt;br /&gt;
            k &amp;gt;= 1 and&lt;br /&gt;
            math.floor(k) == k and&lt;br /&gt;
            mw.ustring.match(v, &amp;#039;%S&amp;#039;) then&lt;br /&gt;
                table.insert(nums, k)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    table.sort(nums)&lt;br /&gt;
    return nums&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args = getArgs(frame)&lt;br /&gt;
    return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
    local n, rule, format = args.n, args.rule, args.format&lt;br /&gt;
    local numbers = getArgNums(args)&lt;br /&gt;
    local low, high, lowpos, highpos = nil, nil, 0, #numbers + 1&lt;br /&gt;
&lt;br /&gt;
    -- If comparing times, convert them all to seconds after the epoch&lt;br /&gt;
    if format == &amp;#039;time&amp;#039; then&lt;br /&gt;
        if n then&lt;br /&gt;
            n = lang:formatDate(&amp;#039;U&amp;#039;, &amp;#039;@&amp;#039; .. n)&lt;br /&gt;
        else&lt;br /&gt;
            n = os.time() -- Set n to now if no time provided&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    n = tonumber(n)&lt;br /&gt;
&lt;br /&gt;
    for i, num in ipairs(numbers) do&lt;br /&gt;
        local interval&lt;br /&gt;
        if format == &amp;#039;time&amp;#039; then&lt;br /&gt;
            interval = tonumber(lang:formatDate(&amp;#039;U&amp;#039;, &amp;#039;@&amp;#039; .. args[num]))&lt;br /&gt;
        else&lt;br /&gt;
            interval = tonumber(args[num])&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if n and ((n &amp;gt;= interval and not rule) or (n &amp;gt; interval and rule == &amp;#039;&amp;gt;&amp;#039;)) then&lt;br /&gt;
            low = interval&lt;br /&gt;
            lowpos = num&lt;br /&gt;
        else&lt;br /&gt;
            high = high and math.min(interval, high) or interval&lt;br /&gt;
            if high == interval then highpos = num end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return lowpos .. &amp;#039;-&amp;#039; .. highpos&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia:en&gt;Anomie</name></author>
	</entry>
</feed>