Template:Nowrap/doc

From TNOpediA

{{Nowrap}} or {{nowrap}} stops wrapping of specific text (which can be inside of a link). Use this template sparingly. It prevents word wraps (line breaks) that might otherwise happen at spaces, hyphens ("-"), or, in some browsers, parentheses. The size of the nowrapped text becomes the minimum width of that paragraph and that can negatively influence the ability of the page to adapt to smaller screens, or alternate representations of the content.

Usage[edit source]

{{Nowrap|these words stay together}}
{{Nowrap|a, b, c, or d.}}
{{Nowrap| merry-go-round }}
{{Nowrap| [[4-part harmony]] }}
{{Nowrap| [[Cascading Style Sheets|CSS]] }}
{{Nowrap| [[#Examples|Examples section]] }}

Examples[edit source]

"They held {{Nowrap|10 kg (22 lb)}} in total."


May render like this:

They held 10 kg (22 lb)
in total.


Or like this:

They held
10 kg (22 lb) in total.


But not render like this:

They held 10 kg (22
lb) in total.
"He encountered {{Nowrap|a tiger}} in the woods."


May render like this:

He encountered a tiger
in the woods.


Or like this:

He encountered
a tiger in the woods.


But not like this:

He encountered a
tiger in the woods.

TemplateData[edit source]

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Nowrap

 "description": "Prevents word wraps (line breaks) within text or inside a link which contains spaces or hyphens (-).",
 "params": {
   "1": {
     "label": "Text",
     "description": "Text or link to be protected.",
     "type": "string",
     "required": true