<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://informatiestandaarden.test-nictiz.nl/index.php?action=history&amp;feed=atom&amp;title=Sjabloon%3ASp%2Fdoc</id>
	<title>Sjabloon:Sp/doc - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://informatiestandaarden.test-nictiz.nl/index.php?action=history&amp;feed=atom&amp;title=Sjabloon%3ASp%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Sp/doc&amp;action=history"/>
	<updated>2026-04-28T11:28:33Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Sp/doc&amp;diff=2009&amp;oldid=prev</id>
		<title>Ahenket: Nieuwe pagina aangemaakt met &#039;{{Documentation subpage}}  &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  === Usage ===  {{tlx|sp}} will insert a single, ordinary space ...&#039;</title>
		<link rel="alternate" type="text/html" href="https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Sp/doc&amp;diff=2009&amp;oldid=prev"/>
		<updated>2013-07-18T07:23:37Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;{{Documentation subpage}}  &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  === Usage ===  {{tlx|sp}} will insert a single, ordinary space ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
{{tlx|sp}} will insert a single, ordinary space character.&lt;br /&gt;
&lt;br /&gt;
====Anywhere you need a regular space====&lt;br /&gt;
&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;
&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;tt&amp;gt;I like green.&amp;lt;/tt&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;tt&amp;gt;I like greenand blue.&amp;lt;/tt&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;tt&amp;gt;green and&amp;lt;/tt&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;tt&amp;gt;I like green .&amp;lt;/tt&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;tt&amp;gt;I like greenand blue.&amp;lt;/tt&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;tt&amp;gt;I like green and blue.&amp;lt;/tt&amp;gt;&amp;#039;) or not set at all (&amp;#039;&amp;lt;tt&amp;gt;I like green.&amp;lt;/tt&amp;gt;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
====Disabling default substitution====&lt;br /&gt;
&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;
&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;
&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;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Typing-aid templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ahenket</name></author>
	</entry>
</feed>