Template:Spaces: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Netscott
make it a nice round decimal number like 10
meta>David Kernow
+explanation, category, nowrap <span> as some browsers apparently ignore  
Line 1: Line 1:
{{ #switch: {{{1}}}
<span style="white-space:nowrap;">{{#switch: {{{1}}}
| 2 = &nbsp;&nbsp;
| 2 = &nbsp;&nbsp;
| 3 = &nbsp;&nbsp;&nbsp;
| 3 = &nbsp;&nbsp;&nbsp;
| 4 = &nbsp;&nbsp;&nbsp;&nbsp;
| 4 = &nbsp;&nbsp;&nbsp;&nbsp;
| 5 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 5 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 6 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 6 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 7 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 7 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 8 = &nbsp;&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;
| 9 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 10 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| 10 = &nbsp;&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>

Revision as of 05:42, 24 November 2006

  Template to minimize code used for multiple consecutive non-breaking spaces ("&nbsp;"s).

Syntax
{{nbsp|N}}
where N is a numeral from 2 to 10 (the desired number of non-breaking spaces). Defaults to a single non-breaking space.