Difference between revisions of "Template:Accidental"

From blackwiki
Jump to navigation Jump to search
blackwiki>Dbolton
m (→‎Purpose: copy edit)
blackwiki>Dbolton
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 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.
+
The template correctly renders Unicode sharps ({{accidental|sharp}}) flats ({{accidental|flat}}) and natural signs ({{accidental|natural}}) in [[Internet Explorer]] which would otherwise appear as [[Mojibake|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"

Revision as of 03:57, 22 June 2007

{{{1}}}


Purpose

The template correctly renders Unicode sharps () flats () and natural signs () in Internet Explorer which would otherwise appear as 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 (Doubleflat.svg) and double sharp (DoubleSharp.svg) signs since the corresponding Unicode characters are not widely supported.

Examples

Flat sign

{{accidental|flat}} renders
{{accidental|doubleflat}} renders Doubleflat.svg

Natural sign

{{accidental|natural}} renders

Sharp sign

{{accidental|sharp}} renders
{{accidental|doublesharp}} renders DoubleSharp.svg