Template:Hair space

From Hârn
(Redirected from Template:Hairsp)
Jump to navigation Jump to search

Tests[edit source]

  • WM: WM
  • W{{hairsp}}M: W M
  • X{{hairsp|W}}M: X W M
  • Thinsp test, wrappable (supposedly): PneumonoultramicroscopicsilicovolcanoconiosisSupercalifragilisticexpialidocious Antidisestablishmentarianism
  • Long test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
  • Long test, nonbreaking: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
  • No-template long test: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
Template documentation[view] [edit] [history] [purge]

{{Hsp}} 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{{hsp}}<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 Template:Tsp Some text{{tsp}}<ref>...</ref> Some textTemplate:Tsp[1]
Standarda   Some text&nbsp;<ref>...</ref> Some text [1]
En &ensp;
Figure 123<br/>1{{fsp}}3 123
13
Em &emsp;
 a Provided here by a non-breaking space (&nbsp;).

See also[edit source]