Template:borrowed/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "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 borrowed from another language. This should '''not''' be used for words that are directly inherited or derived. For those, consider using {{temp|inherit}} or {{temp|derive}}. ==Usage== From {{tempn|borrow|kil|rad|aleșa}}. Generates: : From {{borrow|kil|rad|aleșa|nocat=1}}. ===Parameters===...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{uses lua|Module:etymology}}
{{shortcut|Template:bor|Template:borrow}}
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 borrowed 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 borrowed from another language.


This should '''not''' be used for words that are directly inherited or derived. For those, consider using {{temp|inherit}} or {{temp|derive}}.
This should '''not''' be used for words that are directly inherited or derived. For those, consider using {{temp|inherited}} ({{temp|inh}}) or {{temp|derived}} ({{temp|der}}).


==Usage==
==Usage==
  From {{tempn|borrow|kil|rad|aleșa}}.
  From {{tempn|borrow|kil|rad|alșa}}.


Generates:
Generates:


: From {{borrow|kil|rad|aleșa|nocat=1}}.
: From {{borrow|kil|rad|alșa|nocat=1}}.


===Parameters===
===Parameters===
Line 20: Line 23:
: Specifies the word that was borrowed from the origin language.
: Specifies the word that was borrowed from the origin language.


; {{para|4}} or {{para|d}}
; {{para|4}} or {{para|alt}}
: Specifies an alternative display text for the word link.
: Specifies an alternative display text for the word link.


Line 33: Line 36:


==Categories==
==Categories==
This template automatically adds categories regarding borrowing. For example, {{temp|borrow|kil|rad|aleșa}} will automatically add the category "Kilitic terms borrowed from Radestrian".
This template automatically adds categories regarding borrowing. For example, {{temp|borrow|kil|rad|alșa}} will automatically add the category "Kilitic terms borrowed from Radestrian".

Latest revision as of 01:00, 20 February 2024

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

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 borrowed from another language.

This should not be used for words that are directly inherited or derived. For those, consider using {{inherited}} ({{inh}}) or {{derived}} ({{der}}).

Usage

From {{borrow|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 borrowed the term.
|2= (required)
Specifies the language code of the language being borrowed from.
|3= (required)
Specifies the word that was borrowed from the origin language.
|4= or |alt=
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 borrowing. For example, {{borrow|kil|rad|alșa}} will automatically add the category "Kilitic terms borrowed from Radestrian".