Editing Template:Nowrap begin/doc
From Guild of Archivists
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 | {{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}} | ||
[[ | [[Salt]] and{{wrap}} [[Pepper]] and{{wrap}} [[Curry]] | ||
and{{wrap}} [[ | and{{wrap}} [[Saffron]].{{wrap}} | ||
[[ | [[Salt]] and{{wrap}} [[Pepper]] and{{wrap}} [[Curry]] | ||
and{{wrap}} [[ | and{{wrap}} [[Saffron]]. | ||
{{nowrap end}} | {{nowrap end}} | ||
Line 27: | Line 28: | ||
It will render something like this: | It will render something like this: | ||
:[[ | :[[Salt]] and [[Black pepper|Pepper]] and [[Curry]] and | ||
:[[ | :[[Saffron]]. [[Salt]] and [[Black pepper|Pepper]] and | ||
:[[ | :[[Curry]] and [[Saffron]]. | ||
But it will ''not'' render like this: | But it will ''not'' render like this: | ||
:[[ | :[[Salt]] and [[Black pepper|Pepper]] and [[Curry]] | ||
:and [[ | :and [[Saffron]]. [[Salt]] and [[Black pepper|Pepper]] | ||
:and [[ | :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}} | ||
[[ | [[Salt]] and [[Pepper]]{{·}}{{wrap}} | ||
[[ | [[Pepper]] and [[Curry]]{{·}}{{wrap}} | ||
[[ | [[Curry]] and [[Saffron]]{{·}}{{wrap}} | ||
[[ | [[Saffron]] and [[Salt]] | ||
{{nowrap end}} | {{nowrap end}} | ||
Line 52: | Line 53: | ||
It will render something like this: | It will render something like this: | ||
:[[ | :[[Salt]] and [[Black pepper|Pepper]] '''·''' [[Black pepper|Pepper]] and [[Curry]] '''·''' | ||
:[[ | :[[Curry]] and [[Saffron]] '''·''' [[Saffron]] and [[Salt]] | ||
But it will ''not'' render like this: | But it will ''not'' render like this: | ||
:[[ | :[[Salt]] and [[Black pepper|Pepper]] '''·''' [[Black pepper|Pepper]] | ||
:and [[ | :and [[Curry]] '''·''' [[Curry]] and [[Saffron]] | ||
:'''·''' [[ | :'''·''' [[Saffron]] and [[Salt]] | ||
===Examples=== | ===Examples=== | ||
Line 67: | Line 68: | ||
| | | | ||
{{nowrap begin}} | {{nowrap begin}} | ||
[[ | [[Salt]] and{{wrap}} [[Black pepper|Pepper]] and{{wrap}} [[Curry]] | ||
and{{wrap}} [[ | and{{wrap}} [[Saffron]].{{wrap}} | ||
[[ | [[Salt]] and{{wrap}} [[Black pepper|Pepper]] and{{wrap}} [[Curry]] | ||
and{{wrap}} [[ | and{{wrap}} [[Saffron]]. | ||
{{nowrap end}} | {{nowrap end}} | ||
| | | | ||
{{nowrap begin}} | {{nowrap begin}} | ||
[[ | [[Salt]] and [[Black pepper|Pepper]]{{·}}{{wrap}} | ||
[[ | [[Black pepper|Pepper]] and [[Curry]]{{·}}{{wrap}} | ||
[[ | [[Curry]] and [[Saffron]]{{·}}{{wrap}} | ||
[[ | [[Saffron]] and [[Salt]] | ||
{{nowrap end}} | {{nowrap end}} | ||
|} | |} | ||
Line 86: | Line 87: | ||
| | | | ||
{{nowrap begin}} | {{nowrap begin}} | ||
[[ | [[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}} | ||
[[ | [[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}} | ||
|} | |} |