Difference between revisions of "Template:Hair space/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Hgrosser
(Undid revision 738678397 by Hgrosser (talk))
imported>Hgrosser
Line 1: Line 1:
<span class="Unicode" style="white-space:nowrap">{{
+
<noinclude><source lang=html></noinclude><span class="Unicode" style="white-space:nowrap">&#8202;</span>{{
 
#if: {{{1|}}}
 
#if: {{{1|}}}
| &#8202;{{{1}}}&#8202;
+
| {{{1}}}&#8202;
| &#8202;
+
}}<noinclude></source>
}}</span><noinclude>
 
<pre><span class="Unicode" style="white-space:nowrap">&amp;#8202;</span></pre>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 09:23, 22 September 2016

</noinclude><span class="Unicode" style="white-space:nowrap">&#8202;</span>{{
#if: {{{1|}}}
	| {{{1}}}&#8202;
}}<noinclude>
Template documentation[view] [edit] [history] [purge]

{{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

Template:Space comparison

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text to wrap in hair-spaces1

optional word to surround with hair spaces

Lineoptional
optional text beforebefore

optional word before the hair spaced param 1

Lineoptional
optional text afterafter

optional word or text after the hair-spaced text

Lineoptional

See also