Template:affix/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
; {{para|2}}, {{para|3}}, etc.
; {{para|2}}, {{para|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.
: 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.
; {{para|type}}
: If this affix is a compound, this parameter can optionally specify the type of compound. See below for a table of them.


; {{para|t<var>N</var>}}
; {{para|t<var>N</var>}}
Line 50: Line 53:


If one of the constituent morphemes is a different language (as specified by one of the {{para|l<var>N</var>}} parameters) then a category such as "Kilitic terms derived from Other Language" will be added.
If one of the constituent morphemes is a different language (as specified by one of the {{para|l<var>N</var>}} parameters) then a category such as "Kilitic terms derived from Other Language" will be added.
===Compound types===
{|class="wikitable"
! Type !! Aliases !! Category
|-
| <code>alliterative</code> || <code>allit</code> || ''LANG alliterative compounds''
|-
| <code>antonymous</code> || <code>ant</code> || ''LANG antonymous compounds''
|-
| <code>bahuvrihi</code> || <code>bahu</code>, <code>bv</code> || ''LANG bahuvrihi compounds''
|-
| <code>coordinative</code> || <code>coord</code> || ''LANG coordinative compounds''
|-
| <code>descriptive</code> || <code>desc</code> || ''LANG descriptive compounds''
|-
| <code>determinative</code> || <code>det</code> || ''LANG determinative compounds''
|-
| <code>dvandva</code> || <code>dva</code> || ''LANG dvandva compounds''
|-
| <code>endocentric</code> || <code>endo</code> || ''LANG endocentric compounds''
|-
| <code>exocentric</code> || <code>exo</code> || ''LANG exocentric compounds''
|-
| <code>karmadharaya</code> || <code>karma</code>, <code>kd</code> || ''LANG karmadharaya compounds''
|-
| <code>rhyming</code> || <code>rhy</code> || ''LANG rhyming compounds''
|-
| <code>synonymous</code> || <code>syn</code> || ''LANG synonymous compounds''
|-
| <code>tatpurusa</code> || <code>tat</code>, <code>tp</code> || ''LANG tatpurusa compounds''
|}

Revision as of 01:12, 24 February 2024

Edit-copy green.svg Documentation for Template:affix. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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.

Usage

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

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

Generates the following:

From le- + šēnhē (“write”).

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.
|type=
If this affix is a compound, this parameter can optionally specify the type of compound. See below for a table of them.
|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.
|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.

Compound types

Type Aliases Category
alliterative allit LANG alliterative compounds
antonymous ant LANG antonymous compounds
bahuvrihi bahu, bv LANG bahuvrihi compounds
coordinative coord LANG coordinative compounds
descriptive desc LANG descriptive compounds
determinative det LANG determinative compounds
dvandva dva LANG dvandva compounds
endocentric endo LANG endocentric compounds
exocentric exo LANG exocentric compounds
karmadharaya karma, kd LANG karmadharaya compounds
rhyming rhy LANG rhyming compounds
synonymous syn LANG synonymous compounds
tatpurusa tat, tp LANG tatpurusa compounds