Difference between revisions of "Template:Nbsp"

From ChoralWiki
Jump to navigation Jump to search
(Special character)
(added documentation)
Line 1: Line 1:
 
<tt>&</tt>nbsp;<noinclude>
 
<tt>&</tt>nbsp;<noinclude>
 +
{{DisplayBox|bgcolor=g|text=
 +
This template is for use in literal reproduction of the oft used '''{{nbsp}}''' in text.  Thus, typing
 +
: '''<nowiki>ABC{{nbsp}}XYZ</nowiki> ''' reproduces ''' ABC{{nbsp}}XYZ'''
  
 +
while typing
 +
: '''ABC{{nbsp}}XYZ''' reproduces ''' ABC&nbsp;XYZ'''
 +
 +
 +
'''Note:''' There are places where the use of a template is not desirable or it wont work properly; in this case, use the standard HTML notation instead:
 +
 +
: <b>ABC&amp</b><b>;nbsp;XYZ</b> reproduces '''ABC&amp;nbsp;XYZ'''
 +
}}
 
[[Category:Special character templates]]</noinclude>
 
[[Category:Special character templates]]</noinclude>

Revision as of 19:24, 20 November 2012

&nbsp;

This template is for use in literal reproduction of the oft used &nbsp; in text. Thus, typing

ABC{{nbsp}}XYZ reproduces ABC&nbsp;XYZ

while typing

ABC&nbsp;XYZ reproduces ABC XYZ


Note: There are places where the use of a template is not desirable or it wont work properly; in this case, use the standard HTML notation instead:

ABC&amp;nbsp;XYZ reproduces ABC&nbsp;XYZ