<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3AIn5</id>
	<title>Module:In5 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3AIn5"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:In5&amp;action=history"/>
	<updated>2026-04-08T10:54:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:In5&amp;diff=14444&amp;oldid=prev</id>
		<title>Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:In5&amp;diff=14444&amp;oldid=prev"/>
		<updated>2020-10-28T13:41:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:41, 28 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:In5&amp;diff=12608&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;-- This module implements {{in5}}.  local p = {}  function p.in5(frame)     local indent = frame.args[1]     -- Trim whitespace and convert to number. Default to 5 if not pres...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:In5&amp;diff=12608&amp;oldid=prev"/>
		<updated>2020-10-19T13:54:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- This module implements {{in5}}.  local p = {}  function p.in5(frame)     local indent = frame.args[1]     -- Trim whitespace and convert to number. Default to 5 if not pres...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:54, 19 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:In5&amp;diff=14443&amp;oldid=prev</id>
		<title>wikipedia&gt;MusikAnimal: Protected &quot;Module:In5&quot;: High-risk module ([Edit=Require autoconfirmed or confirmed access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:In5&amp;diff=14443&amp;oldid=prev"/>
		<updated>2019-01-24T21:24:24Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/Module:In5&quot; title=&quot;Module:In5&quot;&gt;Module:In5&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.wikipedia.org/wiki/High-risk_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:High-risk templates&quot;&gt;High-risk module&lt;/a&gt; ([Edit=Require autoconfirmed or confirmed access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{in5}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.in5(frame)&lt;br /&gt;
    local indent = frame.args[1]&lt;br /&gt;
    -- Trim whitespace and convert to number. Default to 5 if not present,&lt;br /&gt;
    -- as per the template title.&lt;br /&gt;
    indent = tonumber( mw.text.trim(indent) ) or 5&lt;br /&gt;
    -- Round down to nearest integer. Decimal values produce funky results&lt;br /&gt;
    -- from the original template, but there&amp;#039;s no need for us to replicate that.&lt;br /&gt;
    indent = math.floor( indent )&lt;br /&gt;
    -- Don&amp;#039;t output anything for zero or less. Again, there was some funky output&lt;br /&gt;
    -- here for negatives, but now we&amp;#039;re in Lua we should use sane defaults.&lt;br /&gt;
    if indent &amp;lt;= 0 then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    local base = &amp;#039;&amp;amp;nbsp; &amp;#039;&lt;br /&gt;
    local modulo = &amp;#039;&amp;amp;nbsp;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
--[[&lt;br /&gt;
    Indent values and the corresponding values for base and modulo:&lt;br /&gt;
&lt;br /&gt;
    indent  base    modulo&lt;br /&gt;
    1       0       1&lt;br /&gt;
    2       0       2&lt;br /&gt;
    3       1       1&lt;br /&gt;
    4       1       2&lt;br /&gt;
    5       2       1&lt;br /&gt;
    6       2       2&lt;br /&gt;
    7       3       1&lt;br /&gt;
    8       3       2&lt;br /&gt;
    9       4       1&lt;br /&gt;
    10      4       2&lt;br /&gt;
]]&lt;br /&gt;
    &lt;br /&gt;
    local baseNum = math.floor( (indent - 1) / 2 )&lt;br /&gt;
    local modNum = math.fmod( indent - 1 , 2 ) + 1&lt;br /&gt;
    &lt;br /&gt;
    return mw.ustring.rep( base, baseNum) .. mw.ustring.rep( modulo, modNum )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;MusikAnimal</name></author>
	</entry>
</feed>