<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.filipefonseca.pt/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="http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Module%3AOutdent"/>
	<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Module:Outdent&amp;action=history"/>
	<updated>2026-04-19T11:27:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://wiki.filipefonseca.pt/index.php?title=Module:Outdent&amp;diff=4347&amp;oldid=prev</id>
		<title>FilipeFonseca: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Module:Outdent&amp;diff=4347&amp;oldid=prev"/>
		<updated>2021-07-08T13:12:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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('Module:Arguments').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['r'] = args['reverse'] or args['indent'] or args['r'] or args['in']	-- aliases for reverse&lt;br /&gt;
	if not args[1] then args[1] = '' end                                        -- un-nil args[1]&lt;br /&gt;
	&lt;br /&gt;
	width = width + select(2, string.gsub(args[1],':',''))						-- increase by 1 for every :&lt;br /&gt;
	width = width + select(2, string.gsub(args[1],'*',''))						-- increase by 1 for every *&lt;br /&gt;
	width = width + select(2, string.gsub(args[1],'#','')) * 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['r'] = not args['r']&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;lt;span style=&amp;quot;display:block;width:' .. width .. 'em;height:0.5em;' .. (width == 0 and '' or 'border-bottom:1px solid #AAA;') .. 'border-' .. ((width == 0 or args['r']) and 'left' or 'right') ..':1px solid #AAA;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;' -- top half&lt;br /&gt;
	local bottom = '&amp;lt;span style=&amp;quot;display:block;width:' .. width .. 'em;height:0.5em;border-' .. (args['r'] and 'right' or 'left') .. ':1px solid #AAA;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;' -- bottom half&lt;br /&gt;
	local note = args[2] and '&amp;lt;span&amp;gt;([[Wikipedia:Indentation#Outdenting|outdent]])&amp;amp;#32;&amp;lt;/span&amp;gt;' or '' -- note&lt;br /&gt;
	&lt;br /&gt;
	return '&amp;lt;div class=&amp;quot;outdent-template&amp;quot; style=&amp;quot;position:relative;left:1px;&amp;quot;&amp;gt;' .. top .. bottom .. note .. '&amp;lt;/div&amp;gt;';&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>FilipeFonseca</name></author>
	</entry>
</feed>