Template:Spaces: Difference between revisions

From All Skies Encyclopaedia
imported>David Kernow
m (Protected Template:Nbsp: Potential for wide use, so vulnerable [edit=sysop:move=sysop])
imported>Edokter
(use class)
 
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{protected template}}</noinclude><includeonly><span style="white-space:nowrap;">{{#switch: {{{1}}}
<span class="nowrap">{{#iferror:{{#expr:{{{1|1}}}}}
|{{#switch:{{{1}}}
| 2 = &nbsp;&nbsp;
|fig=&#8199;
| 3 = &nbsp;&nbsp;&nbsp;
|en=&ensp;
| 4 = &nbsp;&nbsp;&nbsp;&nbsp;
|em=&emsp;
| 5 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|thin=&thinsp;
| 6 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|hair=&#8202;
| 7 = &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;
|{{#invoke:String|rep|{{#switch:{{{2}}}
| 10 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|fig=&#8199;
| &nbsp;
|en=&ensp;
}}</span></includeonly><noinclude>
|em=&emsp;
Template to minimize code used for multiple consecutive [[non-breaking space]]s ("<code><big>&amp;nbsp;</big></code>"s).
|thin=&thinsp;

|hair=&#8202;
; 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.
|&nbsp;

}}|{{{1|1}}}}}

}}</span><noinclude>
<!--Categories-->
{{documentation}}
[[Category:Wikipedia utility templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 11:38, 25 October 2015