Template:doublet
- The following documentation is located at Template:doublet/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Use this template in an etymology section of doublets (such as frail and fragile).
Parameters
1=
- The language code (see Wiktionary:Languages) of the language this term appears in. All Wiktionary language codes are supported, including those for constructed and reconstructed languages.
2=
,3=
,4=
,5=
- The term(s) that this term is a doublet of. The template will automatically remove diacritics and punctuation from the page title, according to the
entry_name
setting in Module:languages, but will keep them in the displayed text. To link to a reconstructed term, such as Proto-Germanic *dagaz, add * in front of this parameter. nocap=1
- Show the initial text with a lowercase initial letter.
notext=1
- Omit the initial text altogether. The first thing displayed will be the first term listed (i.e. the contents of
|2=
). nocat=1
- Do not categorize the entry. This should be used when mentioning blends in languages other than the current language.
The following parameters are available for each matching term in the numbered/positional parameters. The N
must be replaced by the corresponding term index. For example, for the second part (positional parameter 3), use 2 for N
. Most of these parameters correspond directly to the equivalent parameters in the standard {{l}}
(and {{m}}
) template.
altN=
- The alternative display form. Equivalent to the second parameter of
{{l}}
. tN=
- A gloss/translation to show after the term. Equivalent to the third parameter of
{{l}}
. The parameterglossN=
is deprecated for this purpose. trN=
- The transliteration, as in
{{l}}
. posN=
- The part of speech label to show after the term, as in
{{l}}
. scN=
- The script code (see Wiktionary:Scripts) for the script that the term is written in. When no code is given, the template will try to detect the script based on the characters in the term and the scripts in the language's data table (see Module:languages § Language:findBestScript). In most cases, it will succeed. If it fails, the code
None
will be used. gN=
- Zero or more gender/number codes for the term, comma-separated; see Module:gender and number for details.
litN=
- A literal translation for the term.
idN=
- A sense id for the term, which links to anchors on the page set by the
{{senseid}}
template.
Examples
{{doublet|en|fire}}
produces
{{doublet|es|directo|notext=1}}
produces
{{doublet|ja|tr1=Mosukō|モスコー|nocap=1}}
produces
{{doublet|ja|ヴィエンヌ|tr1=Viennu|t1=[[Vienne]]|ウィーン|tr2=Wīn}}
produces
{{doublet|en|advoke|avouch|avow}}
produces