This template is the analogue of the {{K}} template for works which are in one of the mediæval modes or their modern theoretical equivalents. The church modes should be classified by the traditional numbers 1–8. The modern theoretical modes should be distinguished by the keynote and the number of sharps or flats in the implied key signature; for example, the Phrygian mode on E does not require any sharps or flats in the key signature, and may be referred to as {{M|E0}}.

The template only displays the type of mode, and does not add the page on which it is used to the Category corresponding to the mode; e.g. {{M|D0}} does not add the page to the Dorian mode category.

An invalidly entered mode will display an error message linking to this page.

Church (or Gregorian) modes

1 {{M|1}} Mode I (Dorian)
2 {{M|2}} Mode II (Hypodorian)
3 {{M|3}} Mode III (Phrygian)
4 {{M|4}} Mode IV (Hypophrygian)
5 {{M|5}} Mode V (Lydian)
6 {{M|6}} Mode VI (Hypolydian)
7 {{M|7}} Mode VII (Mixolydian)
8 {{M|8}} Mode VIII (Hypomixolydian)

Modern theoretical modes

In modern times, with the development of the key signature system, it is possible for any of the seven theoretical modes to start on any possible note pitch; however, strict modal use is sufficiently rare that most theoretical possibilities are not represented on IMSLP, and for simplicity, the more obscure possibilities should only be added to the template when a representative example does exist – as is the case for two examples in the Dorian and Phrygian modes. The defaults are given below:

C Ionian {{M|C0}}
D Dorian {{M|D0}}
E Phrygian {{M|E0}}
F Lydian {{M|F0}}
G Mixolydian {{M|G0}}
A Aeolian {{M|A0}}
B Locrian {{M|B0}}

The pieces composed in the Dorian mode starting on G, rather than on the usual D, should indicated by {{M|G-1}}, representing the starting note (G) and the number of flats in the resulting key signature (–1). There are also pieces in the Phrygian mode on A, which likewise would be indicated by {{M|A-1}}.

Considering modes that would have sharp key signatures: the equivalent of the Dorian mode on E would imply a key signature of two sharps, which would be indicated by {{M|E+2}}.