Template:Hair space
![]() | This template is used on approximately 7,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{Hair space}} produces the Unicode character U+200A HAIR SPACE ( ,  ), 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 (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 Text [2] |
[1]||
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[a] | → ←
|
<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 | → ←
|
<syntaxhighlight lang="wikitext" inline="">123 1 3</syntaxhighlight> |
123<br/>1{{spaces|fig}}3
|
123 1 3 |
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 ( ).
TemplateData
TemplateData for Hair space
Inserts a very thin "hair space" unicode character, if no parameters are provided. If {{para|1}} is, that text is wrapped on each side with a hair space.
Parameter | Description | Type | Status | |
---|---|---|---|---|
text to wrap in hair-spaces | 1 | optional word to surround with hair spaces | Line | optional |
optional text before | before | optional word before the hair spaced param 1 | Line | optional |
optional text after | after | optional word or text after the hair-spaced text | Line | optional |
See also
- {{Very thin space}} – redirect
- Template:Mhair – provides an em dash and a hair space, ideal for use just before a ~~~~ signature