• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Music

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
Not to be confused with Template:Music topics.
WarningThis template is used on approximately 7,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Wikimedia Commons has media related to Template:Music.

{{Music}} 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 "flat", etc.) 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.

Contents

  • 1 Accidentals
  • 2 Notes and rests
  • 3 Clefs
  • 4 Time signatures
  • 5 Scale degrees
  • 6 Chord symbols and figured bass
  • 7 Key signatures
  • 8 Bars
  • 9 Changing the size
  • 10 See also

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.

Symbol Unicode
entity
Unicode
result
Template
text
Template
result
Flat ♭ ♭ flat}}
or {{music|b}}
or {{music|♭}}
or {{flat}}
♭
Natural ♮ ♮ natural}}
or {{music|n}}
or {{music|♮}}
♮
Sharp ♯ ♯ sharp}}
or {{music|#}}
or {{music|♯}}
or {{sharp}}
♯
Double
flat
𝄫 𝄫 doubleflat}}
or {{music|bb}}
or {{music|𝄫}}
double flat
Double sharp 𝄪 𝄪 doublesharp}}
or {{music|##}}
or {{music|x}}
or {{music|𝄪}}
double sharp
Triple
flat
tripleflat}}
or {{music|bbb}}
triple flat
Triple sharp triplesharp}}
or {{music|###}}
or {{music|#x}}
♯triple sharp
Half
flat
𝄳 𝄳 halfflat}}
or {{music|d}}
half flat
Half
sharp
𝄲 𝄲 halfsharp}}
or {{music|t}}
half sharp
Flat
stroke
𝄳 𝄳 flatstroke}} flat stroke
Double
flat
stroke
doubleflatstroke}} double flat stroke
Three quarter flat threequarterflat}}
or {{music|db}}
three quarter flat
Three quarter sharp threequartersharp}}
or {{music|#t}}
three quarter sharp
Septimal quarter tone (-) 7}} or
{{music|septimal}}
7
Septimal quarter tone (+) L}} or
{{music|septimal plus}}
Error creating thumbnail:
11th partial [53 cents] (-) down}}
or {{music|11U}}
↓
11th partial [difference between 11:8 & 4:3] (+) up}}
or {{music|11}}
↑
13th partial [26.8 cents] (-) E1}} or
{{music|13U}}
Error creating thumbnail:
13th partial [difference between 13:8 & 8:5] (+) 13}} or
{{music|thirteen}}
Error creating thumbnail:
17th partial [34.28 cents] (-) 17 upside down}}
or {{music|L1}}
or {{music|17U}}
Error creating thumbnail:
17th partial [difference between 17:16 & 25:24] (+) 17}} Error creating thumbnail:
19th partial [18.13 cents] (-) 19}} Error creating thumbnail:
19th partial [difference between 19:16 & 6:5] (+) 19U}} Error creating thumbnail:
23rd partial [38.05 cents] (+) 23}} Error creating thumbnail:
29th partial [11.98 cents] (+) 29}} Error creating thumbnail:
31st partial [-56.77 cents] (-) 1E}} or
{{music|31U}}
Error creating thumbnail:
31st partial [56.77 cents] (+) 31}} Error creating thumbnail:
37th partial [Difference between 37/32 and 75/64] (-) 37}} Error creating thumbnail:
37th partial [23.24 cents] (+) 37U}} Error creating thumbnail:
Syntonic comma [+21.51 cents] (+) plus}} +
Syntonic comma [-21.51 cents] (-) minus}} -
Septimal quarter tone [-48.7 cents] (-) check up}} Error creating thumbnail:
Septimal quarter tone [+48.7 cents] (+) check}} Error creating thumbnail:
Sixth tone [+33.33 cents] (+) half check up}} Error creating thumbnail:
Sixth tone [-33.33 cents] (-) half check}} Error creating thumbnail:
Sample text

The C♯ crops up very early in Beethoven's Symphony No. 3 in E♭.

Notes and rests

Symbol Unicode
entity
Unicode
result
Template
text
Template
result
Double whole note 𝅜 𝅜
Whole
note
𝅝 𝅝 wholenote}}
or {{music|whole}}
or {{music|semibreve}}
Error creating thumbnail:
Half
note
𝅗𝅥 𝅗𝅥 halfnote}}
or {{music|half}}
or {{music|minim}}
Error creating thumbnail:
Quarter
note
𝅘𝅥 𝅘𝅥 quarternote}}
or {{music|quarter}}
or {{music|crotchet}}
Error creating thumbnail:
Eighth
note
𝅘𝅥𝅮 𝅘𝅥𝅮 eighthnote}}
or {{music|eighth}}
or {{music|quaver}}
Error creating thumbnail:
Beamed
eighth
notes
eighthnotebeam}}
or {{music|eighthbeam}}
or {{music|quaverbeam}}
Error creating thumbnail:
Sixteenth
note
𝅘𝅥𝅯 𝅘𝅥𝅯 sixteenthnote}}
or {{music|sixteenth}}
or {{music|semiquaver}}
Error creating thumbnail:
Beamed
sixteenth
notes
sixteenthnotebeam}}
or {{music|sixteenthbeam}}
or {{music|semiquaverbeam}}
Error creating thumbnail:
Thirty-
second
note
𝅘𝅥𝅰 𝅘𝅥𝅰 thirty-secondnote}}
or {{music|thirty-second}}
or {{music|demisemiquaver}}
Error creating thumbnail:
Sixty-
fourth
note
𝅘𝅥𝅱 𝅘𝅥𝅱 sixty-fourthnote}}
or {{music|sixty-fourth}}
or {{music|hemidemisemiquaver}}
Error creating thumbnail:
Hundred twenty-
eighth
note
𝅘𝅥𝅲 𝅘𝅥𝅲
Dot 𝅭 𝅭 dot}} .
Dotted quarter
note
𝅘𝅥𝅭 𝅘𝅥𝅭 dottedquarter}}
or {{music|dottedcrotchet}}
Error creating thumbnail: .
Dotted half
note
𝅗𝅥𝅭 𝅗𝅥𝅭 dottedhalf}}
or {{music|dottedminim}}
Error creating thumbnail: .
Double whole rest 𝄺 𝄺
Whole
rest
𝄻 𝄻 wholerest}}
or {{music|semibreverest}}
Error creating thumbnail:
Half
rest
𝄼 𝄼 halfrest}}
or {{music|minimrest}}
Error creating thumbnail:
Quarter
rest
𝄽 𝄽 quarterrest}}
or {{music|crotchetrest}}
Error creating thumbnail:
Eighth
rest
𝄾 𝄾 eighthrest}}
or {{music|quaverrest}}
Error creating thumbnail:
Sixteenth
rest
𝄿 𝄿 sixteenthrest}}
or {{music|semiquaverrest}}
Error creating thumbnail:
Thirty-
second
rest
𝅀 𝅀 thirtysecondrest}}
or {{music|demisemiquaverrest}}
Error creating thumbnail:
Sixty-
fourth
rest
𝅁 𝅁 sixtyfourthrest}}
or {{music|hemidemisemiquaverrest}}
Error creating thumbnail:
Hundred twenty-
eighth
rest
𝅂 𝅂

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

In place of the single whole note (Error creating thumbnail: ), Chopin writes Error creating thumbnail: Error creating thumbnail: Error creating thumbnail: Error creating thumbnail: , completely changing the profile of the music.

Clefs

Symbol Unicode entity Unicode result Template
text
Template
result
Treble clef
or G-clef
𝄞 𝄞 treble}}
or {{music|trebleclef}}
or {{music|gclef}}
Error creating thumbnail:
Alto
clef
alto}}
or {{music|altoclef}}
Error creating thumbnail:
Tenor
clef
tenor}}
or {{music|tenorclef}}
Error creating thumbnail:
C-clef 𝄡 𝄡 cclef}} Error creating thumbnail:
Bass clef
or F-clef
𝄢 𝄢 bass}}
or {{music|bassclef}}
or {{music|fclef}}
Error creating thumbnail:
Neutral clef 𝄥 𝄥 neutral}}
or {{music|neutralclef}}

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 𝄴 𝄴 common-time}} Error creating thumbnail:
cut-time 𝄵 𝄵 cut-time}}
or {{music|alla-breve}}
Error creating thumbnail:
2/4 time|2|4}} 2
4
3/4 time|3|4}} 3
4
3/8 time|3|8}} 3
8
6/8 time|6|8}} 6
8
9/8 time|9|8}} 9
8
12/8 time|12|8}} 12
8

For a general time signature, use {{music|time|top number|bottom number}}. This makes use of Template:Time signature, which should not be used on its own.

Scale degrees

Scale degrees are often represented as Arabic numerals with a hat on them and thus the root of a scale is Error creating thumbnail: .

Scale degree Template
text
Template
result
1 scale|1}} Error creating thumbnail:
2 scale|2}} Error creating thumbnail:
3 scale|3}} Error creating thumbnail:
4 scale|4}} Error creating thumbnail:
5 scale|5}} Error creating thumbnail:
6 scale|6}} Error creating thumbnail:
7 scale|7}} Error creating thumbnail:
8 scale|8}} Error creating thumbnail:
9 scale|9}} Error creating thumbnail:
Sample text

A descending tetrachord could be written as Error creating thumbnail: -Error creating thumbnail: -Error creating thumbnail: -Error creating thumbnail: .

Chord symbols and figured bass

Chord Template
text
Template
result
Diminished dim}}
or {{music|dimdeg}}
o
or °
Half-diminished halfdim}}
or {{music|dimslash}}
ø
Augmented +}}
or {{music|aug}}
+
Major Δ}}
or {{music|delta}}
or {{music|major}}
or {{music|maj}}
Δ
Root position 53}}
or {{music|53 chord}}
5
3
First inversion 63}}
or {{music|63 chord}}
or {{music|6 chord}}
6
or 6
3
Second inversion 64}}
or {{music|64 chord}}
6
4
Seventh chord root position 7 chord}} 7
Seventh chord first inversion 65}}
or {{music|65 chord}}
6
5
Seventh chord second inversion 43 chord}} 4
3
Seventh chord third inversion 2}}
or {{music|2 chord}}
or {{music|42}}
2
or 4
2
Walter Piston's notation of viio 07 chord}} 0
7
Ninth chord first inversion 75}}
or {{music|75 chord}}
7
5
Ninth chord second inversion 65}}
or {{music|65 chord}}
6
5
Ninth chord third inversion 643}}
or {{music|643 chord}}
6
4

3
Ninth chord fourth inversion 642}}
or {{music|642 chord}}
6
4

2
Sample text
viio7 becomes viiø7 in B♭ minor by raising the G♭ to G♮.
III becomes III+ in G♯ minor by raising the F♯ to Fdouble sharp.
The F♯Δ7 is used to great effect in the last measure of the piece.

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.

Sharps/Flats Key signature (major) Template
text
Template
result
Key signature (minor) Template
text
Template
result
7♯ C♯ major c-sharp major}} Error creating thumbnail: A♯ minor a-sharp minor}} Error creating thumbnail:
6♯ F♯ major f-sharp major}} Error creating thumbnail: D♯ minor d-sharp minor}} Error creating thumbnail:
5♯ B major b major}} Error creating thumbnail: G♯ minor g-sharp minor}} Error creating thumbnail:
4♯ E major e major}} Error creating thumbnail: C♯ minor c-sharp minor}} Error creating thumbnail:
3♯ A major a major}} Error creating thumbnail: F♯ minor f-sharp minor}} Error creating thumbnail:
2♯ D major d major}} Error creating thumbnail: B minor b minor}} Error creating thumbnail:
1♯ G major g major}} Error creating thumbnail: E minor e minor}} Error creating thumbnail:
0 C major c major}} Error creating thumbnail: A minor a minor}} Error creating thumbnail:
1♭ F major f major}} Error creating thumbnail: D minor d minor}} Error creating thumbnail:
2♭ B♭ major b-flat major}} Error creating thumbnail: G minor g minor}} Error creating thumbnail:
3♭ E♭ major e-flat major}} Error creating thumbnail: C minor c minor}} Error creating thumbnail:
4♭ A♭ major a-flat major}} Error creating thumbnail: F minor f minor}} Error creating thumbnail:
5♭ D♭ major d-flat major}} Error creating thumbnail: B♭ minor b-flat minor}} Error creating thumbnail:
6♭ G♭ major g-flat major}} Error creating thumbnail: E♭ minor e-flat minor}} Error creating thumbnail:
7♭ C♭ major c-flat major}} Error creating thumbnail: A♭ minor a-flat minor}} Error creating thumbnail:

Bars

Symbol Unicode
entity
Unicode
result
Template
text
Template
result
Left repeat 𝄆 𝄆 left repeat}} Error creating thumbnail:
Right repeat 𝄇 𝄇 right repeat}} Error creating thumbnail:

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

  • Help:Score and mw:Extension:Score
The above documentation is transcluded from Template:Music/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Music&oldid=22965"
Last edited on 9 April 2026, at 07:52
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 9 April 2026, at 07:52. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement