<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3A%5C%2Fdoc</id>
	<title>Template:\/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3A%5C%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:%5C/doc&amp;action=history"/>
	<updated>2026-04-05T09:18:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:%5C/doc&amp;diff=27879&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:%5C/doc&amp;diff=27879&amp;oldid=prev"/>
		<updated>2016-09-23T21:42:20Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}} __NOTOC__&lt;br /&gt;
&amp;lt;!----PLEASE CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----&amp;gt;&lt;br /&gt;
This is the &amp;quot;slash&amp;quot; template, which produces &amp;quot;{{thin space}}&amp;lt;code&amp;gt;&amp;amp;nbsp;/&amp;lt;/code&amp;gt;{{thin space}}&amp;quot;, i.e. a non-breaking space followed by a (forward-)slash character. It is most often used to indicate alternatives within a (horizontal) list of items, such as:&lt;br /&gt;
: ''{{hlist|class=nowrap |item 1 |item 2 |item 3a{{\}}3b{{\}}3c |item 4 |item 5 |(etc)}}''&lt;br /&gt;
The template is named using the [[backslash]] character (&amp;quot;{{thin space}}\{{thin space}}&amp;quot;) as slashes cannot be used in page names.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
To maintain good linewrapping, there should be no space between the template and whatever precedes it. There's also no need to include a space after the template, although doing so should not affect its function.&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Salt]]{{\}}[[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;nbsp;...produces...&amp;amp;nbsp; Salt{{\}}Pepper&lt;br /&gt;
&lt;br /&gt;
If linewrapping (i.e. a line-break) is required, the template ensures it occurs ''after'' the slash, not before:&lt;br /&gt;
:Salt / &lt;br /&gt;
:Pepper&lt;br /&gt;
&lt;br /&gt;
For long slashed lists, each list item can be put on its own line with no spaces between each item and the template, like this:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
   Salt{{\}}&lt;br /&gt;
   Pepper{{\}}&lt;br /&gt;
   Curry{{\}}&lt;br /&gt;
   Saffron&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(It doesn't matter if there are no or some spaces at the end of the lines, after the templates.)&lt;br /&gt;
&lt;br /&gt;
As before, it will render one space on each side of the slashes, like this:&lt;br /&gt;
:Salt / Pepper / Curry / Saffron&lt;br /&gt;
&lt;br /&gt;
Also, if it line breaks, then the line break will come ''after'' one of the slashes, not before, like this:&lt;br /&gt;
:Salt / Pepper / &lt;br /&gt;
:Curry / Saffron&lt;br /&gt;
&lt;br /&gt;
===Incorrect usage===&lt;br /&gt;
If the template is used slightly wrong, it will, in some cases, still behave well. For instance, if there are zero or several spaces after the template, like these examples:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]{{\}}[[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]{{\}}   [[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both of them will render exactly as before, with just one space on each side of the slash, like this:&lt;br /&gt;
:[[Salt]] / [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
And it will still only line break ''after'' the slash, like this:&lt;br /&gt;
:[[Salt]] / &lt;br /&gt;
:[[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
However, putting one or more spaces before the template will cause problems, like these examples:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]] {{\}}[[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]   {{\}}[[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]] {{\}} [[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Salt]]   {{\}}   [[Black pepper|Pepper]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it will render with ''two'' spaces before the slash and one after, like this:&lt;br /&gt;
:[[Salt]] &amp;amp;nbsp;/ [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
Also, if it line breaks, it might break ''before'' the slash, like this:&lt;br /&gt;
:[[Salt]] &lt;br /&gt;
:&amp;amp;nbsp;/ [[Black pepper|Pepper]]&lt;br /&gt;
&lt;br /&gt;
== Technical details  ==&lt;br /&gt;
&lt;br /&gt;
The space before the slash is a non-breaking space. That means it will not line break and will not collapse together with normal spaces that come before the template.&lt;br /&gt;
&lt;br /&gt;
The space after the slash is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space.&lt;br /&gt;
&lt;br /&gt;
Under some circumstances, slashed link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* Other templates using non-breaking spaces to format inline presentation:&lt;br /&gt;
*: {{tl2|·}} or {{tl2|dot}}, the &amp;quot;bold middot&amp;quot; template (producing &amp;quot;&amp;amp;nbsp;'''&amp;amp;middot;'''&amp;quot;) formerly used to create horizontal lists.&lt;br /&gt;
*: {{tl2|•}} or {{tl2|bullet}}, used to produce the Unicode-style bullet character.&lt;br /&gt;
*: {{tl2|spaced ndash}}, primarily used in the same way as this &amp;quot;slash&amp;quot; template to produce linewrap-friendly textual asides and/or emphasized phrases.&lt;br /&gt;
* [[WP:HLIST]], which addresses h(orizontal) lists and the &amp;quot;hlist&amp;quot; [[HTML attribute|class]] in Wikipedia.&lt;br /&gt;
* {{tl|flatlist}}, a template that can be used to create horizontal (&amp;quot;flat&amp;quot;) lists.&lt;br /&gt;
&lt;br /&gt;
====Wrap control templates====&lt;br /&gt;
* When making dotted lists, you might need to handle proper word wrapping (line breaking):&lt;br /&gt;
*: {{tl|nowraplinks}} to prevent wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.&lt;br /&gt;
*: {{tl|nowrap begin}}...{{tl|nowrap end}} to prevent wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!----CATEGORIES BELOW THIS LINE, PLEASE:----&amp;gt;&lt;br /&gt;
[[Category:LIMSwiki character-substitution templates]]&lt;br /&gt;
[[Category:Typing-aid templates]]&lt;br /&gt;
[[Category:Inline spacing templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>