Template:accent/documentation

Use this template to specify an accent qualifier for a pronunciation. 1 should contain the language code for the accent in question; you can leave this blank for non-language-specific accent qualifiers. 2, 3, etc. should contain the accent qualifiers.

Accent qualifiers are substantially the same as the labels specified using lb, and support all the syntax described there, including pseudo-context qualifiers such as and ; double angle bracket notation; and display overrides using. Currently, the only differences between lb and a are that (a) a does not categorize, while lb does; (b) some labels display differently when used as accent qualifiers, in a way that is more appropriate to pronunciation specifications. Examples of labels that display differently:
 * The English label (alias, , , etc.) displays as Australia and links to the Wikipedia article on  when used with lb, but displays as General Australian (the name of the standard Australian accent) and links to  when used with a. Similar changes happen with the  and  labels (in the latter case, only the Wikipedia article changes).
 * The Latin label (alias, , etc.) displays as Ecclesiastical Latin and links to  when used with lb, but displays as modern Italianate Ecclesiastical and links to  when used with a.
 * The (ancient) Egyptian labels, , and  display as such when used with lb, but display as reconstructed Old Egyptian, reconstructed Middle Egyptian, etc. when used with a.
 * The Hebrew label (alias, etc.) links to  when used with lb, but links to  when used with a.

Various pronunciation templates, e.g. IPA, enPR, homophones, rhymes, audio and hyphenation, support specifying accent qualifiers using the a (left qualifier) and aa (right qualifier) parameters, as well as (in the case of templates supporting multiple pronunciations) pronunciation-specific parameters a N and aa N and inline modifiers and. These should be used in preference to separately specifying the accent qualifier(s) using a, when possible. This means that the main use of a itself (rather than one of the parameter variants) is when not next to a pronunciation template, such as when on a line by itself or next to a translation template (t, t+, etc.).

The main difference between accent qualifiers and plain qualifiers specified using q is that the latter always display as-is and never have links automatically added, while accent qualifiers may (specifically, when they correspond to a recognized label) display differently and may have automatic links added. Unrecognized accent qualifiers display as-is and don't link, just like plain qualifiers, so when using a combination of recognized labels and unrecognized raw text, prefer an accent qualifier over a plain qualifier.

To add a new recognized accent qualifier, add it as a label. See Module:labels/data for more information.

Examples:

1. A simple use of a:

displays as

2. A use of the a parameter:

displays as

3. A use of the a parameter along with the inline modifier:

displays as

4. A use of the aa1 and aa2 parameters, using double angle bracket notation:

displays as

5. A use of the inline modifier, using double angle bracket notation and  to force a label to display a particular way:

displays as

Customization
Readers can customize the styles using WT:PREFS or by editing their personal CSS files (e.g. Special:Mypage/monobook.css), as described in WT:CUSTOM.