<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://thehillside.info/index.php?action=history&amp;feed=atom&amp;title=Template%3ASp%2Fdoc</id>
	<title>Template:Sp/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://thehillside.info/index.php?action=history&amp;feed=atom&amp;title=Template%3ASp%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://thehillside.info/index.php?title=Template:Sp/doc&amp;action=history"/>
	<updated>2026-05-08T18:12:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://thehillside.info/index.php?title=Template:Sp/doc&amp;diff=2721&amp;oldid=prev</id>
		<title>Maintenance script: Protected &quot;Template:Sp/doc&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://thehillside.info/index.php?title=Template:Sp/doc&amp;diff=2721&amp;oldid=prev"/>
		<updated>2020-07-01T10:16:43Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php/Template:Sp/doc&quot; title=&quot;Template:Sp/doc&quot;&gt;Template:Sp/doc&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:16, 1 July 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key hillsideprod:diff:1.41:old-2264:rev-2721 --&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>https://thehillside.info/index.php?title=Template:Sp/doc&amp;diff=2264&amp;oldid=prev</id>
		<title>SheldonBole: 1 revision imported: Import Template:Sp</title>
		<link rel="alternate" type="text/html" href="https://thehillside.info/index.php?title=Template:Sp/doc&amp;diff=2264&amp;oldid=prev"/>
		<updated>2020-06-18T06:56:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Import Template:Sp&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:56, 18 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key hillsideprod:diff:1.41:old-2263:rev-2264 --&gt;
&lt;/table&gt;</summary>
		<author><name>SheldonBole</name></author>
	</entry>
	<entry>
		<id>https://thehillside.info/index.php?title=Template:Sp/doc&amp;diff=2263&amp;oldid=prev</id>
		<title>en&gt;Daviddwd: TD</title>
		<link rel="alternate" type="text/html" href="https://thehillside.info/index.php?title=Template:Sp/doc&amp;diff=2263&amp;oldid=prev"/>
		<updated>2019-04-04T23:01:57Z</updated>

		<summary type="html">&lt;p&gt;TD&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;
&amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{distinguish|template:sp?}}&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
{{tlx|sp}} will insert a single, ordinary space character. It can serve as a human-readable alternative to the &amp;lt;code&amp;gt;&amp;amp;amp;#32;&amp;lt;/code&amp;gt; [[numeric character reference]].&lt;br /&gt;
&lt;br /&gt;
====Anywhere you need a regular space====&lt;br /&gt;
You can use {{tl|sp}} anywhere you need a regular, breaking space. If you need a non-breaking space or multiple spaces in a row, use {{tl|space}}.&lt;br /&gt;
&lt;br /&gt;
====Inserting a space inside a parser function====&lt;br /&gt;
Sometimes when using [[Help:parser functions|parser functions]], you need to insert a space at the beginning or end of an optional message. {{tl|sp}} can be used for that purpose. In the following examples, look closely at the spacing between words and punctuation to see the subtle differences.&lt;br /&gt;
&lt;br /&gt;
;Example&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;I like green{{#if:{{{blue|}}}|and blue}}.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The above example works fine if &amp;#039;blue&amp;#039; does not have a value (&amp;#039;&amp;lt;code&amp;gt;I like green.&amp;lt;/code&amp;gt;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
However, if &amp;#039;blue&amp;#039; is set to true (&amp;lt;code&amp;gt;|blue=true&amp;lt;/code&amp;gt;), then the message is incorrectly run together (&amp;#039;&amp;lt;code&amp;gt;I like greenand blue.&amp;lt;/code&amp;gt;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;I like green {{#if:{{{blue|}}}|and blue}}.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Adding the space between &amp;#039;green&amp;#039; and &amp;#039;&amp;amp;#123;&amp;amp;#123;#if&amp;#039; avoids running the &amp;#039;&amp;lt;code&amp;gt;green and&amp;lt;/code&amp;gt;&amp;#039; together, but now there will be an extra space if &amp;#039;blue&amp;#039; is not set (&amp;#039;&amp;lt;code&amp;gt;I like green .&amp;lt;/code&amp;gt;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;I like green{{#if:{{{blue|}}}| and blue}}.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Adding the space between the pipe (&amp;#039;&amp;amp;#124;&amp;#039;) and the word &amp;#039;and&amp;#039; doesn&amp;#039;t work. Any leading or trailing spaces from a parser function output are stripped, so this produces exactly the same output as the first example when &amp;#039;blue&amp;#039; is true (&amp;#039;&amp;lt;code&amp;gt;I like greenand blue.&amp;lt;/code&amp;gt;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;I like green{{#if:{{{blue|}}}|{{sp}}and blue}}.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This one works! By inserting the {{tl|sp}} in the parser function output, the space is not stripped, and the correct output is given whether blue is set to true (&amp;#039;&amp;lt;code&amp;gt;I like green and blue.&amp;lt;/code&amp;gt;&amp;#039;) or not set at all (&amp;#039;&amp;lt;code&amp;gt;I like green.&amp;lt;/code&amp;gt;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
====Disabling default substitution====&lt;br /&gt;
Suppose you have a template, {{tl|Example}}, that uses [[WP:substitution|substitution]], like this:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{{{{subst|subst:}}}#if{{{condition|}}}|message}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
When the template is [[WP:Transclusion|transcluded]] and saved, the result would be interpreted as:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{subst:#if{{{condition|}}}|message}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could override the substitution by setting the &amp;#039;subst&amp;#039; attribute to {{tl|sp}}:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Example| subst={{sp}} }}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now the result would be interpreted as:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{ #if{{{condition|}}}|message}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The extra blank space preceding the &amp;#039;#if&amp;#039; would not affect the template at all (except to suppress the default substitution).&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{tlx|space}}: A similar template that is often more useful except when working with parser functions&lt;br /&gt;
* {{tlx|fdw-iw}}: A template that uses {{tl|sp}} with parser functions&lt;br /&gt;
* {{tlx|sp?}}: for spelling issues&lt;br /&gt;
* {{Tl|Nnbsp}}&lt;br /&gt;
{{Inline spacing templates}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:Inline spacing templates]]&lt;br /&gt;
[[Category:Typing-aid templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Inserts a single space character; mainly used in parser functions&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Daviddwd</name></author>
	</entry>
</feed>