Template:homophones/documentation

Use this template under the Pronunciation header to specify homophones for a term.

Parameters

 * 1
 * The language code (see List of languages) for the current language section. The parameter lang is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one.


 * 2, 3, 4 ...
 * Indicates one or more homophones to be listed. They will be displayed separated by commas, unless a bare semicolon is used as an argument, in which case the two surrounding arguments will be separated by a semicolon. See below under  for an example of this. (Additionally, if any homophone has an embedded comma, all homophones will be separated by semicolons; although in the case of homophones this is unlikely, since they are usually single words.) Note that semicolons do not count for the purposes of indexed parameters; thus, an example like en is correct and will result in the  accent qualifier being displayed after the homophone, while en is incorrect and will produce unexpected results. To avoid issues like this, it is recommended to use inline modifiers (see link).


 * q
 * Specifies a qualifier to be placed at the beginning, before the "Homophone:" or "Homophones:" text that normally precedes the homophone(s). This is formatted with the q/qualifier template. NOTE: Currently, use of this parameter is disallowed, since its meaning recently changed; this will change in July 2024.


 * qq
 * Specifies a qualifier to be placed at the end, after all homophones. This is formatted with the q/qualifier template.


 * a
 * Specifies one or more comma-separated accent qualifiers to be placed at the beginning, before the "Homophone:" or "Homophones:" text that normally precedes the homophone(s). These are formatted with the a/accent template. To be recognized as a separator, there must be no space following the comma; otherwise, the comma is treated as an embedded comma within the accent qualifier.


 * aa
 * Specifies one or more comma-separated accent qualifiers to be placed at the end, after all homophones. These are formatted with the a/accent template. To be recognized as a separator, there must be no space following the comma; otherwise, the comma is treated as an embedded comma within the accent qualifier.


 * q N
 * Specifies a qualifier to be placed before homophone N . This is formatted with the q/qualifier template. NOTE: Currently, use of this parameter is disallowed, since its meaning recently changed; this will change in July 2024.


 * qq N
 * Specifies a qualifier to be placed after homophone N . This is formatted with the q/qualifier template.


 * a N
 * Specifies one or more comma-separated accent qualifiers to be placed before homophone N . These are formatted with the a/accent template. To be recognized as a separator, there must be no space following the comma; otherwise, the comma is treated as an embedded comma within the accent qualifier.


 * aa N
 * Specifies one or more comma-separated accent qualifiers to be placed after homophone N . These are formatted with the a/accent template. To be recognized as a separator, there must be no space following the comma; otherwise, the comma is treated as an embedded comma within the accent qualifier.


 * ref N
 * Specifies one or more reference notes to be placed after homophone N . The reference is placed in the  section at the bottom of the language's entry. This works identically to the corresponding parameter of the IPA template; see Template:IPA for the exact syntax.


 * t N or gloss N
 * Gloss (meaning) for homophone N, in case only some meanings of the word are homophonous (as in , , , etc.).


 * alt N
 * Display text for homophone N, in place of the homophone itself.


 * tr N
 * Manual transliteration for homophone N . Only needed for homophones in a non-Latin script, and only when the automatically generated transliteration is wrong (or if there is no automatically generated transliteration, as with Hebrew).


 * ts N
 * Transcription for non-Latin-script homophone N, in the case of languages where the transliterations are markedly different from the actual pronunciation (e.g. Sumerian, Akkadian and ancient Egyptian). Should not be used for IPA pronunciations. Same as the ts parameter of l and m.


 * g N
 * Gender/number specification(s) for homophone N . See Module:gender and number for more details. Same as the g parameter of head, except that multiple, comma-separated gender/number specs can be given (there should be no space after the comma). Generally only use for disambiguating homophones with multiple pronunciations.


 * pos N
 * Part of speech for homophone N . Same as the pos parameter of l and m. Generally only use for disambiguating homophones with multiple pronunciations.


 * id N
 * Sense ID for homophone N . Same as the id parameter of l and m. Generally only use for disambiguating homophones with multiple pronunciations.


 * lit N
 * Literal meaning of homophone N . Same as the lit parameter of l and m. Provided for completeness, but you should rarely (if ever) need to use this.


 * sc N
 * Script code for homophone N . This overrides the overall script code specified in sc. This is rarely necessary, as the correct script can almost always be autodetected.


 * sc
 * Override the script code for all homophones. This in turn is overridden by individually specified sc N script codes. This is rarely necessary, as the correct script can almost always be autodetected.


 * 1
 * Override the caption displayed before the homophone(s) (normally "Homophone" or "Homophones", depending on whether there is one or more than one homophone). A colon is automatically added to the end.


 * 1
 * Disable output of the "Homophone:" or "Homophones:" caption before the homophone(s).


 * 1
 * Disable categorization.


 * sort
 * Manual sortkey. Use sparingly; the lua method in Module:languages can usually generate the correct sortkey.

Inline modifiers
All indexed parameters have corresponding inline modifiers, e.g., , , , , etc. that can be attached directly to a homophonw argument. Example:

which produces

This also shows the use of a bare semicolon argument to cause the separator between two homophones to appear as a semicolon.

Another example showing the use of double angle bracket notation:

which produces

Examples
In the English entry for : * gives

When available automatic transliteration will be added, e.g. in the Greek entry : * gives

Alternatively transliteration can be added manually, as well as qualification, for each homophone listed. For in the Hebrew entry : * gives