<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.lockwiki.com/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.lockwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ANowrap%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.lockwiki.com/index.php?title=Template:Nowrap/doc&amp;action=history"/>
	<updated>2026-05-11T23:13:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://www.lockwiki.com/index.php?title=Template:Nowrap/doc&amp;diff=5926&amp;oldid=prev</id>
		<title>Datagram: Created page with &quot;{{tlx|Nowrap}} stops wrapping of specific text. It prevents word wraps (line breaks) within text or inside a link which contains spaces or hyphens (&quot;-&quot;). The size of the nowra...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.lockwiki.com/index.php?title=Template:Nowrap/doc&amp;diff=5926&amp;oldid=prev"/>
		<updated>2012-01-26T18:20:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{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 nowra...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&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.&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;
=== 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 &amp;#039;&amp;#039;not&amp;#039;&amp;#039; 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 &amp;#039;&amp;#039;not&amp;#039;&amp;#039; 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-signs &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;, use a triple-brace unnamed parameter &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{|=}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, or the {{tl|1==}} template. 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;, &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;, 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 all 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;/div&gt;</summary>
		<author><name>Datagram</name></author>
	</entry>
</feed>