Template:Music/doc
Script error: No such module "Message box". Script error: No such module "Distinguish". Script error: No such module "High-use". Template:Sister project
Template:Tl renders Western music notation of various types into Wikipedia and improves cross-browser support for music symbols. Per Wikipedia:Manual of Style (music)#Accidentals, this template (or the terms for the accidentals) should be used in preference to the lowercase letter "b" and the number sign (#).
The images used here are categorized at commons:Category:Template:Music, so if you change an image used please try to remember to update the categorization.
Accidentals
The template correctly renders Unicode accidentals, sharps (♯), flats (♭), and natural signs (♮) in Internet Explorer which would otherwise display empty squares unless a full Unicode font is chosen in its Preferences. The choice of fonts also improves the rendering in other browsers on Microsoft Windows such as Mozilla Firefox. See the tables below to compare the results in your current browser. The template makes use of SVG to display double flat (double flat), double sharp (double sharp), and microtonal signs since the corresponding Unicode characters are not widely supported.
- Sample text
-
- The C♯ appears very early in Beethoven's Symphony No. 3 in E♭.
Notes and rests
Some browsers and typefaces support ♩ (♩) and ♪ (♪) for quarter and eighth notes, as well as ♫ (♫) and ♬ (♬) for beamed eighth-note and sixteenth-note pairs respectively, but since the display of these characters does not match any of the other (non-supported) notes and rests, this template does not use these characters.
- Sample text
- One half note and two quarter note quarter note are equivalent.
Clefs
| Symbol | Unicode entity | Unicode result | Template text |
Template result | |
|---|---|---|---|---|---|
| Treble clef or G-clef |
𝄞 |
𝄞 | Template:Tlc or Template:Tlc or Template:Tlc |
treble clef | |
| Alto clef |
Template:Tlc or Template:Tlc |
alto clef | |||
| Tenor clef |
Template:Tlc or Template:Tlc |
tenor clef | |||
| C-clef | 𝄡 |
𝄡 | Template:Tlc | C clef | |
| Bass clef or F-clef |
𝄢 |
𝄢 | Template:Tlc or Template:Tlc or Template:Tlc |
bass clef | |
| Neutral clef | 𝄥 |
𝄥 | Template:Tlc or Template:Tlc |
Note that there is no graphical distinction between treble clef and G-clef; alto clef, tenor clef and C-clef; bass clef and F-clef. The names preserve a difference in meaning and make the caption text (for screen readers) different.
Time signatures
| Symbol | Unicode entity | Unicode result | Template text |
Template result |
|---|---|---|---|---|
| common-time | 𝄴 |
𝄴 | Template:Tlc | common time |
| cut-time | 𝄵 |
𝄵 | Template:Tlc or Template:Tlc |
cut time |
| 2/4 | Template:Tlc | Template:Time signature | ||
| 3/4 | Template:Tlc | Template:Time signature | ||
| 3/8 | Template:Tlc | Template:Time signature | ||
| 6/8 | Template:Tlc | Template:Time signature | ||
| 9/8 | Template:Tlc | Template:Time signature | ||
| 12/8 | Template:Tlc | Template:Time signature |
For a general time signature, use Template:Tlc. This makes use of Template:Tl; if an article uses many invocations of Template:Tlf it can lead to excessive post-expand include size; calling Template:Tlf will reduce that.
Scale degrees
Scale degrees are often represented as Arabic numerals with a hat on them and thus the submediant of a scale is scale degree 6.
| Scale degree | Template text |
Template result |
|---|---|---|
| 1 | Template:Tlc | scale degree 1 |
| 2 | Template:Tlc | scale degree 2 |
| 3 | Template:Tlc | scale degree 3 |
| 4 | Template:Tlc | scale degree 4 |
| 5 | Template:Tlc | scale degree 5 |
| 6 | Template:Tlc | scale degree 6 |
| 7 | Template:Tlc | scale degree 7 |
| 8 | Template:Tlc | scale degree 8 |
| 9 | Template:Tlc | scale degree 9 |
- Sample text
- The chord built on scale degree 4 of the major scale is a major chord.
Chord symbols and figured bass
| Chord | Template text |
Template result |
|---|---|---|
| Diminished | Template:Tlc | o |
| Half-diminished | Template:Tlc or Template:Tlc |
ø |
| Augmented | Template:Tlc or Template:Tlc |
+ |
| Major | Template:Tlc or Template:Tlc or Template:Tlc or Template:Tlc |
Δ |
| Root position | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
| First inversion | Template:Tlc or Template:Tlc or Template:Tlc |
6 or Script error: No such module "Su". |
| Second inversion | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
| Seventh chord root position | Template:Tlc | 7 |
| Seventh chord first inversion | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
| Seventh chord second inversion | Template:Tlc | Script error: No such module "Su". |
| Seventh chord third inversion | Template:Tlc or Template:Tlc or Template:Tlc |
2 or Script error: No such module "Su". |
| Walter Piston's notation of viio | Template:Tlc | Script error: No such module "Su". |
| Ninth chord first inversion | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
| Ninth chord second inversion | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
| Ninth chord third inversion | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
| Ninth chord fourth inversion | Template:Tlc or Template:Tlc |
Script error: No such module "Su". |
- Sample text
- DΔ7 consists of the notes D-F♯-A-C♯.
Key signatures
Key signatures must be typed in using the names of the articles themselves on keys. Note that there is no visual difference between the major and minor key signatures, but the alt text is different.
Bars
| Symbol | Unicode entity |
Unicode result |
Template text |
Template result |
|---|---|---|---|---|
| Left repeat | 𝄆 | 𝄆 | Template:Tlc | left repeat |
| Right repeat | 𝄇 | 𝄇 | Template:Tlc | right repeat |
Changing the size
Most symbols generated by this template, including double flats and sharps, notes, rests and key signatures, use images, as corresponding Unicode characters either don't exist or are not supported by all browsers. Unlike characters, images don't scale along with the surrounding text. To change the size of an image, to match the font size of the text in which it is placed, use the |size= parameter. Example:
<span style="font-size:80%">G{{music|bb|size=x8px}}</span>→ Gdouble flat
See also