Template:Nowrap: Difference between revisions
Template page
More actions
m →top: Hygiene, replaced: {{documentation}} → {{/doc}} |
m 1 revision imported: New Files |
||
(No difference)
| |||
Latest revision as of 11:54, 24 March 2024
{{{1}}}
This documentation is transcluded from Template:Nowrap/doc. Changes can be proposed in the talk page.
{{Nowrap}} stops wrapping of specific text. It prevents word wraps (line breaks) within text or inside a link which contains spaces, hyphens ("-"), or, in some browsers, parentheses. The size of the nowrapped text becomes the minimum width of that paragraph. Before you use this template you might want to read up on Wikipedia:Line-break handling.
Usage
{{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]] }}
The template names {{nobr}} and {{nobreak}} are redirects that may be used instead of "{{nowrap}}".
TemplateData
Prevents word wraps (line breaks) within text or inside a link which contains spaces or hyphens (-).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | Text or link to be protected. | String | required |