Template:Spc: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (protect this template, close up noinclude)
m (Special character)
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
{{#switch: {{{1|1}}}
|0=|1=|2=  |3=   |4=    |5=     |6=      |7=       |8=        |9=         |10=          |11=           |12=            |13=             | }}<noinclude>
|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>
{{prot-temp}}
{{prot-temp}}
{{DisplayBox
[[Category:Special character templates]]
|text=
{{DisplayBox|text=
;Usage:
'''Usage'''
Type
Type
<pre>{{spc|n}}</pre>
<pre>{{spc|n}}</pre>
to insert "n" ''hairspaces'' (one hairspace is about 1/12 of an Em-space).
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 = 0,1,...,12:
:{{spc|6}}0: >{{spc|0}}<
:{{spc|6}}1: >{{spc|1}}<
:{{spc|6}}2: >{{spc|2}}<
:{{spc|6}}3: >{{spc|3}}<
:{{spc|6}}4: >{{spc|4}}<
:{{spc|6}}5: >{{spc|5}}<
:{{spc|6}}6: >{{spc|6}}<
:{{spc|6}}7: >{{spc|7}}<
:{{spc|6}}8: >{{spc|8}}<
:{{spc|6}}9: >{{spc|9}}<
:10: >{{spc|10}}<
:11: >{{spc|11}}<
:12: >{{spc|12}}<
See [[User:CHGiffen/Spacing]] for spacing issues.
}}
}}
</noinclude>
</noinclude>

Revision as of 04:02, 27 August 2012

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 = 0,1,...,12:

0: ><
1: ><
2: ><
3: ><
4: ><
5: ><
6: ><
7: ><
8: ><
9: ><
10: ><
11: ><
12: ><

See User:CHGiffen/Spacing for spacing issues.