Difference between revisions of "Template:Accidental"
Jump to navigation
Jump to search
blackwiki>Dbolton |
blackwiki>Mzajac (→Benefits: added double flat & sharp to table, for reference) |
||
| Line 24: | Line 24: | ||
! Sharp | ! Sharp | ||
| ♯ || {{accidental|♯}} | | ♯ || {{accidental|♯}} | ||
| + | |- | ||
| + | ! double flat | ||
| + | | 𝄫 || {{accidental|𝄫}} | ||
| + | |- | ||
| + | ! double sharp | ||
| + | | 𝄪 || {{accidental|𝄪}} | ||
|} | |} | ||
Revision as of 07:26, 27 June 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 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