Definition from Wiktionary, the free dictionary
(Redirected from Template:af)
Jump to: navigation, search

prefix- +‎ base +‎ -suffix

This template shows the affixes of a word, for use in etymologies. It uses Module:compound and Module:compound/templates as a back-end.


{{affix|en|complete|-ness}} = completeness
{{affix|en|pre-|date}} = predate
{{affix|en|acro-|-nym}} = acronym
{{affix|en|pest|-i-|-cide}} = pesticide
{{affix|en|volley|ball}} = volleyball


The language code. See Wiktionary:Languages.
The script code. See Wiktionary:Scripts. This is rarely needed as the script can generally be automatically detected.
|2=, |3= etc.
The parts of the words to show. Either: 1) At least one of the provided parts must begin and/or end with a hyphen (prefix, suffix, interfix); 2) or there must be two or more parts (it may be a compound, with or without prefixes, suffixes, interfixes).
The part of speech to include in the category names, in plural form. Defaults to words.
The sort key to use when placing the entry in categories. This is rarely needed, as the default generated sort key is usually correct.
Do not add categories to the entry.

The following parameters are available for each matching part in the numbered/positional parameters. The N must be replaced by the corresponding part index. For example, for the second part (positional parameter 3), use 2 for N. Most of these parameters correspond directly to the equivalent parameters in the standard {{l}} (and {{m}}) template.

The alternative display form. Equivalent to the third parameter of {{l}}.
A gloss to show after the part. Equivalent to the fourth parameter of {{l}}. The parameter |glossN= is deprecated for this purpose.
The transliteration, as in {{l}}.
The sense id, as in {{l}}.
The part of speech label to show after the part, as in {{l}}. If this parameter contains patronym(ic), the entry will be added to a language's patronymic category. If this parameter contains diminutive and the |pos= parameter is defined, the entry will be added to a diminutive part-of-speech category. For instance, the parameter values |pos=noun and |pos2=diminutive suffix will add an entry to the language's diminutive nouns category.
The literal meaning to show after the part, as in {{l}}.
The language code to use for this particular part. This overrides the default provided by |1=. When this is provided, the language name is displayed before the part in the same format as {{etyl}}, and a derivational category is also added to the entry. This is used for the occasional term which was directly affixed at the time of borrowing, and for which no native base form existed at the time, such as vexillology.
The script code to use for this particular part. This overrides the default provided by |sc=.


The template will automatically categorize the entry based on the types of affixes it sees.

  • If a part begins with a hyphen, it is a suffix.
  • If a part ends with a hyphen, it's a prefix.
  • If a part has a hyphen at both ends, it's an interfix.

What is considered a hyphen depends on the specified language, so it can also support language-specific types of hyphen.


  • There is no support for languages that do not use hyphens at all, as there is no way to tell affixes apart in that case.
  • Things don't work right for terms beginning or ending with hyphens that are not suffixes, prefixes or interfixes. This includes infixes and especially roots. These get incorrectly categorized.
  • There is no support for circumfixes.

See also