Template:Nowrap/doc View history

(Initial doc page creation)
 
m (Updated doc page)
Line 1: Line 1:
{{doc subpage}}
{{doc subpage}}
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
Template to add no break spaces and hyphens between words.<br/>
Template to add no-break spaces and no-break hyphens between words.<br/>


==Syntax==
==Syntax==
 
<code><nowiki>{{nowrap</nowiki>|''text''}}</code><br />
 
If the <code>text</code> happens to contain an equality sign "=", specify <code><nowiki>{{nowrap</nowiki>|'''1='''''text''}}</code>.  
<!--<code><nowiki>{{resize</nowiki>|''N''|''text''}}</code>&nbsp; or &nbsp;<code><nowiki>{{resize</nowiki>|''text''}}</code><br>
''N'' specifies a size, such as "90%", "1.2em", etc. For the default case (the second above), ''N'' is set to "90%".<br>
If the <code>text</code> happens to contain an equality sign "=", specify <code><nowiki>{{resize</nowiki>|''N''|'''2='''''text''}}</code> or <code><nowiki>{{resize</nowiki>|'''1='''''text''}}</code>. -->


==Examples==
==Examples==
<!--
{| style="background:transparent;"
{| style="background:transparent;"
| <code><nowiki>{{resize|1.2em|This text is 0.2em larger than normal}}</nowiki></code>&nbsp;&nbsp;&nbsp;
|<code><nowiki>{{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}}</nowiki></code>
| {{resize|1.2em|This text is 0.2em larger than normal}}
| style="width: 225px;"|{{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}}
|-
| <code><nowiki>{{resize|80%|This text is 80% normal size}}</nowiki></code>
| {{resize|80%|This text is 80% normal size}}
|-
|-
| <code><nowiki>{{resize|This text defaults to 90% normal size}}</nowiki></code>
|<code><nowiki>This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap. </nowiki></code>
| {{resize|This text defaults to 90% normal size}}
| This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap.
|}-->
|}


==See also==
==See also==

Revision as of 20:06, 5 May 2017

This is a documentation subpage for Template:Nowrap.
It contains usage information, categories and other content that is not part of the original template page.

Template to add no-break spaces and no-break hyphens between words.

Syntax

{{nowrap|text}}
If the text happens to contain an equality sign "=", specify {{nowrap|1=text}}.

Examples

{{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} {{nowrap|This text will not wrap.}} This text will not wrap. This text will not wrap. This text will not wrap. This text will not wrap. This text will not wrap.
This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap. This text will wrap.

See also

  • {{nowrapcode}}, to use the code tags without linewrap.