<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thegoonshow.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIndent</id>
	<title>Module:Indent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.thegoonshow.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIndent"/>
	<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Indent&amp;action=history"/>
	<updated>2026-05-04T03:52:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Indent&amp;diff=23428&amp;oldid=prev</id>
		<title>Kurt: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Indent&amp;diff=23428&amp;oldid=prev"/>
		<updated>2022-10-14T21:25:20Z</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 16:25, 14 October 2022&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>Kurt</name></author>
	</entry>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Indent&amp;diff=23427&amp;oldid=prev</id>
		<title>en&gt;MusikBot II: Changed protection settings for &quot;Module:Indent&quot;: High-risk template or module: 3892 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Module:Indent&amp;diff=23427&amp;oldid=prev"/>
		<updated>2022-02-22T18:00:05Z</updated>

		<summary type="html">&lt;p&gt;Changed protection settings for &amp;quot;&lt;a href=&quot;/wiki/index.php?title=Module:Indent&quot; title=&quot;Module:Indent&quot;&gt;Module:Indent&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 template or module&lt;/a&gt;: 3892 transclusions (&lt;a href=&quot;/wiki/index.php?title=User:MusikBot_II/TemplateProtector&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:MusikBot II/TemplateProtector (page does not exist)&quot;&gt;more info&lt;/a&gt;) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.indent(frame)&lt;br /&gt;
    -- Trim whitespace from the arguments and remove blank values.&lt;br /&gt;
    local args = {}&lt;br /&gt;
    if type(frame.args) == 'table' then&lt;br /&gt;
        for k, v in pairs( frame.args ) do&lt;br /&gt;
            v = mw.text.trim(v)&lt;br /&gt;
            if v ~= '' then&lt;br /&gt;
                args[k] = v&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Set variables.&lt;br /&gt;
    local indent = tonumber( args[1] )&lt;br /&gt;
    local br = args[2]&lt;br /&gt;
    local ret = ''&lt;br /&gt;
    &lt;br /&gt;
    -- Insert line breaks to match the functionality of the original template.&lt;br /&gt;
    -- If &amp;quot;br&amp;quot; is set, we need two line breaks; if not, we just need one.&lt;br /&gt;
    if br then&lt;br /&gt;
        ret = ret .. '&amp;lt;br /&amp;gt;' &lt;br /&gt;
    end&lt;br /&gt;
    ret = ret .. '&amp;lt;br /&amp;gt;'&lt;br /&gt;
    &lt;br /&gt;
    -- Control for bad or zero input. If found, output the line breaks only, &lt;br /&gt;
    -- as this was the previous behaviour of the template.&lt;br /&gt;
    if not indent or indent &amp;lt;= 0 or math.floor(indent) ~= indent then&lt;br /&gt;
        return ret&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Generate the indents. The first four cases are special.&lt;br /&gt;
    if indent == 1 then&lt;br /&gt;
        return ret .. '&amp;amp;nbsp;'&lt;br /&gt;
    elseif indent == 2 then&lt;br /&gt;
        return ret .. '&amp;amp;nbsp;&amp;amp;nbsp;'&lt;br /&gt;
    elseif indent == 3 then&lt;br /&gt;
        return ret .. '&amp;amp;nbsp;&amp;amp;emsp;&amp;amp;nbsp;'&lt;br /&gt;
    elseif indent == 4 then&lt;br /&gt;
        return ret .. '&amp;amp;nbsp; &amp;amp;emsp; &amp;amp;nbsp;'&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Set variables for generating the output after indent == 5.&lt;br /&gt;
    local r = {}&lt;br /&gt;
    r.base = '&amp;amp;nbsp;' -- Common text to all output.&lt;br /&gt;
    r.rep = ' &amp;amp;emsp; &amp;amp;nbsp;' -- The text to repeat.&lt;br /&gt;
    r.mod1 = '&amp;amp;nbsp;' -- To return on modulo 1.&lt;br /&gt;
    r.mod2 = ' &amp;amp;emsp;' -- To return on modulo 2.&lt;br /&gt;
    r.mod3 = ' &amp;amp;emsp;&amp;amp;nbsp;' -- To return on modulo 3.&lt;br /&gt;
    &lt;br /&gt;
    -- New iteratorText values needed at 5, 9, 13, 17, etc., so repeat the&lt;br /&gt;
    -- text (indent - 1)/4 times and find the remainder.&lt;br /&gt;
    local reps = math.floor( (indent - 1) / 4 )&lt;br /&gt;
    local remainder = math.fmod( indent - 1, 4 )&lt;br /&gt;
    &lt;br /&gt;
    -- Generate the indent text.&lt;br /&gt;
    ret = ret .. r.base .. mw.ustring.rep( r.rep, reps )&lt;br /&gt;
    if remainder &amp;gt;= 1 and remainder &amp;lt;= 3 then&lt;br /&gt;
        ret = ret .. r[ 'mod' .. remainder ]&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>en&gt;MusikBot II</name></author>
	</entry>
</feed>