Template:derived/documentation: Difference between revisions
TheNightAvl (talk | contribs) mNo edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
{{uses lua|Module:derive}} | {{uses lua|Module:etymology}} | ||
{{shortcut|Template:der|Template:derive}} | |||
This template renders a link to a word, similarly to {{temp|m}}, but automatically handles adding categories. It is intended to be used in etymology sections for words that are derived from another language. | This template renders a link to a word, similarly to {{temp|m}}, but automatically handles adding categories. It is intended to be used in etymology sections for words that are derived from another language. | ||
If the word is derived via affixation or compounding, consider using {{temp|affix}} instead as it can handle that better. As that covers most scenarios of derivation from other languages, it is rare you will need to use this template so ensure you are using the right one. | If the word is derived via affixation or compounding, consider using {{temp|affix}} instead as it can handle that better. As that covers most scenarios of derivation from other languages, it is rare you will need to use this template so ensure you are using the right one. | ||
This should '''not''' be used for words that are directly inherited or borrowed. For those, consider using {{temp| | This should '''not''' be used for words that are directly inherited or borrowed. For those, consider using {{temp|inherited}} ({{temp|inh}}) or {{temp|borrowed}} ({{temp|bor}}). | ||
==Usage== | ==Usage== | ||
From {{tempn| | From {{tempn|der|kil|rad|alșa}}. | ||
Generates: | Generates: | ||
: From {{ | : From {{der|kil|rad|alșa|nocat=1}}. | ||
===Parameters=== | ===Parameters=== | ||
Line 37: | Line 38: | ||
==Categories== | ==Categories== | ||
This template automatically adds categories regarding derivation. For example, {{temp| | This template automatically adds categories regarding derivation. For example, {{temp|der|kil|rad|alșa}} will automatically add the category "Kilitic terms derived from Radestrian". |
Latest revision as of 01:01, 20 February 2024
Uses Lua: |
Shortcut
{{derive}} |
This template renders a link to a word, similarly to {{m}}
, but automatically handles adding categories. It is intended to be used in etymology sections for words that are derived from another language.
If the word is derived via affixation or compounding, consider using {{affix}}
instead as it can handle that better. As that covers most scenarios of derivation from other languages, it is rare you will need to use this template so ensure you are using the right one.
This should not be used for words that are directly inherited or borrowed. For those, consider using {{inherited}}
({{inh}}
) or {{borrowed}}
({{bor}}
).
Usage
From {{der|kil|rad|alșa}}.
Generates:
- From Radestrian alșa.
Parameters
|1=
(required)- Specifies the language code of the language this etymology belongs to. It's the language that derived the term.
|2=
(required)- Specifies the language code of the language being derived from.
|3=
(required)- Specifies the word that was derived from the origin language.
|4=
or|d=
- Specifies an alternative display text for the word link.
|5=
or|t=
- Specifies an optional gloss to be displayed with the word link.
|pos=
- Specifies an optional part of speech to be displayed with the word link.
|nocat=
- Stops the template from including any auto-generated categories.
Categories
This template automatically adds categories regarding derivation. For example, {{der|kil|rad|alșa}}
will automatically add the category "Kilitic terms derived from Radestrian".