Template:Accidental
Revision as of 05:44, 22 June 2007 by blackwiki>Dbolton (→Purpose)
{{{1}}}
Purpose
The template correctly renders Unicode sharps (♯) flats (♭) and natural signs (♮) in Internet Explorer which would otherwise display 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 (
) and double sharp (
) signs since the corresponding Unicode characters are not widely supported.
Examples
Flat sign
{{accidental|flat}} renders ♭
{{accidental|doubleflat}} renders File:Doubleflat.svg
Natural sign
{{accidental|natural}} renders ♮
Sharp sign
{{accidental|sharp}} renders ♯
{{accidental|doublesharp}} renders