Difference between revisions of "Template:Hair space"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Hair space": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (in...)
imported>Colonies Chris
(full names for clarity)
Line 10: Line 10:
 
==Tests==
 
==Tests==
 
*{{var|W}}M: {{var|W}}M
 
*{{var|W}}M: {{var|W}}M
*{{var|W}}{{thinsp}}{{tlx|hairsp}}M: {{var|W}}{{hairsp}}M
+
*{{var|W}}{{thin space}}{{tlx|hair space}}M: {{var|W}}{{hair space}}M
*X{{tlx|hairsp|{{var|W}}}}M: X{{hairsp|1={{var|W}}}}M
+
*X{{tlx|hair space|{{var|W}}}}M: X{{hair space|1={{var|W}}}}M
*Thinsp test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis{{thinsp|Supercalifragilisticexpialidocious}}Antidisestablishmentarianism
+
*Thin space test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis{{thin space|Supercalifragilisticexpialidocious}}Antidisestablishmentarianism
*Long test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis{{hairsp|Supercalifragilisticexpialidocious}}Antidisestablishmentarianism
+
*Long test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis{{hair space|Supercalifragilisticexpialidocious}}Antidisestablishmentarianism
*Long test, nonbreaking: {{hairsp|before=Pneumonoultramicroscopicsilicovolcanoconiosis|1=Supercalifragilisticexpialidocious|after=Antidisestablishmentarianism}}
+
*Long test, nonbreaking: {{hair space|before=Pneumonoultramicroscopicsilicovolcanoconiosis|1=Supercalifragilisticexpialidocious|after=Antidisestablishmentarianism}}
 
*No-template long test: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
 
*No-template long test: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 11:53, 4 May 2019

Tests

  • WM: WM
  • W{{hair space}}M: W M
  • X{{hair space|W}}M: X W M
  • Thin space test, wrappable (supposedly): PneumonoultramicroscopicsilicovolcanoconiosisSupercalifragilisticexpialidocious Antidisestablishmentarianism
  • Long test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
  • Long test, nonbreaking: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
  • No-template long test: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
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