Template:Hair space/doc: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Caleb Cooper (talk | contribs) m 1 revision imported |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Commons Import}} |
|||
<!-- Categories at the bottom of this page, please; interwikis at Wikidata. --> |
<!-- Categories at the bottom of this page, please; interwikis at Wikidata. --> |
||
{{Template shortcut|hsp|hairsp|px1}} |
{{Template shortcut|hsp|hairsp|px1}} |
||
{{tl|Hair space}} produces the [[Unicode]] character {{unichar|200a|hair space|html=|nlink=}}, 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). |
{{tl|Hair space}} produces the [[Unicode]] character {{unichar|200a|hair space|html=|nlink=}}, a space character that is slightly thinner than the “[[wikipedia:thin space|thin space]]” character (see below and [[wikipedia:Whitespace character|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== |
==Comparisons== |
||
Latest revision as of 11:11, 5 November 2020
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
{{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
| Name / size | →Instance← |
Example code and ... | Using {{spaces}} | Output | Output {{spaces}} |
|---|---|---|---|---|---|
| none | →← |
Some text<ref>...</ref>
|
Some text[1] | ||
| Hair | → ←
|
Some text{{hair space}}<ref>...</ref>
|
Some text{{spaces|hair}}<ref>...</ref>
|
Some text [1] | Some text [1] |
| 2-pixel | →←
|
Some text{{px2}}<ref>...</ref>
|
Some text[1] | ||
| Narrow no-break | → ←
|
Some text{{narrow no-break space}}<ref>...</ref>
|
Some text [1] | ||
| Thin | → ←
|
Some text{{thin space}}<ref>...</ref>
|
Some text{{spaces|thin}}<ref>...</ref>
|
Some text [1] | Some text [1] |
| Standarda | → ←
|
Some text <ref>...</ref>
|
Some text{{spaces}}<ref>...</ref>
|
Some text [1] | Some text [1] |
| 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 |
1231 3 |
| Em | → ←
|
1 3
|
1{{spaces|em}}3
|
1 3 | 1 3 |
a Provided here by a non-breaking space ( ).
TemplateData
TemplateData for Hair space/doc
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