Template:surface analysis

TemplateDocumentation.svg Template documentation [view] [edit] [purge]

This template shows the morphemes that make up a word, for use in etymology sections. Although it is called affix, it can be used for compounds too.

This template works the exact same as {{affix}} but it can be used as a shorthand for surface analysis, providing a glossary-linked piece of text about this.

Usage

All you need to do is provide the language code and then as many constituent morphemes as you like.

From {{inh|kil|lnk-pro|cajn-|cajnhacʼas|t=to write}}, {{surf|kil|šēn|-hē|nocap=1|pos2=infinitive}}.

Generates the following:

From Proto-Laenkean *cajnhacʼas (“to write”), by surface analysis, šēn + -hē (infinitive).

Parameters

|1= (required)
Specifies the language code of the language that the etymology belongs to.
|2=, |3=, etc.
Specifies the constituent morphemes of the etymology. There can be as many of these as you'd like. They are considered to be numbered from 1 onwards.
|tN=
Specifies the gloss to be shown for one of the constituent morphemes, as specified by the number N. For example |t2=write would set the gloss of the second constituent element to "write".
|altN=
Specifies the text to be shown in place of the word itself for one of the constituent morphemes, as specified by the number N. For example |alt2=abcd would set the displayed text in the link of the second constituent element to "abcd".
|lN=
Specifies the language code of the constituent morpheme, as specified by the number N. If this is given, the language name appears and a derivation category may be added.
|posN=
Specifies the part of speech to be shown for one of the constituent morphemes, as specified by the number N.
|noaffN=
Indicates that a specific constituent morpheme is not an affix of any kind. This is useful for morphemes that include a delimiter such as -, common in proto-language roots, but are not affixing morphemes.
|nocap=
When provided with any value, e.g. |nocap=1, ensures the prefixed text does not begin with a capital letter. This is useful when using this template in the middle of a sentence.
|notext=
When provided with any value, e.g. |notext=1, stops the template from generating any text at all. Note that because no special categories are added for surface analysis, if you are suppressing the text in this way it might be worth just using the {{affix}} template instead.
|nocat=
When provided with any value, e.g. |nocat=1, stops the template from adding any categories to the page.

Categories

This template automatically adds derivation-related categories to the page according to the constituent morphemes given, unless the |nocat= parameter is set.

If prefixes (ending with a "-" or "·"), suffixes (beginning with a "-" or "·") or infixes (both beginning and ending with a "-" or "·") are detected, corresponding categories will be added.

For example, the following snippet would add the category "Kilitic terms prefixed with le-".

{{affix|kil|le-|šēnhē}}

If there are no affixes found, but there are at least 2 constituent parts then it will be considered a compound and a category such as "Kilitic compound terms" will be added.

If one of the constituent morphemes is a different language (as specified by one of the |lN= parameters) then a category such as "Kilitic terms derived from Other Language" will be added.