Difference between revisions of "Template:Hair space"
imported>Nyuszika7H m (Nyuszika7H moved page Template:Hairsp to Template:Hair space: Natural name as primary) |
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...) |
(No difference)
| |
Revision as of 18:59, 10 January 2018
Contents
Tests
- WM: WM
- WTemplate:Thinsp
{{hairsp}}M: W M - X
{{hairsp|W}}M: X W M - Thinsp test, wrappable (supposedly): PneumonoultramicroscopicsilicovolcanoconiosisTemplate:ThinspAntidisestablishmentarianism
- Long test, wrappable (supposedly): Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
- Long test, nonbreaking: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
- No-template long test: Pneumonoultramicroscopicsilicovolcanoconiosis Supercalifragilisticexpialidocious Antidisestablishmentarianism
{{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
| The above documentation is transcluded from Template:Hair space/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. |