Template:Hair space

(Redirected from Template:Hairsp)

Tests

  • 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
Documentation icon Template documentation[view] [edit] [history] [purge]

{{Hsp}} produces the Unicode character Error using {{unichar}}: Input "200a" is not a hexadecimal value., 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

Name / size Instance Example code and ... output
none <source lang="html" inline>Some text[1]</source> Some text[1]
Hair <source lang="html" inline>Some text [2]</source> Some text [1]
Narrow no-break <source lang="html" inline>Some text [3]</source> Some text [1]
2 pixel <source lang="html" inline>Some text[4]</source> Some text[1]
Thin <source lang="html" inline>Some text[5]</source> Some text[1]
Standarda   <source lang="html" inline>Some text [6]</source> Some text [1]
En <source lang="html" inline> </source>
Figure <source lang="html" inline>123
13</source>
123
13
Em <source lang="html" inline> </source>
 a Provided here by a non-breaking space (&nbsp;).

See also

  1. ...
  2. ...
  3. ...
  4. ...
  5. ...
  6. ...