Difference between revisions of "Template:Space comparison"

From Timeline of History
Jump to navigation Jump to search
en>WOSlinker
(tidy br)
 
m (1 revision imported)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
!Output {{Tl|spaces}}
!Output {{Tl|spaces}}
|-
|-
|''none''||{{Bordered arrows|}}||<syntaxhighlight lang="html" inline="">Text<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="html" inline="">''Text''<ref>...</ref></syntaxhighlight>
|''none''||{{Bordered arrows|}}||<syntaxhighlight lang="wikitext" inline="">Text<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="wikitext" inline="">''Text''<ref>...</ref></syntaxhighlight>
|
|
|Text{{dummy reference}}<br>''Text''{{dummy reference|2}}
|Text{{dummy reference}}<br>''Text''{{dummy reference|2}}
Line 10: Line 10:
|-
|-
|Hair<br>(Very thin)||{{Bordered arrows|{{hair space}}}}
|Hair<br>(Very thin)||{{Bordered arrows|{{hair space}}}}
|<syntaxhighlight lang="html" inline="">Text{{hair space}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="html" inline="">''Text''{{hair space}}<ref>...</ref></syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">Text{{hair space}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="wikitext" inline="">''Text''{{hair space}}<ref>...</ref></syntaxhighlight>
|<code><nowiki>Text{{spaces|hair}}<ref>...</ref></nowiki></code>
|<code><nowiki>Text{{spaces|hair}}<ref>...</ref></nowiki></code>
|Text{{hair space}}{{dummy reference}}<br>''Text''{{hair space}}{{dummy reference|2}}
|Text{{hair space}}{{dummy reference}}<br>''Text''{{hair space}}{{dummy reference|2}}
Line 16: Line 16:
|-
|-
|2-pixel||{{Bordered arrows|{{px2}}}}
|2-pixel||{{Bordered arrows|{{px2}}}}
|<syntaxhighlight lang="html" inline="">Text{{px2}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="html" inline="">''Text''{{px2}}<ref>...</ref></syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">Text{{px2}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="wikitext" inline="">''Text''{{px2}}<ref>...</ref></syntaxhighlight>
|
|
|Text{{px2}}{{dummy reference}}<br>''Text''{{px2}}{{dummy reference|2}}
|Text{{px2}}{{dummy reference}}<br>''Text''{{px2}}{{dummy reference|2}}
Line 22: Line 22:
|-
|-
|Narrow no-break||{{Bordered arrows|{{narrow no-break space}}}}
|Narrow no-break||{{Bordered arrows|{{narrow no-break space}}}}
|<syntaxhighlight lang="html" inline="">Text{{narrow no-break space}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="html" inline="">''Text''{{narrow no-break space}}<ref>...</ref></syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">Text{{narrow no-break space}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="wikitext" inline="">''Text''{{narrow no-break space}}<ref>...</ref></syntaxhighlight>
|
|
|Text{{narrow no-break space}}{{dummy reference}}<br>''Text''{{narrow no-break space}}{{dummy reference|2}}
|Text{{narrow no-break space}}{{dummy reference}}<br>''Text''{{narrow no-break space}}{{dummy reference|2}}
Line 28: Line 28:
|-
|-
|Thin||{{Bordered arrows|{{thin space}}}}
|Thin||{{Bordered arrows|{{thin space}}}}
|<syntaxhighlight lang="html" inline="">Text{{thin space}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="html" inline="">''Text''{{thin space}}<ref>...</ref></syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">Text{{thin space}}<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="wikitext" inline="">''Text''{{thin space}}<ref>...</ref></syntaxhighlight>
|<code><nowiki>Text{{spaces|thin}}<ref>...</ref></nowiki></code>
|<code><nowiki>Text{{spaces|thin}}<ref>...</ref></nowiki></code>
|Text{{thin space}}{{dummy reference}}<br>''Text''{{thin space}}{{dummy reference|2}}
|Text{{thin space}}{{dummy reference}}<br>''Text''{{thin space}}{{dummy reference|2}}
|Text{{spaces|thin}}{{dummy reference}}<br>''Text''{{spaces|thin}}{{dummy reference|2}}
|Text{{spaces|thin}}{{dummy reference}}<br>''Text''{{spaces|thin}}{{dummy reference|2}}
|-
|-
|Standard{{sup|a}}||{{Bordered arrows|&nbsp;}}
|Standard{{efn|Provided here by a [[Wikipedia:non-breaking space|non-breaking space]] ({{mono|105%|&amp;nbsp;}}).}}||{{Bordered arrows|&nbsp;}}
|<syntaxhighlight lang="html" inline="">Text&nbsp;<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="html" inline="">''Text''&nbsp;<ref>...</ref></syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">Text&nbsp;<ref>...</ref></syntaxhighlight><br><syntaxhighlight lang="wikitext" inline="">''Text''&nbsp;<ref>...</ref></syntaxhighlight>
|<code><nowiki>Text{{spaces}}<ref>...</ref></nowiki></code>
|<code><nowiki>Text{{spaces}}<ref>...</ref></nowiki></code>
|Text&nbsp;{{dummy reference}}
|Text&nbsp;{{dummy reference}}
Line 40: Line 40:
|-
|-
|En||{{Bordered arrows|&ensp;}}
|En||{{Bordered arrows|&ensp;}}
|<syntaxhighlight lang="html" inline="">1&ensp;3</syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">1&ensp;3</syntaxhighlight>
|<code><nowiki>1{{spaces|en}}3</nowiki></code>
|<code><nowiki>1{{spaces|en}}3</nowiki></code>
|1&ensp;3
|1&ensp;3
Line 46: Line 46:
|-
|-
|Figure||{{Bordered arrows|{{figure space}}}}
|Figure||{{Bordered arrows|{{figure space}}}}
|<syntaxhighlight lang="html" inline="">123<br/>1{{figure space}}3</syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">123<br/>1{{figure space}}3</syntaxhighlight>
|<code><nowiki>123<br/>1{{spaces|fig}}3</nowiki></code>
|<code><nowiki>123<br/>1{{spaces|fig}}3</nowiki></code>
|123<br />1{{figure space}}3
|123<br />1{{figure space}}3
Line 52: Line 52:
|-
|-
|Em||{{Bordered arrows|&emsp;}}
|Em||{{Bordered arrows|&emsp;}}
|<syntaxhighlight lang="html" inline="">1&emsp;3</syntaxhighlight>
|<syntaxhighlight lang="wikitext" inline="">1&emsp;3</syntaxhighlight>
|<code><nowiki>1{{spaces|em}}3</nowiki></code>
|<code><nowiki>1{{spaces|em}}3</nowiki></code>
|1&emsp;3
|1&emsp;3
|1{{spaces|em}}3
|1{{spaces|em}}3
|-
|-
|}{{raise|{{smaller|&nbsp;{{sup|a}} Provided here by a [[Wikipedia:non-breaking space|non-breaking space]] ({{mono|105%|&amp;nbsp;}}).}}}}
|}{{notelist}}
<noinclude>[[Category:Inline spacing templates]]</noinclude>

Latest revision as of 12:44, 7 November 2023

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)
<syntaxhighlight lang="wikitext" inline="">Text [3]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">Text[4]</syntaxhighlight>
Text{{spaces|hair}}<ref>...</ref> Text [1]
Text[2]
Text[1]
Text[2]
2-pixel <syntaxhighlight lang="wikitext" inline="">Text[5]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">Text[6]</syntaxhighlight>
Text[1]
Text[2]
Narrow no-break <syntaxhighlight lang="wikitext" inline="">Text [7]</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="">Text[8]</syntaxhighlight>
Text [1]
Text[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 <syntaxhighlight lang="wikitext" inline="">123
13</syntaxhighlight>
123<br/>1{{spaces|fig}}3 123
13
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. ...