Template:Spc: Difference between revisions
(hairspacing template {{spc|n}} inserts n hairspaces) |
({{spc|n}} between two black boxes, for n=1,2,...,12) |
||
(36 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{{1|1}}} | ||
|0=|1= | |0=|1=<span style="margin-left:0.083em"></span>|2=<span style="margin-left:0.167em"></span>|3=<span style="margin-left:0.25em"></span>|4=<span style="margin-left:0.333em"></span>|5=<span style="margin-left:0.417em"></span>|6=<span style="margin-left:0.5em"></span>|7=<span style="margin-left:0.583em"></span>|8=<span style="margin-left:0.667em"></span>|9=<span style="margin-left:0.75em"></span>|10=<span style="margin-left:0.833em"></span>|11=<span style="margin-left:0.917em"></span>|12=<span style="margin-left:1em"></span>|<span style="margin-left:0.083em"></span>}}<noinclude> | ||
{{DisplayBox | {{prot-temp}} | ||
|text= | [[Category:Special character templates]] | ||
{{DisplayBox|text= | |||
'''Usage''' | |||
Type | Type | ||
<pre>{{spc|n}}</pre> | <pre>{{spc|n}}</pre> | ||
to insert "n" ''hairspaces'' (one hairspace is | to insert "n" ''hairspaces'', where n{{spc|1}}={{spc|1}}0,1,...,12 (one hairspace is 1/12 of an em-space). | ||
<pre>{{spc}}</pre> | <pre>{{spc}}</pre> | ||
is the same as <tt><nowiki>{{spc|1}}</nowiki></tt>, which is useful for inserting a very small space after an italic (slanted) character which appears before an upright character, as in | is the same as <tt><nowiki>{{spc|1}}</nowiki></tt>, which is useful for inserting a very small space after an italic (slanted) numeral or tall character (such as ''f'' or ''l''{{spc}}) which appears before an upright character, as in | ||
<pre>(''379''{{spc}})</pre> | <pre>(''379''{{spc}})</pre> | ||
producing (''379''{{spc}}), whereas | producing (''379''{{spc}}), whereas | ||
<pre>(''379'')</pre> | <pre>(''379'')</pre> | ||
produces the less appealing (''379''). | produces the less appealing (''379''). To get this small hairspace before and after the italics material being enclosed, simply type, say, | ||
<pre>({{spc}}''jof''{{spc}})</pre> | |||
obtaining ({{spc}}''jof''{{spc}}) instead of the usual (''jof''). By contrast, we have | |||
<pre>({{spc}}''nu''{{spc}})</pre> | |||
obtaining ({{spc}}''nu''{{spc}}) instead of the usual (''nu''). On the other hand, | |||
compare ({{spc}}''joy''{{spc}}) and ({{spc}}''leaf''{{spc}}) (both have a hairspace before and after the italicized word) with (''joy'') and (''leaf'') (no hairspace before or after the italicized word). It may be that ({{spc}}''joy'') (with hairspace before) and (''leaf''{{spc}}) (with hairspace after) appear even better. However, be forewarned that this may be somewhat browser and font dependent, especially at small font sizes. | |||
Here these are repeated, with some other possibilities: | |||
''joy'' | |||
:({{spc|2}}''joy''{{spc}}) via <tt><nowiki>({{spc|2}}''joy''{{spc}})</nowiki></tt> | |||
:({{spc}}''joy''{{spc}}) via <tt><nowiki>({{spc}}''joy''{{spc}})</nowiki></tt> | |||
:({{spc}}''joy'') via <tt><nowiki>({{spc}}''joy'')</nowiki></tt> | |||
:(''joy'') via <tt><nowiki>(''joy'')</nowiki></tt> | |||
''leaf'' | |||
:({{spc}}''leaf''{{spc|2}}) via <tt><nowiki>({{spc}}''leaf''{{spc|2}})</nowiki></tt> | |||
:({{spc}}''leaf''{{spc}}) via <tt><nowiki>({{spc}}''leaf''{{spc}})</nowiki></tt> | |||
:(''leaf''{{spc}}) via <tt><nowiki>(''leaf''{{spc}})</nowiki></tt> | |||
:(''leaf'') via <tt><nowiki>(''leaf'')</nowiki></tt> | |||
In each of these examples above, the fourth instance (no hairspaces) seems quite unappealing, while the first three seem acceptable, with the first and third being better, perhaps the first being best of all. | |||
Here are <tt><nowiki>>{{spc|n}}<</nowiki></tt>, for n = 1,2,...,12: | |||
: 1 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|1}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 2 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|2}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 3 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|3}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 4 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|4}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 5 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|5}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 6 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|6}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 7 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|7}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 8 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|8}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
: 9 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|9}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
:10 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|10}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
:11 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|11}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br> | |||
:12 {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|12}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}} | |||
See [[User:CHGiffen/Spacing]] for spacing issues. | |||
}} | }} | ||
</noinclude> |
Latest revision as of 17:57, 17 March 2021
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
Usage Type
{{spc|n}}
to insert "n" hairspaces, where n=0,1,...,12 (one hairspace is 1/12 of an em-space).
{{spc}}
is the same as {{spc|1}}, which is useful for inserting a very small space after an italic (slanted) numeral or tall character (such as f or l) which appears before an upright character, as in
(''379''{{spc}})
producing (379), whereas
(''379'')
produces the less appealing (379). To get this small hairspace before and after the italics material being enclosed, simply type, say,
({{spc}}''jof''{{spc}})
obtaining (jof) instead of the usual (jof). By contrast, we have
({{spc}}''nu''{{spc}})
obtaining (nu) instead of the usual (nu). On the other hand, compare (joy) and (leaf) (both have a hairspace before and after the italicized word) with (joy) and (leaf) (no hairspace before or after the italicized word). It may be that (joy) (with hairspace before) and (leaf) (with hairspace after) appear even better. However, be forewarned that this may be somewhat browser and font dependent, especially at small font sizes.
Here these are repeated, with some other possibilities:
joy
- (joy) via ({{spc|2}}''joy''{{spc}})
- (joy) via ({{spc}}''joy''{{spc}})
- (joy) via ({{spc}}''joy'')
- (joy) via (''joy'')
leaf
- (leaf) via ({{spc}}''leaf''{{spc|2}})
- (leaf) via ({{spc}}''leaf''{{spc}})
- (leaf) via (''leaf''{{spc}})
- (leaf) via (''leaf'')
In each of these examples above, the fourth instance (no hairspaces) seems quite unappealing, while the first three seem acceptable, with the first and third being better, perhaps the first being best of all.
Here are >{{spc|n}}<, for n = 1,2,...,12:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
See User:CHGiffen/Spacing for spacing issues.