Template:doublet/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
This is a template that adds a link and a doublet category.
{{documentation subpage}}
{{uses lua|Module:etymology}}
{{shortcut|Template:dbt}}
This template makes it easy to show that a term is a doublet of another term in the same language.


Doublet of {{temp|doublet|rad|lyerdzs}}
==Usage==
All you need is the language code the etymology belongs to and the term that is a doublet.


will yield {{m|rad|lyerdzs}} and add the category ''{{language name|rad}} doublets''. You can also use {{para|t}} to add the meaning of the doublet.
{{tempn|dbt|ryn|vaenynt|t=new year}}
 
Generates the following:
 
: {{dbt|ryn|vaenynt|t=new year|nocat=1}}
 
And would automatically add the category [[:Category:Riyan doublets]]
 
===Parameters===
; {{para|1|req=1}}
: The language code the etymology belongs to.
 
; {{para|3|req=1}}
: The doublet term.
 
; {{para|t}}
: Optionally specifies a gloss to show with the term in the other language.
 
; {{para|nocap}}
: If provided with a true value, e.g. {{para|nocap|1}}, then it will display 'doublet of' instead of 'Doublet of' (i.e. no capital letter). This is useful if you're putting this in an etymology section with text appearing before it.
 
; {{para|notext}}
: If provided with a true value, e.g. {{para|notext|1}}, then it will not display any text before the term at all.
 
; {{para|nocat}}
: If provided with a true value, e.g. {{para|nocat|1}}, then no categories will be added to the page.

Revision as of 10:32, 20 February 2024

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

This template makes it easy to show that a term is a doublet of another term in the same language.

Usage

All you need is the language code the etymology belongs to and the term that is a doublet.

{{dbt|ryn|vaenynt|t=new year}}

Generates the following:

Doublet of vaenynt (“new year”)

And would automatically add the category Category:Riyan doublets

Parameters

|1= (required)
The language code the etymology belongs to.
|3= (required)
The doublet term.
|t=
Optionally specifies a gloss to show with the term in the other language.
|nocap=
If provided with a true value, e.g. |nocap=1, then it will display 'doublet of' instead of 'Doublet of' (i.e. no capital letter). This is useful if you're putting this in an etymology section with text appearing before it.
|notext=
If provided with a true value, e.g. |notext=1, then it will not display any text before the term at all.
|nocat=
If provided with a true value, e.g. |nocat=1, then no categories will be added to the page.