Difference between revisions of "Template:Hair space/doc"
imported>Funandtrvl (→See also: already in navbox) |
|||
(27 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- 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}} | ||
− | {{tl| | + | {{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). |
− | + | ==Comparisons== | |
+ | {{Space comparison}} | ||
− | === | + | ==TemplateData== |
− | + | {{TemplateData header}} | |
− | + | <templatedata> | |
− | + | { | |
− | + | "params": { | |
− | + | "1": { | |
− | + | "label": "text to wrap in hair-spaces", | |
− | + | "description": "optional word to surround with hair spaces", | |
− | + | "type": "line" | |
− | + | }, | |
− | + | "before": { | |
− | + | "label": "optional text before", | |
− | + | "description": "optional word before the hair spaced param 1", | |
− | + | "type": "line" | |
+ | }, | ||
+ | "after": { | ||
+ | "label": "optional text after", | ||
+ | "description": "optional word or text after the hair-spaced text", | ||
+ | "type": "line" | ||
+ | } | ||
+ | }, | ||
+ | "description": "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.", | ||
+ | "format": "inline" | ||
+ | } | ||
+ | </templatedata> | ||
− | + | ==See also== | |
− | + | {{Inline spacing templates}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <includeonly>{{ | + | <includeonly>{{Sandbox other| |
| <!-- Categories below this line, please: --> | | <!-- Categories below this line, please: --> | ||
[[Category:Inline spacing templates]] | [[Category:Inline spacing templates]] | ||
+ | [[Category:Character templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 19:35, 10 September 2020
![]() | This is a documentation subpage for Template:Hair space. It contains usage information, categories and other content that is not part of the original template page. |
{{Hair space}} produces the Unicode character Template:Unichar, 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
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