Difference between revisions of "Template:Spaces"

From SVR Wiki
Jump to: navigation, search
(+explanation, category, nowrap <span> as some browsers apparently ignore  )
m (30 revisions imported: Template as of)
 
(25 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<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;
 +
    |en=&ensp;
 +
    |em=&emsp;
 +
    |thin=&thinsp;
 +
    |hair=&#8202;
 +
    |&nbsp;
 +
  }}|{{{1|1}}}}}
 
}}</span><noinclude>
 
}}</span><noinclude>
Template to minimize code used for multiple consecutive [[non-breaking space]]s ("<code><big>&amp;nbsp;</big></code>"s).
+
{{documentation}}
 
 
; 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>
 
</noinclude>

Latest revision as of 16:52, 28 December 2015

Script error: No such module "String".

Documentation icon Template documentation[create]

{{ }}