<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ANowrap%2Fdoc</id>
	<title>Template:Nowrap/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ANowrap%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Template:Nowrap/doc&amp;action=history"/>
	<updated>2026-04-18T15:20:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Template:Nowrap/doc&amp;diff=22209&amp;oldid=prev</id>
		<title>JChris.FillionR: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Template:Nowrap/doc&amp;diff=22209&amp;oldid=prev"/>
		<updated>2011-10-23T04:56:38Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:56, 23 October 2011&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>JChris.FillionR</name></author>
		
	</entry>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Template:Nowrap/doc&amp;diff=22208&amp;oldid=prev</id>
		<title>Ucucha: /* Examples */ two examples seem enough; third doesn't add any functionality that is not shown in other two examples</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Template:Nowrap/doc&amp;diff=22208&amp;oldid=prev"/>
		<updated>2011-10-09T23:39:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples: &lt;/span&gt; two examples seem enough; third doesn&amp;#039;t add any functionality that is not shown in other two examples&lt;/span&gt;&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;
{{high-risk|587,000+}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tlx|Nowrap}} stops wrapping of specific text. It prevents word wraps (line breaks) within text or inside a link which contains spaces or hyphens (&amp;quot;-&amp;quot;). The size of the nowrapped text becomes the minimum width of that paragraph. Before you use this template you might want to read up on [[Wikipedia:Line break handling]].&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
:: {&amp;amp;#123;nowrap|these words stay together}}&lt;br /&gt;
:: {&amp;amp;#123;nowrap|a, b, c, or d.}}&lt;br /&gt;
:: {&amp;amp;#123;nowrap| merry-go-round }}&lt;br /&gt;
:: &amp;lt;nowiki&amp;gt;{{nowrap| [[4-part harmony]] }}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The template names {&amp;amp;#123;[[Template:j|'''j''']]}} (join) or {&amp;amp;#123;[[Template:nobr|nobr]]}} or {&amp;amp;#123;[[Template:Nobreak|nobreak]]}} may be used instead of &amp;quot;nowrap&amp;quot;, as they are redirects to {&amp;amp;#123;nowrap}}.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
{| class=wikitable&lt;br /&gt;
|&amp;quot;They held &amp;lt;nowiki&amp;gt;{{nowrap|10 kg (22 lb)}}&amp;lt;/nowiki&amp;gt; in total.&amp;quot;&lt;br /&gt;
&amp;lt;br&amp;gt;May render like this:&lt;br /&gt;
:They held {{nowrap|10 kg (22 lb)}}&amp;lt;br&amp;gt;in total.&lt;br /&gt;
&amp;lt;br&amp;gt;Or like this:&lt;br /&gt;
:They held&amp;lt;br&amp;gt;10 kg (22 lb) in total.&lt;br /&gt;
&amp;lt;br&amp;gt;But ''not'' render like this:&lt;br /&gt;
:They held 10 kg (22 &amp;lt;br&amp;gt;lb) in total.&lt;br /&gt;
&lt;br /&gt;
| &amp;quot;He encountered &amp;lt;nowiki&amp;gt;{{nowrap|a tiger}}&amp;lt;/nowiki&amp;gt; in the woods.&amp;quot;&lt;br /&gt;
&amp;lt;br&amp;gt;May render like this:&lt;br /&gt;
:He encountered a tiger&amp;lt;br&amp;gt;in the woods.&lt;br /&gt;
&amp;lt;br&amp;gt;Or like this:&lt;br /&gt;
:He encountered&amp;lt;br&amp;gt;a tiger in the woods.&lt;br /&gt;
&amp;lt;br&amp;gt;But ''not'' like this:&lt;br /&gt;
:He encountered a&amp;lt;br&amp;gt;tiger in the woods.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Handling equal-sign or bar ===&lt;br /&gt;
[[Help:Template|Templates]] have problems with parameter data that contains [[equal-sign]]s &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot; or vertical bars &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot; (pipes). In such cases, consider using {{tl|nowrap begin}} + {{tl|nowrap end}} instead. But there are also other workarounds:&lt;br /&gt;
&lt;br /&gt;
For text that includes an equal-sign &amp;quot;=&amp;quot;, precede the text with &amp;lt;code&amp;gt;1=&amp;lt;/code&amp;gt; or use a triple-brace unnamed parameter: &amp;lt;nowiki&amp;gt;{{{|=}}}&amp;lt;/nowiki&amp;gt;. For example:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{nowrap|&amp;lt;/nowiki&amp;gt;1=2 + 2 = 4}}&amp;lt;/code&amp;gt;, or &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{nowrap|2 + 2 {{{|=}}} 4}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which both render as this:&lt;br /&gt;
:{{nowrap|1=2 + 2 = 4}}.&lt;br /&gt;
&lt;br /&gt;
For text that includes a vertical bar &amp;quot;|&amp;quot;, escape the bar(s) with &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;amp;#124;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; or &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;. For instance, put two bars &amp;quot;|6|&amp;quot; like this:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{nowrap|&amp;lt;/nowiki&amp;gt;&amp;amp;amp;#124;6&amp;amp;amp;#124; &amp;lt; 7}}&amp;lt;/code&amp;gt; &amp;amp;nbsp;or&amp;amp;nbsp; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{nowrap|{{!}}6{{!}} &amp;lt; 7}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which renders this: &lt;br /&gt;
:{{nowrap|&amp;amp;#124;6&amp;amp;#124; &amp;lt; 7}}&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
The actual code that does the job is this HTML+CSS code:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;white-space:nowrap&amp;quot;&amp;gt;This text will not wrap&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Spaces at the beginning or end of the text will fall outside the no-wrap tag in the rendered text due to Wikimedia rendering mechanisms.&lt;br /&gt;
&lt;br /&gt;
The templates {{[[Template:j|j]]}}, {{[[Template:nobr|nobr]]}} and {{[[Template:Nobreak|nobreak]]}} redirect here.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* {{tl|nowraplinks}} – Prevents 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}} – Prevents wraps in both text and links. For the trickier wrapping cases when you need full control, for instance in very complex link lists.&lt;br /&gt;
* [[Wikipedia:Line break handling]] – The how-to guide detailing how to handle word wraps (line breaks) on Wikipedia. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia formatting and function templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ADD INTERWIKIS BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[ar:قالب:لا لف]]&lt;br /&gt;
[[bg:Шаблон:Nowrap]]&lt;br /&gt;
[[da:Skabelon:Nowrap]]&lt;br /&gt;
[[de:Vorlage:Nowrap]]&lt;br /&gt;
[[et:Mall:Murdmata]]&lt;br /&gt;
[[es:Plantilla:Nowrap]]&lt;br /&gt;
[[fa:الگو:Nowrap]]&lt;br /&gt;
[[fr:Modèle:Nobr]]&lt;br /&gt;
[[he:תבנית:ללא גלישה]]&lt;br /&gt;
[[hr:Predložak:Nowrap]]&lt;br /&gt;
[[hsb:Předłoha:Nowrap]]&lt;br /&gt;
[[hy:Կաղապար:Nowrap]]&lt;br /&gt;
[[it:Template:Tutto attaccato]]&lt;br /&gt;
[[ja:Template:Nowrap]]&lt;br /&gt;
[[kl:Ilisserut:Nowrap]]&lt;br /&gt;
[[ko:틀:Nobr]]&lt;br /&gt;
[[no:mal:Nowrap]]&lt;br /&gt;
[[pl:Szablon:Nowrap]]&lt;br /&gt;
[[pt:Predefinição:Nowrap]]&lt;br /&gt;
[[ro:Format:Nowrap]]&lt;br /&gt;
[[ru:Шаблон:Nobr]]&lt;br /&gt;
[[sv:Mall:Nowrap]]&lt;br /&gt;
[[tpi:Template:Nowrap]]&lt;br /&gt;
[[tr:Şablon:Nowrap]]&lt;br /&gt;
[[uk:Шаблон:Nobr]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ucucha</name></author>
		
	</entry>
</feed>