Template:Nowrap/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>{{docsub}}</noinclude> The <nowiki>{{</nowiki>nowrap}} template stops {{wp|Line wrap and word wrap|wrapping}} of the specified text. It prevents word wraps (line breaks) that might otherwise happen at spaces, hyphens ("-"), or, in some browsers, parentheses. It is a replacement for {{code|<nowiki><span class="nowrap:</nowiki>''xxx''<nowiki>">...</span></nowiki>}}. ==Usage== To use the template, copy and paste the following in the art...") |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{docsub}}</noinclude> | <noinclude>{{docsub}}</noinclude> | ||
The <nowiki>{{</nowiki>[[Template:Nowrap|nowrap]]}} template stops {{wp|Line wrap and word wrap|wrapping}} of the specified text. It prevents word wraps (line breaks) that might otherwise happen at spaces, hyphens ("-"), or, in some browsers, parentheses. It is a replacement for {{code|<nowiki><span class="nowrap:</nowiki>''xxx''<nowiki>">...</span></nowiki>}}. | The <nowiki>{{</nowiki>[[Template:Nowrap|nowrap]]}} template stops {{wp|Line wrap and word wrap|wrapping}} of the specified text. It prevents word wraps (line breaks) that might otherwise happen at spaces, hyphens ("-"), or, in some browsers, parentheses. It is a replacement for {{code|<nowiki><span class="nowrap:</nowiki>''xxx''<nowiki>">...</span></nowiki>}}. | ||
==Usage== | ==Usage== |
Revision as of 07:38, 6 December 2024
This is a documentation subpage for Template:Nowrap. It may contain usage information, categories and other content that is not part of the original template page. |
The {{nowrap}} template stops wrapping of the specified text. It prevents word wraps (line breaks) that might otherwise happen at spaces, hyphens ("-"), or, in some browsers, parentheses. It is a replacement for <span class="nowrap:xxx">...</span>
.
Usage
To use the template, copy and paste the following in the article where the non-breaking text is desired:
{{nowrap|1}}
Parameters=
Parameter | Description | Type | Status | Notes |
---|---|---|---|---|
1 |
Non-breaking text | String | Required | The size of the nowrapped text becomes the minimum width of that paragraph which may negatively influence the ability of the page to adapt to smaller screens, or alternate representations of the content. |
Examples
"They held {{nowrap|10 kg (22 lb)}} in total. "
|
"He encountered {{nowrap|a tiger}} in the woods. "
|