Editing Template:Nowrap begin/doc

From Guild of Archivists
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use|2,700+}}
<!-- PLEASE ADD CATEGORIES WHERE INDICATED THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES WHERE INDICATED THE BOTTOM OF THIS PAGE -->


This is the {{tl|nowrap begin}} template. 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}}.
This is the {{tl|nowrap begin}} template. 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}}.


{{Ambox |text='''Note:''' The use of these templates in {{tl|Navbox}} and similar templates is deprecated; see [[Template:Navbox/doc#See also]]. Use the '''"hlist" class''' and, when occasionally necessary, {{tl|allow wrap}}. The nowrap behaviour implemented by the {{tc|nowrap}} set has been made ambient, while hlist provides a more appropriate structure and improved accessibility.}}
{{Ambox |text='''Note:''' The use of these templates in {{tl|Navbox}} and similar templates is deprecated; see [[Template:Navbox/doc#See also]]. Use the [[WP:HLIST|"hlist" class]] and, when occasionally necessary, {{tl|allow wrap}}. The nowrap behaviour implemented by the {{tc|nowrap}} set has been made ambient, while hlist provides a more appropriate structure and improved accessibility.}}


===Helper templates===
===Helper templates===
Line 17: Line 18:
{{nowrap begin}}
{{nowrap begin}}


[[Atrus]] and{{wrap}} [[Catherine]] and{{wrap}} [[Sirrus]]
[[Salt]] and{{wrap}} [[Pepper]] and{{wrap}} [[Curry]]
and{{wrap}} [[Achenar]].{{wrap}}
and{{wrap}} [[Saffron]].{{wrap}}
[[Atrus]] and{{wrap}} [[Catherine]] and{{wrap}} [[Sirrus]]
[[Salt]] and{{wrap}} [[Pepper]] and{{wrap}} [[Curry]]
and{{wrap}} [[Achenar]].
and{{wrap}} [[Saffron]].


{{nowrap end}}
{{nowrap end}}
Line 27: Line 28:
It will render something like this:
It will render something like this:


:[[Atrus]] and [[Catherine]] and [[Sirrus]] and
:[[Salt]] and [[Black pepper|Pepper]] and [[Curry]] and
:[[Achenar]]. [[Atrus]] and [[Catherine]] and
:[[Saffron]]. [[Salt]] and [[Black pepper|Pepper]] and
:[[Sirrus]] and [[Achenar]].
:[[Curry]] and [[Saffron]].


But it will ''not'' render like this:
But it will ''not'' render like this:


:[[Atrus]] and [[Catherine]] and [[Sirrus]]
:[[Salt]] and [[Black pepper|Pepper]] and [[Curry]]
:and [[Achenar]]. [[Atrus]] and [[Catherine]]
:and [[Saffron]]. [[Salt]] and [[Black pepper|Pepper]]
:and [[Sirrus]] and [[Achenar]].
:and [[Curry]] and [[Saffron]].


To make your code readable and easy to edit, you can put each wrappable "line" on its own line. And let's use some dots too. Like this:
To make your code readable and easy to edit, you can put each wrappable "line" on its own line. And let's use some dots too. Like this:
Line 42: Line 43:
{{nowrap begin}}
{{nowrap begin}}


[[Atrus]] and [[Catherine]]{{·}}{{wrap}}
[[Salt]] and [[Pepper]]{{·}}{{wrap}}
[[Catherine]] and [[Sirrus]]{{·}}{{wrap}}
[[Pepper]] and [[Curry]]{{·}}{{wrap}}
[[Sirrus]] and [[Achenar]]{{·}}{{wrap}}
[[Curry]] and [[Saffron]]{{·}}{{wrap}}
[[Achenar]] and [[Atrus]]
[[Saffron]] and [[Salt]]


{{nowrap end}}
{{nowrap end}}
Line 52: Line 53:
It will render something like this:
It will render something like this:


:[[Atrus]] and [[Catherine]] '''·''' [[Catherine]] and [[Sirrus]] '''·'''
:[[Salt]] and [[Black pepper|Pepper]] '''·''' [[Black pepper|Pepper]] and [[Curry]] '''·'''
:[[Sirrus]] and [[Achenar]] '''·''' [[Achenar]] and [[Atrus]]
:[[Curry]] and [[Saffron]] '''·''' [[Saffron]] and [[Salt]]


But it will ''not'' render like this:
But it will ''not'' render like this:


:[[Atrus]] and [[Catherine]] '''·''' [[Catherine]]
:[[Salt]] and [[Black pepper|Pepper]] '''·''' [[Black pepper|Pepper]]
:and [[Sirrus]] '''·''' [[Sirrus]] and [[Achenar]]
:and [[Curry]] '''·''' [[Curry]] and [[Saffron]]
:'''·''' [[Achenar]] and [[Atrus]]
:'''·''' [[Saffron]] and [[Salt]]


===Examples===
===Examples===
Line 67: Line 68:
|
|
{{nowrap begin}}
{{nowrap begin}}
[[Atrus]] and{{wrap}} [[Catherine]] and{{wrap}} [[Sirrus]]
[[Salt]] and{{wrap}} [[Black pepper|Pepper]] and{{wrap}} [[Curry]]
and{{wrap}} [[Achenar]].{{wrap}}
and{{wrap}} [[Saffron]].{{wrap}}
[[Atrus]] and{{wrap}} [[Catherine]] and{{wrap}} [[Sirrus]]
[[Salt]] and{{wrap}} [[Black pepper|Pepper]] and{{wrap}} [[Curry]]
and{{wrap}} [[Achenar]].
and{{wrap}} [[Saffron]].
{{nowrap end}}
{{nowrap end}}
|
|
{{nowrap begin}}
{{nowrap begin}}
[[Atrus]] and [[Catherine]]{{·}}{{wrap}}
[[Salt]] and [[Black pepper|Pepper]]{{·}}{{wrap}}
[[Catherine]] and [[Sirrus]]{{·}}{{wrap}}
[[Black pepper|Pepper]] and [[Curry]]{{·}}{{wrap}}
[[Sirrus]] and [[Achenar]]{{·}}{{wrap}}
[[Curry]] and [[Saffron]]{{·}}{{wrap}}
[[Achenar]] and [[Atrus]]
[[Saffron]] and [[Salt]]
{{nowrap end}}
{{nowrap end}}
|}
|}
Line 86: Line 87:
|
|
{{nowrap begin}}
{{nowrap begin}}
[[Atrus]]{{wrap}} [[Catherine]]{{wrap}} [[Sirrus]]{{·}}{{wrap}} [[Achenar]]{{·}}{{wrap}} [[Atrus]]{{•}}{{wrap}} [[Catherine]]{{•}}{{wrap}} [[Sirrus]]{{snd}}{{wrap}} [[Achenar]]{{snd}}{{wrap}} [[Atrus]] {{!}}{{wrap}} [[Catherine]] {{!}}{{wrap}} [[Sirrus]]{{·}}{{wrap}} [[Achenar]]{{·}}{{wrap}} [[Atrus]]
[[Salt]]{{wrap}} [[Black pepper|Pepper]]{{wrap}} [[Curry]]{{·}}{{wrap}} [[Saffron]]{{·}}{{wrap}} [[Salt]]{{•}}{{wrap}} [[Black pepper|Pepper]]{{•}}{{wrap}} [[Curry]]{{snd}}{{wrap}} [[Saffron]]{{snd}}{{wrap}} [[Salt]] {{!}}{{wrap}} [[Black pepper|Pepper]] {{!}}{{wrap}} [[Curry]]{{·}}{{wrap}} [[Saffron]]{{·}}{{wrap}} [[Salt]]
{{nowrap end}}
{{nowrap end}}
|
|
{{nowrap begin}}
{{nowrap begin}}
[[Atrus]]{{wrap}} [[Catherine]]{{wrap}} [[Sirrus]]{{·}}{{wrap}} [[Achenar]]{{·}}{{wrap}} [[Atrus]]{{•}}{{wrap}} [[Catherine]]{{•}}{{wrap}} [[Sirrus]]{{snd}}{{wrap}} [[Achenar]]{{snd}}{{wrap}} [[Atrus]] {{!}}{{wrap}} [[Catherine]] {{!}}{{wrap}} [[Sirrus]]{{·}}{{wrap}} [[Achenar]]{{·}}{{wrap}} [[Atrus]]
[[Salt]]{{wrap}} [[Black pepper|Pepper]]{{wrap}} [[Curry]]{{·}}{{wrap}} [[Saffron]]{{·}}{{wrap}} [[Salt]]{{•}}{{wrap}} [[Black pepper|Pepper]]{{•}}{{wrap}} [[Curry]]{{snd}}{{wrap}} [[Saffron]]{{snd}}{{wrap}} [[Salt]] {{!}}{{wrap}} [[Black pepper|Pepper]] {{!}}{{wrap}} [[Curry]]{{·}}{{wrap}} [[Saffron]]{{·}}{{wrap}} [[Salt]]
{{nowrap end}}
{{nowrap end}}
|}
|}
Please note that all contributions to Guild of Archivists may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see GoArch:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)