Difference between revisions of "Template:Spaces"

From SVR Wiki
Jump to: navigation, search
m (Protected Template:Nbsp: Potential for wide use, so vulnerable [edit=sysop:move=sysop])
m (30 revisions imported: Template as of)
 
(23 intermediate revisions by 8 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}}}}}
| 2 = &nbsp;&nbsp;
+
  |{{#switch:{{{1}}}
| 3 = &nbsp;&nbsp;&nbsp;
+
    |fig=&#8199;
| 4 = &nbsp;&nbsp;&nbsp;&nbsp;
+
    |en=&ensp;
| 5 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+
    |em=&emsp;
| 6 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+
    |thin=&thinsp;
| 7 = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+
    |hair=&#8202;
| 8 = &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;
+
  |{{#invoke:String|rep|{{#switch:{{{2}}}
| &nbsp;
+
    |fig=&#8199;
}}</span></includeonly><noinclude>
+
    |en=&ensp;
Template to minimize code used for multiple consecutive [[non-breaking space]]s ("<code><big>&amp;nbsp;</big></code>"s).
+
    |em=&emsp;
 
+
    |thin=&thinsp;
; 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.
+
    |hair=&#8202;
 
+
    |&nbsp;
 
+
  }}|{{{1|1}}}}}
<!--Categories-->
+
}}</span><noinclude>
[[Category:Wikipedia utility templates|{{PAGENAME}}]]
+
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:52, 28 December 2015

Script error: No such module "String".

Documentation icon Template documentation[create]

{{ }}