Template:Spc: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
({{spc|n}} between two black boxes, for n=1,2,...,12)
 
(21 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=             |<table width=10px cellspacing=0 cellpadding=0<tr><td> </td></tr></table>}}<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}}
[[Category:Templates]]
[[Category:Special character templates]]
{{DisplayBox
{{DisplayBox|text=
|text=
'''Usage'''
;Note: this template has been temporarily disabled because it is currently browser and/or font dependent.  Hopefully, a fix can be found soon.
 
;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 = 1,2,...,12:
:&ensp;1 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|1}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;2 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|2}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;3 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|3}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;4 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|4}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;5 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|5}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;6 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|6}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;7 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|7}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;8 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|8}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:&ensp;9 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|9}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:10 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|10}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:11 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|11}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}<br>
:12 &nbsp; {{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}{{spc|12}}{{nbox|bdcolor=#000000|bgcolor=#000000|{{spc|12}}}}
See [[User:CHGiffen/Spacing]] for spacing issues.
}}
}}
</noinclude>
</noinclude>

Latest revision as of 17:57, 17 March 2021

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.