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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(a slight rephrasing, added use with parameter)
imported>Frietjes
Line 4: Line 4:
 
{{tl|Hsp}} produces the "hair space" character ([[Unicode]] hexadecimal alias {{border| }}{{\}}{{border|U+200A}}), a space character that is slightly thinner than the "[[thin space]]" character (see below and [[Whitespace character]]).
 
{{tl|Hsp}} produces the "hair space" character ([[Unicode]] hexadecimal alias {{border| }}{{\}}{{border|U+200A}}), a space character that is slightly thinner than the "[[thin space]]" character (see below and [[Whitespace character]]).
  
The template may be used with or without a parameter. If used with a parameter{{aside|i.e. as {{tcpl|hsp|''[some text/content]''}}}} it adds a hair space before and after it.
+
The template may be used with or without a parameter. If used with a parameter &endash; i.e. as {{tlf|hsp|''[some text/content]''}} &endash; it adds a hair space before and after it.
  
 
===Comparisons===
 
===Comparisons===
{{Aligned table
+
{| class="wikitable"
|cols=4 |class=wikitable nowrap |colstyle=padding-left:0.5em;padding-right:0.5em;
+
|-
|col1style=text-align:center; |col2style=padding-left:2.5em; |col3style=font-family:monospace;
+
! Name / size      || →Instance← || {{sans-serif|Example code and ...}}                || output
|row1header=on |style1.2=padding-left:0.5em;padding-right:0.5em;
+
|-
| Name / size      | →Instance← | {{sans-serif|Example code and ...}}                | output
+
| ''none''          || →←        || <nowiki>Some text<ref>...</ref></nowiki>          || Some text{{fake ref}}
| ''none''          | →←        | <nowiki>Some text<ref>...</ref></nowiki>          | Some text{{fake ref}}
+
|-
| Hair              | →{{hsp}}←  | <nowiki>Some text{{hsp}}<ref>...</ref></nowiki>    | Some text{{hsp}}{{fake ref}}
+
| Hair              || →{{hsp}}←  || <nowiki>Some text{{hsp}}<ref>...</ref></nowiki>    || Some text{{hsp}}{{fake ref}}
| Thin              | →{{tsp}}←  | <nowiki>Some text{{tsp}}<ref>...</ref></nowiki>    | Some text{{tsp}}{{fake ref}}
+
|-
| Standard{{sup|a}} | →&nbsp;←  | <nowiki>Some text&amp;nbsp;<ref>...</ref></nowiki> | Some text&nbsp;{{fake ref}}
+
| Thin              || →{{tsp}}←  || <nowiki>Some text{{tsp}}<ref>...</ref></nowiki>    || Some text{{tsp}}{{fake ref}}
}}{{raise|{{smaller|&nbsp;{{sup|a}} Provided here by a [[non-breaking space]] ({{mono|105%|&amp;nbsp;}}).}}}}
+
|-
 +
| Standard{{sup|a}} || →&nbsp;←  || <nowiki>Some text&amp;nbsp;<ref>...</ref></nowiki> || Some text&nbsp;{{fake ref}}
 +
|-
 +
|}{{raise|{{smaller|&nbsp;{{sup|a}} Provided here by a [[non-breaking space]] ({{mono|105%|&amp;nbsp;}}).}}}}
  
 
===See also===
 
===See also===
{{startflatlist}}
+
{{colbegin||10em}}
 +
* {{tl|px1}}
 +
* {{tl|px2}}
 
* {{tl|thinsp}}
 
* {{tl|thinsp}}
 
* {{tl|sp}}
 
* {{tl|sp}}
Line 26: Line 31:
 
* {{tl|nwsp}}
 
* {{tl|nwsp}}
 
* {{tl|zwnbsp}}
 
* {{tl|zwnbsp}}
{{endflatlist}}
+
{{colend}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |

Revision as of 23:51, 2 March 2015

{{Hsp}} produces the "hair space" character (Unicode hexadecimal alias &#x200A; / U+200A), a space character that is slightly thinner than the "thin space" character (see below and Whitespace character).

The template may be used with or without a parameter. If used with a parameter &endash; i.e. as {{hsp|[some text/content]}} &endash; it adds a hair space before and after it.

Comparisons

Name / size →Instance← Template:Sans-serif output
none →← Some text<ref>...</ref> Some text[1]
Hair → ← Some text{{hsp}}<ref>...</ref> Some text [1]
Thin Template:Tsp Some text{{tsp}}<ref>...</ref> Some textTemplate:Tsp[1]
Standarda → ← Some text&nbsp;<ref>...</ref> Some text [1]

Template:Raise

See also