This template is: used on approximately 11,000 pages and changes may be, "widely noticed." Test changes in the: template's /sandbox//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 | β β |
Text<ref>...</ref> ''Text''<ref>...</ref>
|
Text Text |
||
Hair (Very thin) |
β β
|
Text{{hair space}}<ref>...</ref> ''Text''{{hair space}}<ref>...</ref>
|
Text{{spaces|hair}}<ref>...</ref>
|
Text Text |
Text Text |
2-pixel | β β
|
Text{{px2}}<ref>...</ref> ''Text''{{px2}}<ref>...</ref>
|
Text Text |
||
Narrow no-break | β β
|
Text{{narrow no-break space}}<ref>...</ref> ''Text''{{narrow no-break space}}<ref>...</ref>
|
Text Text |
||
Thin | β β
|
Text{{thin space}}<ref>...</ref> ''Text''{{thin space}}<ref>...</ref>
|
Text{{spaces|thin}}<ref>...</ref>
|
Text Text |
Text Text |
Standard | β β
|
Text <ref>...</ref> ''Text'' <ref>...</ref>
|
Text{{spaces}}<ref>...</ref>
|
Text | Text Text |
En | β β
|
1 3
|
1{{spaces|en}}3
|
1 3 | 1 3 |
Figure | β β
|
123<br/>1{{figure space}}3
|
123<br/>1{{spaces|fig}}3
|
123 1 3 |
123 1 3 |
Em | β β
|
1 3
|
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
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.