<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://cellan.joemonson.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ANowrap_begin%2Fdoc</id>
	<title>Template:Nowrap begin/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://cellan.joemonson.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ANowrap_begin%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://cellan.joemonson.com/index.php?title=Template:Nowrap_begin/doc&amp;action=history"/>
	<updated>2026-10-26T02:16:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>http://cellan.joemonson.com/index.php?title=Template:Nowrap_begin/doc&amp;diff=10232&amp;oldid=prev</id>
		<title>Cellan3: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED THE BOTTOM OF THIS PAGE --&gt;  This template prevents word wraps (line breaks) in text and links with spaces in. It is designed to handle the really tricky wrapping cases where you need full control. It works similarly to {{tl|nowrap}} and {{tl|nowraplinks}}. This template takes no parameters; instead, it works in tandem with {{tl|nowrap end}}.  ===Helper templates=== This template has a number of helper...&quot;</title>
		<link rel="alternate" type="text/html" href="http://cellan.joemonson.com/index.php?title=Template:Nowrap_begin/doc&amp;diff=10232&amp;oldid=prev"/>
		<updated>2025-04-10T21:07:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED THE BOTTOM OF THIS PAGE --&amp;gt;  This template prevents word wraps (line breaks) in text and links with spaces in. It is designed to handle the really tricky wrapping cases where you need full control. It works similarly to {{tl|nowrap}} and {{tl|nowraplinks}}. This template takes no parameters; instead, it works in tandem with {{tl|nowrap end}}.  ===Helper templates=== This template has a number of helper...&amp;quot;&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 THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template prevents word wraps (line breaks) in text and links with spaces in. It is designed to handle the really tricky wrapping cases where you need full control. It works similarly to {{tl|nowrap}} and {{tl|nowraplinks}}. This template takes no parameters; instead, it works in tandem with {{tl|nowrap end}}.&lt;br /&gt;
&lt;br /&gt;
===Helper templates===&lt;br /&gt;
This template has a number of helper templates which allows you to tell the web browser exactly where line breaks may occur:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; These helper templates may only be used in sections surrounded by {{tl|nowrap begin}} and {{tl|nowrap end}} or they may cause weird behavior of your page.&lt;br /&gt;
&lt;br /&gt;
* {{tl|wrap}}{{spaced ndash}}Marks where a wrap may occur.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{nowrap begin}}&lt;br /&gt;
&lt;br /&gt;
[[Sol system]] and{{wrap}} [[Butler&amp;#039;s Star system]] and{{wrap}} [[Casey system]]&lt;br /&gt;
and{{wrap}} [[Procyon system]].{{wrap}}&lt;br /&gt;
[[Sol system]] and{{wrap}} [[Butler&amp;#039;s Star system]] and{{wrap}} [[Casey system]]&lt;br /&gt;
and{{wrap}} [[Procyon system]].&lt;br /&gt;
&lt;br /&gt;
{{nowrap end}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will render something like this:&lt;br /&gt;
&lt;br /&gt;
:[[Sol system]] and [[Butler&amp;#039;s Star system]] and [[Casey system]] and&lt;br /&gt;
:[[Procyon system]]. [[Sol system]] and [[Butler&amp;#039;s Star system]] and&lt;br /&gt;
:[[Casey system]] and [[Procyon system]].&lt;br /&gt;
&lt;br /&gt;
But it will &amp;#039;&amp;#039;not&amp;#039;&amp;#039; render like this:&lt;br /&gt;
&lt;br /&gt;
:[[Sol system]] and [[Butler&amp;#039;s Star system]] and [[Casey system]]&lt;br /&gt;
:and [[Procyon system]]. [[Sol system]] and [[Butler&amp;#039;s Star system]]&lt;br /&gt;
:and [[Casey system]] and [[Procyon system]].&lt;br /&gt;
&lt;br /&gt;
To make your code readable and easy to edit, you can put each wrappable &amp;quot;line&amp;quot; on its own line. And let&amp;#039;s use some dots too. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{nowrap begin}}&lt;br /&gt;
&lt;br /&gt;
[[Sol system]] and [[Pepper]]{{·}}{{wrap}}&lt;br /&gt;
[[Pepper]] and [[Casey system]]{{·}}{{wrap}}&lt;br /&gt;
[[Casey system]] and [[Procyon system]]{{·}}{{wrap}}&lt;br /&gt;
[[Procyon system]] and [[Sol system]]&lt;br /&gt;
&lt;br /&gt;
{{nowrap end}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will render something like this:&lt;br /&gt;
&lt;br /&gt;
:[[Sol system]] and [[Butler&amp;#039;s Star system]] &amp;#039;&amp;#039;&amp;#039;·&amp;#039;&amp;#039;&amp;#039; [[Butler&amp;#039;s Star system]] and [[Casey system]] &amp;#039;&amp;#039;&amp;#039;·&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:[[Casey system]] and [[Procyon system]] &amp;#039;&amp;#039;&amp;#039;·&amp;#039;&amp;#039;&amp;#039; [[Procyon system]] and [[Sol system]]&lt;br /&gt;
&lt;br /&gt;
But it will &amp;#039;&amp;#039;not&amp;#039;&amp;#039; render like this:&lt;br /&gt;
&lt;br /&gt;
:[[Sol system]] and [[Butler&amp;#039;s Star system]] &amp;#039;&amp;#039;&amp;#039;·&amp;#039;&amp;#039;&amp;#039; [[Butler&amp;#039;s Star system]]&lt;br /&gt;
:and [[Casey system]] &amp;#039;&amp;#039;&amp;#039;·&amp;#039;&amp;#039;&amp;#039; [[Casey system]] and [[Procyon system]]&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;·&amp;#039;&amp;#039;&amp;#039; [[Procyon system]] and [[Sol system]]&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
Here are the above examples in actual running code in a table. Try dragging the width of your web browser window so it becomes smaller and smaller and watch how the line wrapping behaves:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
{{nowrap begin}}&lt;br /&gt;
[[Sol system]] and{{wrap}} [[Butler&amp;#039;s Star system]] and{{wrap}} [[Casey system]]&lt;br /&gt;
and{{wrap}} [[Procyon system]].{{wrap}}&lt;br /&gt;
[[Sol system]] and{{wrap}} [[Butler&amp;#039;s Star system]] and{{wrap}} [[Casey system]]&lt;br /&gt;
and{{wrap}} [[Procyon system]].&lt;br /&gt;
{{nowrap end}}&lt;br /&gt;
|&lt;br /&gt;
{{nowrap begin}}&lt;br /&gt;
[[Sol system]] and [[Butler&amp;#039;s Star system]]{{·}}{{wrap}}&lt;br /&gt;
[[Butler&amp;#039;s Star system]] and [[Casey system]]{{·}}{{wrap}}&lt;br /&gt;
[[Casey system]] and [[Procyon system]]{{·}}{{wrap}}&lt;br /&gt;
[[Procyon system]] and [[Sol system]]&lt;br /&gt;
{{nowrap end}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
An example demonstrating all the helper templates:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
{{nowrap begin}}&lt;br /&gt;
[[Sol system]]{{wrap}} [[Butler&amp;#039;s Star system]]{{wrap}} [[Casey system]]{{·}}{{wrap}} [[Procyon system]]{{·}}{{wrap}} [[Sol system]]{{•}}{{wrap}} [[Butler&amp;#039;s Star system]]{{•}}{{wrap}} [[Casey system]]{{snd}}{{wrap}} [[Procyon system]]{{snd}}{{wrap}} [[Sol system]] {{!}}{{wrap}} [[Butler&amp;#039;s Star system]] {{!}}{{wrap}} [[Casey system]]{{·}}{{wrap}} [[Procyon system]]{{·}}{{wrap}} [[Sol system]]&lt;br /&gt;
{{nowrap end}}&lt;br /&gt;
|&lt;br /&gt;
{{nowrap begin}}&lt;br /&gt;
[[Sol system]]{{wrap}} [[Butler&amp;#039;s Star system]]{{wrap}} [[Casey system]]{{·}}{{wrap}} [[Procyon system]]{{·}}{{wrap}} [[Sol system]]{{•}}{{wrap}} [[Butler&amp;#039;s Star system]]{{•}}{{wrap}} [[Casey system]]{{snd}}{{wrap}} [[Procyon system]]{{snd}}{{wrap}} [[Sol system]] {{!}}{{wrap}} [[Butler&amp;#039;s Star system]] {{!}}{{wrap}} [[Casey system]]{{·}}{{wrap}} [[Procyon system]]{{·}}{{wrap}} [[Sol system]]&lt;br /&gt;
{{nowrap end}}&lt;br /&gt;
|}&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;
{{sxhl|1=&amp;lt;span class=&amp;quot;nowrap&amp;quot;&amp;gt; Text and links &amp;lt;span class=&amp;quot;wrap&amp;quot;&amp;gt; &amp;lt;/span&amp;gt; More text and links &amp;lt;/span&amp;gt;|2=html}}&lt;br /&gt;
&lt;br /&gt;
{{tl|·}} and the other helper templates should not have any spaces or newlines before them or they will render two spaces before the dot. They tolerate anything from no to several spaces and even a newline after them and they will still only render one space after the dot. If a wrap occurs then the wrap will come after the dot, even if there are spaces before the helper template.&lt;br /&gt;
&lt;br /&gt;
The {{tl|·}} causes problems if inside sections of bolded and/or italicised text. Do end the bold text before the {{tl|·}} and continue the bold text after it to avoid the problems. {{tl|•}} and the other helper templates only have this problem if the section is bolded and italicised at the same time.&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
{{List of nowrap-like templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:Line-handling templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cellan3</name></author>
	</entry>
</feed>