Template:Thin space: Difference between revisions
From Black Cat Studios
Jump to navigationJump to search
(Created page with "<span style="white-space: nowrap;">{{#if:{{{1|}}}|{{#if:{{{2|}}}|| }}}}{{{1|}}} <!-- -->{{#if:{{{2|}}}|{{{2}}}}}{{#if:{{{3|}}}| {{{3}}}}}<!-- -->{{#if:{{{4|}}}| {{{4}}}}}{{#if:{{{5|}}}| {{{5}}}}}<!-- -->{{#if:{{{6|}}}| {{{6}}}}}{{#if:{{{7|}}}| {{{7}}}}}<!-- -->{{#if:{{{8|}}}| {{{8}}}}}{{#if:{{{9|}}}| {{{9}}}}}<!-- -->{{#if:{{{10|}}}| {{{10}}}}}</span><noinclude> {{Documentation}} <!-- Please add categ...") |
m (1 revision imported) |
Latest revision as of 20:13, 19 June 2023
Displays its arguments in a {{nowrap}} span separated by thin spaces ( 
). (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  
.
Usage
Input | Output |
---|---|
{{thinspace |
Template:Thinspace Tolkien |
<syntaxhighlight lang="wikitext" inline>Template:Thinspace</syntaxhighlight> | Template:Thinspace |
<syntaxhighlight lang="wikitext" inline>Template:Thinspace</syntaxhighlight> | Template:Thinspace |
{{thinspace |
Template:Thinspace |
{{thinspace}} | Template:Thinspace |
({{thinspace |
(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 | 1 3 |
Figure | → Template:Figure space←
|
<syntaxhighlight lang="wikitext" inline="">123 1Template:Figure space3</syntaxhighlight> |
123<br/>1{{spaces|fig}}3
|
123 1Template:Figure space3 |
123 1 3 |
Em | → ←
|
<syntaxhighlight lang="wikitext" inline="">1 3</syntaxhighlight> | 1{{spaces|em}}3
|
1 3 | 1 3 |
- ↑ Provided here by a non-breaking space ( ).