Template:Spaces: Difference between revisions

+explanation, category, nowrap <span> as some browsers apparently ignore  
imported>Netscott
(make it a nice round decimal number like 10)
imported>David Kernow
(+explanation, category, nowrap <span> as some browsers apparently ignore  )
Line 1:
<span style="white-space:nowrap;">{{ #switch: {{{1}}}
| 2 = &nbsp;&nbsp;
| 3 = &nbsp;&nbsp;&nbsp;
| 4 = &nbsp;&nbsp;&nbsp;&nbsp;
| 5 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 6 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 7 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 8 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 9 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 10 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| &nbsp;
}}</span><noinclude>
}}
Template to minimize code used for multiple consecutive [[non-breaking space]]s ("<code><big>&amp;nbsp;</big></code>"s).
 
; Syntax : <code><big><nowiki>{{nbsp|</nowiki>''N''}}</big></code><br/>where ''N'' is a numeral from 2 to 10 (the desired number of non-breaking spaces). Defaults to a single non-breaking space.
 
 
<!--Categories-->
[[Category:Wikipedia utility templates|{{PAGENAME}}]]
</noinclude>
Anonymous user