<?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%3AOutdent</id>
	<title>Module:Outdent - 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%3AOutdent"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:Outdent&amp;action=history"/>
	<updated>2026-04-07T22:48:07Z</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:Outdent&amp;diff=12219&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;local p = {} local getArgs = require(&#039;Module:Arguments&#039;).getArgs  function p.outdent (frame)  	local args = getArgs(frame) 	local width = 0 	 	args[&#039;r&#039;] = args[&#039;reverse&#039;] or a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:Outdent&amp;diff=12219&amp;oldid=prev"/>
		<updated>2020-10-18T18:03:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs  function p.outdent (frame)  	local args = getArgs(frame) 	local width = 0 	 	args[&amp;#039;r&amp;#039;] = args[&amp;#039;reverse&amp;#039;] or a...&amp;quot;&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;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
function p.outdent (frame) &lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local width = 0&lt;br /&gt;
	&lt;br /&gt;
	args[&amp;#039;r&amp;#039;] = args[&amp;#039;reverse&amp;#039;] or args[&amp;#039;indent&amp;#039;] or args[&amp;#039;r&amp;#039;] or args[&amp;#039;in&amp;#039;]	-- aliases for reverse&lt;br /&gt;
	if not args[1] then args[1] = &amp;#039;&amp;#039; end                                        -- un-nil args[1]&lt;br /&gt;
	&lt;br /&gt;
	width = width + select(2, string.gsub(args[1],&amp;#039;:&amp;#039;,&amp;#039;&amp;#039;))						-- increase by 1 for every :&lt;br /&gt;
	width = width + select(2, string.gsub(args[1],&amp;#039;*&amp;#039;,&amp;#039;&amp;#039;))						-- increase by 1 for every *&lt;br /&gt;
	width = width + select(2, string.gsub(args[1],&amp;#039;#&amp;#039;,&amp;#039;&amp;#039;)) * 2					-- increase by 2 for every #&lt;br /&gt;
	&lt;br /&gt;
	if width == 0 then width = tonumber(args[1]) end							-- set width to args[1] if needed&lt;br /&gt;
	&lt;br /&gt;
	if not width then width = 10 end											-- default width&lt;br /&gt;
	if width &amp;lt; 0&lt;br /&gt;
	then&lt;br /&gt;
		width = -width&lt;br /&gt;
		args[&amp;#039;r&amp;#039;] = not args[&amp;#039;r&amp;#039;]&lt;br /&gt;
	end&lt;br /&gt;
	if width &amp;gt; 40 then width = 40 end											-- max width&lt;br /&gt;
	&lt;br /&gt;
	width = width * 1.6															-- set width to proper width&lt;br /&gt;
	&lt;br /&gt;
	local top = &amp;#039;&amp;lt;span style=&amp;quot;display:block;width:&amp;#039; .. width .. &amp;#039;em;height:0.5em;&amp;#039; .. (width == 0 and &amp;#039;&amp;#039; or &amp;#039;border-bottom:1px solid #AAA;&amp;#039;) .. &amp;#039;border-&amp;#039; .. ((width == 0 or args[&amp;#039;r&amp;#039;]) and &amp;#039;left&amp;#039; or &amp;#039;right&amp;#039;) ..&amp;#039;:1px solid #AAA;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;#039; -- top half&lt;br /&gt;
	local bottom = &amp;#039;&amp;lt;span style=&amp;quot;display:block;width:&amp;#039; .. width .. &amp;#039;em;height:0.5em;border-&amp;#039; .. (args[&amp;#039;r&amp;#039;] and &amp;#039;right&amp;#039; or &amp;#039;left&amp;#039;) .. &amp;#039;:1px solid #AAA;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;#039; -- bottom half&lt;br /&gt;
	local note = args[2] and &amp;#039;&amp;lt;span&amp;gt;([[Wikipedia:Indentation#Outdenting|outdent]])&amp;amp;#32;&amp;lt;/span&amp;gt;&amp;#039; or &amp;#039;&amp;#039; -- note&lt;br /&gt;
	&lt;br /&gt;
	return &amp;#039;&amp;lt;div class=&amp;quot;outdent-template&amp;quot; style=&amp;quot;position:relative;left:1px;&amp;quot;&amp;gt;&amp;#039; .. top .. bottom .. note .. &amp;#039;&amp;lt;/div&amp;gt;&amp;#039;;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>