Template:Hair space
Jump to navigation
Jump to search
a Provided here by a non-breaking space ( ).
Tests[edit source]
- WM: WM
- W
{{hair space}}
M: W M - X
{{hair space|W}}
M: X W M - Thin space test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
- Long test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
- Long test, nonbreaking: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
- No-template long test: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
{{Hair space}} produces the Unicode character U+200A HAIR SPACE (HTML  
), a space character that is slightly thinner than the “thin space” character (see below and Whitespace character). It is forced to be non-breaking, since this is the desired behavior in most uses of this template. If a parameter is supplied, it is sandwiched on both sides with hair space characters (only the first is non-breaking).
Comparisons[edit source]
Name / size | → Instance← |
Example code and ... | output |
---|---|---|---|
none | → ← |
Some text<ref>...</ref> |
Some text[1] |
Hair | → ← |
Some text{{hair space}}<ref>...</ref> |
Some text [1] |
Narrow no-break | → ← |
Some text{{NNBSP}}<ref>...</ref> |
Some text [1] |
2 pixel | → ← |
Some text{{px2}}<ref>...</ref> |
Some text | [1]
Thin | → ← |
Some text{{thin space}}<ref>...</ref> |
Some text [1] |
Standarda | → ← |
Some text <ref>...</ref> |
Some text [1] |
En | → ← |
  |
|
Figure | → ← |
123<br/>1{{figure space}}3 |
123 1 3 |
Em | → ← |
  |
See also[edit source]
- {{px2}}
- {{thin space}}
- {{sp}}
- {{spaces}}
- {{NNBSP}}
- {{zero width space}}
- {{zero width joiner}}
External links[edit source]
- Template:Hair space at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Hair space/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |