Difference between revisions of "Template:Accidental"
Jump to navigation
Jump to search
blackwiki>Dbolton |
blackwiki>Dbolton m (→Purpose: copy edit) |
||
| Line 11: | Line 11: | ||
==Purpose== | ==Purpose== | ||
| − | The template correctly renders Unicode sharps ({{accidental|sharp}}) flats ({{accidental|flat}}) and natural signs ({{accidental|natural}}) in [[Internet Explorer]] which would show empty squares | + | The template correctly renders Unicode sharps ({{accidental|sharp}}) flats ({{accidental|flat}}) and natural signs ({{accidental|natural}}) in [[Internet Explorer]] which would otherwise show only empty squares. The choice of fonts also improves the rendering in other browsers such as [[Mozilla Firefox]]. The idea is modeled after [[Template:IPA]]. See the table below to compare the results in your current browser. |
{| cellspacing="14" | {| cellspacing="14" | ||
| Line 26: | Line 26: | ||
|} | |} | ||
| − | The template also makes use of [[Scalable Vector Graphics|SVG]] to display double flat ({{accidental|doubleflat}}) and double sharp ({{accidental|doublesharp}}) signs since the corresponding Unicode characters are | + | The template also makes use of [[Scalable Vector Graphics|SVG]] to display double flat ({{accidental|doubleflat}}) and double sharp ({{accidental|doublesharp}}) signs since the corresponding Unicode characters are not widely supported. |
==Examples== | ==Examples== | ||
Revision as of 03:49, 22 June 2007
{{{1}}}
Purpose
The template correctly renders Unicode sharps (♯) flats (♭) and natural signs (♮) in Internet Explorer which would otherwise show only empty squares. The choice of fonts also improves the rendering in other browsers such as Mozilla Firefox. The idea is modeled after Template:IPA. See the table below to compare the results in your current browser.
| Without template | With template | |
|---|---|---|
| Flat | ♭ | ♭ |
| Natural | ♮ | ♮ |
| Sharp | ♯ | ♯ |
The template also makes use of SVG to display double flat (8px) and double sharp (
) signs since the corresponding Unicode characters are not widely supported.
Examples
Flat sign
{{accidental|flat}} renders ♭
{{accidental|doubleflat}} renders 8px
Natural sign
{{accidental|natural}} renders ♮
Sharp sign
{{accidental|sharp}} renders ♯
{{accidental|doublesharp}} renders