Difference between revisions of "Template:Accidental"
Jump to navigation
Jump to search
blackwiki>Dbolton m (Switched font order) |
blackwiki>Mike Peel (Categorize into Category:MSIE font fix templates) |
||
| Line 50: | Line 50: | ||
# The template should improve cross-browser support for music symbols | # The template should improve cross-browser support for music symbols | ||
# The template should reduce edit squabbles between [[Unicode]] sharps and flats versus [[ASCII]] #'s and b's. It should not be used to create new edit wars | # The template should reduce edit squabbles between [[Unicode]] sharps and flats versus [[ASCII]] #'s and b's. It should not be used to create new edit wars | ||
| + | |||
| + | [[Category:MSIE font fix templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 18:40, 1 July 2007
{{{1}}}
Benefits
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 on Microsoft Windows such as Mozilla Firefox. See the table below to compare the results in your current browser.
| Without template | With template | |
|---|---|---|
| Flat | ♭ | ♭ |
| Natural | ♮ | ♮ |
| Sharp | ♯ | ♯ |
| double flat | 𝄫 | |
| double 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
Natural sign
{{accidental|natural}} renders ♮
Sharp sign
{{accidental|sharp}} renders ♯
{{accidental|doublesharp}} renders double sharp