Template:Thin space/doc

From Black Cat Studios
< Template:Thin space
Revision as of 16:58, 19 June 2023 by Blackcat (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{tsh|tsp}} Displays its arguments in a {{tl|nowrap}} span separated by thin spaces (<code>&thinsp;</code>). (Supports up to 10 arguments.) If only one parameter the text in parameter one is surrounded by one thin space on each side. With no parameters it will output one <code>&thinsp;</code>. === Usage === {| class="wikitable" ! Input !! Output |- | {{tji|thins...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Displays its arguments in a {{nowrap}} span separated by thin spaces (&thinsp;). (Supports up to 10 arguments.) If only one parameter the text in parameter one is surrounded by one thin space on each side. With no parameters it will output one &thinsp;.

Usage

Input Output
{{thinspace|J.|R.|R.}} Tolkien Template:Thinspace Tolkien
<syntaxhighlight lang="wikitext" inline>Template:Thinspace</syntaxhighlight> Template:Thinspace
<syntaxhighlight lang="wikitext" inline>Template:Thinspace</syntaxhighlight> Template:Thinspace
{{thinspace|299|792|458 m/s}} Template:Thinspace
{{thinspace}} Template:Thinspace
({{thinspace|symbol}}) (Template:Thinspace)

Comparisons

Name
(alias)
Instance Example code and ... Using {{spaces}} Output Output {{spaces}}
none <syntaxhighlight lang="wikitext" inline="">Text[1]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">Text[2]</syntaxhighlight>
Text[1]
Text[2]
Hair
(Very thin)
Template:Hair space <syntaxhighlight lang="wikitext" inline="">TextTemplate:Hair space[3]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">TextTemplate:Hair space[4]</syntaxhighlight>
Text{{spaces|hair}}<ref>...</ref> TextTemplate:Hair space[1]
TextTemplate:Hair space[2]
Text[1]
Text[2]
2-pixel Template:Px2 <syntaxhighlight lang="wikitext" inline="">TextTemplate:Px2[5]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">TextTemplate:Px2[6]</syntaxhighlight>
TextTemplate:Px2[1]
TextTemplate:Px2[2]
Narrow no-break Template:Narrow no-break space <syntaxhighlight lang="wikitext" inline="">TextTemplate:Narrow no-break space[7]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">TextTemplate:Narrow no-break space[8]</syntaxhighlight>
TextTemplate:Narrow no-break space[1]
TextTemplate:Narrow no-break space[2]
Thin <syntaxhighlight lang="wikitext" inline="">Text[9]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">Text[10]</syntaxhighlight>
Text{{spaces|thin}}<ref>...</ref> Text[1]
Text[2]
Text[1]
Text[2]
Standard[lower-alpha 1]   <syntaxhighlight lang="wikitext" inline="">Text [11]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">Text [12]</syntaxhighlight>
Text{{spaces}}<ref>...</ref> Text [1] Text [1]
Text [2]
En <syntaxhighlight lang="wikitext" inline="">1 3</syntaxhighlight> 1{{spaces|en}}3 1 3 13
Figure Template:Figure space <syntaxhighlight lang="wikitext" inline="">123
1Template:Figure space3</syntaxhighlight>
123<br/>1{{spaces|fig}}3 123
1Template:Figure space3
123
13
Em <syntaxhighlight lang="wikitext" inline="">1 3</syntaxhighlight> 1{{spaces|em}}3 1 3 13
  1. Provided here by a non-breaking space (&nbsp;).



  1. ...
  2. ...
  3. ...
  4. ...
  5. ...
  6. ...
  7. ...
  8. ...
  9. ...
  10. ...
  11. ...
  12. ...