Difference between revisions of "Template:Hsp"
imported>Hgrosser (→top) |
imported>Nardog (fix syntax highlight) |
||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>{{#tag:syntaxhighlight| |
</noinclude><span class="Unicode nowrap"> </span>{{ | </noinclude><span class="Unicode nowrap"> </span>{{ | ||
#if: {{{1|}}} | #if: {{{1|}}} | ||
| {{{1}}}  | | {{{1}}}  | ||
− | }}<noinclude> | + | }}<noinclude>|lang=html|class=nowrap}} |
− | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 20:58, 5 June 2017
<span class="Unicode nowrap"> </span>
{{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 Hsp
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
The above documentation is transcluded from Template:Hsp/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |