<?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=Template%3ANs%2Fdoc</id>
	<title>Template:Ns/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ANs%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Ns/doc&amp;action=history"/>
	<updated>2026-04-07T21:28:43Z</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=Template:Ns/doc&amp;diff=15417&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=Template:Ns/doc&amp;diff=15417&amp;oldid=prev"/>
		<updated>2020-11-05T11:04:44Z</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 11:04, 5 November 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=Template:Ns/doc&amp;diff=15416&amp;oldid=prev</id>
		<title>wikipedia&gt;Funandtrvl: /* See also */ already in navbox</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Ns/doc&amp;diff=15416&amp;oldid=prev"/>
		<updated>2020-09-10T19:37:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; already in navbox&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Hatnote |This template inserts [[Non-breaking space|non-breaking (non-linewrapping) space]]s. For the flag template &amp;quot;NS&amp;quot;, see {{tl|NS}}. For the [[Help:Magic words|magic word]] &amp;quot;&amp;lt;nowiki&amp;gt;{{ns:}}&amp;lt;/nowiki&amp;gt;&amp;quot;, see [[mw:Help:Magic words#Namespaces_2]].}}&lt;br /&gt;
{{documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
[[Template:ns]] is designed to insert between 0 and 83 [[Non-breaking space|non-breaking (non-linewrapping) space]]s rapidly according to the number assigned as its first (unnamed) parameter. If this parameter is not supplied or its value is not numeric, it inserts a default three non-breaking spaces. &lt;br /&gt;
&lt;br /&gt;
===Usage and examples===&lt;br /&gt;
{{Aligned table |cols=3 |style=line-height:1.35em;&lt;br /&gt;
 |col1style=font-family:monospace;padding-left:1.4em; |col2style=font-size:90%;padding:0 2.0em;vertical-align:bottom;font-style:italic;&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt; Three{{ns}}spaces{{ns}}between{{ns}}each{{ns}}word &amp;lt;/nowiki&amp;gt; | produces: | Three{{ns}}spaces{{ns}}between{{ns}}each{{ns}}word&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt; Ten{{ns|10}}eight{{ns|8}}six{{ns|6}}four{{ns|4}}!  &amp;lt;/nowiki&amp;gt; | produces: | Ten{{ns|10}}eight{{ns|8}}six{{ns|6}}four{{ns|4}}!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The effect of the count, such as in &amp;quot;{&amp;amp;#123;ns|30}}&amp;quot; is identical to putting 30 copies of &amp;quot;&amp;amp;amp;#160;&amp;quot; into the text.&lt;br /&gt;
&lt;br /&gt;
In translation of text to uppercase letters, the spacing is retained. Compare:&lt;br /&gt;
::* &amp;lt;nowiki&amp;gt;{{uc: Begin{{ns|4}}end }}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{uc: Begin{{ns|4}}end }}&lt;br /&gt;
::* &amp;lt;nowiki&amp;gt;{{uc: Begin{{spaces|4}}end }}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{uc: Begin{{spaces|4}}end }}&lt;br /&gt;
For gaps wider than 83 spaces, then multiple instances can be used, such as &amp;lt;nowiki&amp;gt;&amp;quot;{{ns|80}}{{ns|10}}&amp;quot;&amp;lt;/nowiki&amp;gt; to insert 90 non-breaking spaces.&lt;br /&gt;
&lt;br /&gt;
===Performance considerations===&lt;br /&gt;
[[Template:ns]] has been designed to rapidly insert a few, or numerous, non-breaking spaces where wrapping is not wanted, such as to pad table headings or align some entries in columns. It has been clocked to run faster than 1,530x times per second (in December 2012). The number of spaces, from 0 to 83, does not affect the speed of formatting. It invokes the [[Help:Magic words#Parser functions|parser function]] &amp;quot;padleft:&amp;quot; to repeat &amp;quot;&amp;amp;amp;#160;&amp;quot; several, or dozens, of times. Also, the expansion depth has been kept limited, as only 5 levels deep, to allow use anywhere, to generate spaces in any complex templates or tables.&lt;br /&gt;
&lt;br /&gt;
Beyond the maximum count of 83 spaces, the template truncates at 500-characters long (limited by padleft), with &amp;quot;&amp;amp;amp;#&amp;quot; at the end. The default count, as 3 spaces, was chosen because a 1-or-2-space gap is often coded as simply &amp;quot;&amp;amp;nbsp;&amp;amp;amp;nbsp;&amp;quot; and hence, 3 spaces is the first gap needing longer markup. The short template name, &amp;quot;ns&amp;quot; avoids transposing letters as &amp;quot;nsbp&amp;quot; for [[dyslexic]] users.&lt;br /&gt;
&lt;br /&gt;
For gaps wider than 83 spaces, then multiple instances of {ns} can be used, such as &amp;lt;nowiki&amp;gt;&amp;quot;{{ns|80}}{{ns|10}}&amp;quot;&amp;lt;/nowiki&amp;gt; to insert 90 non-breaking spaces.&lt;br /&gt;
&lt;br /&gt;
===TemplateData===&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
  &amp;quot;description&amp;quot;: &amp;quot;Inserts a given number of non breaking spaces.&amp;quot;,&lt;br /&gt;
  &amp;quot;params&amp;quot;: {&lt;br /&gt;
    &amp;quot;1&amp;quot;: {&lt;br /&gt;
      &amp;quot;label&amp;quot;: &amp;quot;Number&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;The number of spaces to insert. Must be less than 83. The default is three spaces.&amp;quot;,&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;required&amp;quot;: false&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* [[Template:nowrap]], to join text or wikilinks as non-wrapped.&lt;br /&gt;
{{Inline spacing templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Inline spacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Funandtrvl</name></author>
	</entry>
</feed>