<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.miranda-ng.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AIndent%2Fdoc</id>
	<title>Template:Indent/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.miranda-ng.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AIndent%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.miranda-ng.org/index.php?title=Template:Indent/doc&amp;action=history"/>
	<updated>2026-10-20T12:13:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.miranda-ng.org/index.php?title=Template:Indent/doc&amp;diff=28686&amp;oldid=prev</id>
		<title>Goraf: Created page with &quot;{{Documentation subpage}} {{Lua|Module:Indent}}  The template {{Tc|Indent}} performs a newline and indents by a specified number of spaces. However, the spaces are not all the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.miranda-ng.org/index.php?title=Template:Indent/doc&amp;diff=28686&amp;oldid=prev"/>
		<updated>2018-04-15T14:53:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Lua|Module:Indent}}  The template {{Tc|Indent}} performs a newline and indents by a specified number of spaces. However, the spaces are not all the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Lua|Module:Indent}}&lt;br /&gt;
&lt;br /&gt;
The template {{Tc|Indent}} performs a newline and indents by a specified number of spaces. However, the spaces are not all the same size, but rather a mixture of [[wiki:en (typography)|en]]-size &amp;amp; [[wiki:em (typography)|em]]-size spaces that have been tested to work on a wide range of browsers. (To skip by {{var|n}} equal-size spaces, instead use {{tl2|In5|{{var|n}}}} which puts all as the standard-size &amp;quot;&amp;amp;nbsp;&amp;quot; space, and does not force a newline.)&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The indentation spacing generated by {{Tc|Indent}} will match the alignment of a colon-shift (&amp;quot;:&amp;quot;) by using {{tl2|Indent|5}}. To match &amp;quot;::&amp;quot;, use {{tl2|Indent|10}}.&lt;br /&gt;
* Note: This may vary depending on your browser.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Usage:&amp;#039;&amp;#039;&amp;#039; {{tl2|Indent|&amp;#039;&amp;#039;# of spaces&amp;#039;&amp;#039;}}&lt;br /&gt;
* Indents up to 30 spaces. (use {{tl2|In5|n}} to skip up to 50 spaces)&lt;br /&gt;
* Indent differs from {{tl2|Nbsp}} only in that it automatically begins a wrapped-newline, then spaces over {{var|n}} spaces, whereas {{tl|Nbsp}} spaces over {{var|n}} in the same (current) line.&lt;br /&gt;
&lt;br /&gt;
== Analysis of uneven spacing ==&lt;br /&gt;
As computers optimize code, they occasionally risk displaying unsavory results after condensing monotonous strings of characters (such as spaces). Thus, many templates around Wiki choose to avoid this hurdle by alternating different types of spaces (with the intention of displaying no differently than regular spaces).&lt;br /&gt;
&lt;br /&gt;
Spaces come in two main size varieties: &amp;#039;&amp;#039;[[wiki:em (typography)|em spaces]]&amp;#039;&amp;#039; and &amp;#039;&amp;#039;[[wiki:en (typography)|en spaces]]&amp;#039;&amp;#039;. Em spaces are generally defined as the width of one character, and en spaces exactly half that size. However, there is no requirement that browsers &amp;#039;&amp;#039;must&amp;#039;&amp;#039; conform to this standard, and so templates that code in en spaces &amp;#039;&amp;#039;may&amp;#039;&amp;#039; not display uniformly across all browsers. Neither {{Tl|Indent}} nor {{Tl|Nbsp}} use true space-size (that is, em-size spaces), but rather mix en and em spaces, whereas {{tl2|In5|{{var|n}}}} avoids en spaces altogether and will actually skip {{var|n}} count of spaces, as if inserting {{var|n}} repetitions of an em space. This is done by alternating em spaces with an em-size non-breaking &amp;lt;code&amp;gt;&amp;quot;&amp;amp;amp;nbsp;&amp;quot;&amp;lt;/code&amp;gt;—by definition, it must be the same—in order to skip a wide area.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:Indent]], the Lua module implementing this template.&lt;br /&gt;
* {{Tl|Nbsp}}, which uses non-breaking spaces.&lt;br /&gt;
* {{Tl|In5}}, which skips up to fifty equal en-sized spaces.&lt;br /&gt;
* {{Tl|Block indent}}, to indent an entire block of content, similar to a [[Template:Quote|block quotation]] (uses {{tag|div|o}} and CSS margins)&lt;br /&gt;
* {{Tl|Colon}}, to produce a colon character (&amp;quot;:&amp;quot;) without risk of affecting wiki markup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories go here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Goraf</name></author>
	</entry>
</feed>