Difference between revisions of "Template:Accidental"
Jump to navigation
Jump to search
blackwiki>Dbolton |
blackwiki>Dbolton (test) |
||
| Line 3: | Line 3: | ||
| natural = ♮ | | natural = ♮ | ||
| sharp = ♯ | | sharp = ♯ | ||
| − | | | + | | doublesharp = [[Image:DoubleSharp.svg|8px]] |
| − | | | + | | doubleflat = [[Image:DoubleFlat.svg|8px]] |
| #default = {{{1}}} | | #default = {{{1}}} | ||
}}</span><noinclude> | }}</span><noinclude> | ||
| Line 29: | Line 29: | ||
===Flat sign=== | ===Flat sign=== | ||
<nowiki>{{accidental|flat}}</nowiki> renders {{accidental|flat}}<br/> | <nowiki>{{accidental|flat}}</nowiki> renders {{accidental|flat}}<br/> | ||
| − | <nowiki>{{accidental| | + | <nowiki>{{accidental|doubleflat}}</nowiki> renders {{accidental|double flat}} |
===Natural sign=== | ===Natural sign=== | ||
| Line 36: | Line 36: | ||
===Sharp sign=== | ===Sharp sign=== | ||
<nowiki>{{accidental|sharp}}</nowiki> renders {{accidental|sharp}}<br/> | <nowiki>{{accidental|sharp}}</nowiki> renders {{accidental|sharp}}<br/> | ||
| − | <nowiki>{{accidental| | + | <nowiki>{{accidental|doublesharp}}</nowiki> renders {{accidental|double sharp}} |
</noinclude> | </noinclude> | ||
Revision as of 01:11, 22 June 2007
{{{1}}}
Purpose
The template correctly renders Unicode sharps (♯) flats (♭) and natural signs (♮) in Internet Explorer which would show empty squares instead of the proper symbol. The idea is modeled after Template:IPA. The choice of fonts also improves the rendering in other browsers such as Mozilla Firefox.
| Without template | With template | |
|---|---|---|
| Flat | ♭ | ♭ |
| Natural | ♮ | ♮ |
| Sharp | ♯ | ♯ |
Examples
Flat sign
{{accidental|flat}} renders ♭
{{accidental|doubleflat}} renders double flat
Natural sign
{{accidental|natural}} renders ♮
Sharp sign
{{accidental|sharp}} renders ♯
{{accidental|doublesharp}} renders double sharp