Difference between revisions of "Template:Nowrap"

From CWCki
Jump to navigation Jump to search
m (Added documentation.)
(Added Usage. Recategorized as formatting template.)
Line 1: Line 1:
<span style="white-space:nowrap;">{{{1}}}</span>
<span style="white-space:nowrap;">{{{1}}}</span><noinclude>{{Usage|1=This is a formatting template prevents word wraps (line breaks) in text and links that contain spaces.The format for using this template is as follows:<br />
<noinclude>
 
{{documentation}}
'''<pre>Lots of text {{nowrap|23 kg (50 lb)}} more text.</pre>'''
</noinclude>
 
 
- Displays: Lots of text {{nowrap|23 kg (50 lb)}} more text.
 
The idea here is that the text may break before or after "23kg (50lb)", but not in the middle of this selection.  If you change the width of your browser, you can see how it works.
}}
 
[[Category:Formatting and function templates|{{PAGENAME}}]]</noinclude>

Revision as of 02:04, 30 November 2010

{{{1}}}

Usage

These usage notes will not be included in articles bearing this template.

This is a formatting template prevents word wraps (line breaks) in text and links that contain spaces.The format for using this template is as follows:

Lots of text {{nowrap|23 kg (50 lb)}} more text.


- Displays: Lots of text 23 kg (50 lb) more text.

The idea here is that the text may break before or after "23kg (50lb)", but not in the middle of this selection. If you change the width of your browser, you can see how it works.