This template is designed to generate a link to a specific language-section on the target page.

Usage edit

Use this template in sections that list entries, such as “Related terms” and “Descendants”, as an alternative to {{term}}, which is used for mentioned terms.

You might also find it useful to link to individual words or subphrases in the head of (idiomatic) phrases, as in: {{head|xx|phrase|head=...}}. See discussion.

As with other Wiktionary link templates, please do not use subst:.

Parameters edit

The template takes two required positional parameters, and several optional parameters:

{{{1}}} : the language code of the desired target link
{{{2}}} : the page name to be linked
{{{3}}} (optional): alternate text to display for the links (particularly for diacritics when the page-title does not use diacritics, as in Latin)
{{{oth}}} (optional): other script variant for certain languages
{{{oth2}}} (optional): another script variant for certain languages
{{{sc}}} (optional): script template to use, if the language's default script is inappropriate
{{{tr}}} (optional): transliteration, for non-Latin-script words
{{{g}}} (optional): gender/number, can be m, f, s, or p
{{{g2}}} (optional): gender/number, can be m, f, s, or p
{{{gloss}}} (optional): gloss

Examples edit

{{l|cs|háček}} yields:
háček

Showing alternative text:

{{l|la|gustus|gustūs}} yields:
gustūs

With many options:

{{l|uk|їжак|їжа́к|tr=jižák|g=m|g2=s|gloss=hedgehog}}
їжа́к m sg (jižák, hedgehog)

Other script variant options:

{{l|ja|画竜点睛|oth=畫龍點睛|oth2=がりょうてんせい|tr=garyōtensei}}
Lua error in Module:links/templates at line 56: Parameter "oth2" is not used by this template.

See also edit


Language-specific subtemplates edit

There are high performance versions of this template for several languages. All of them take two parameters: the word and the alternate text. Some may support transliteration also, but they should not support any other parameters for speed reasons. Using any of these subtemplates is strongly preferred whenever it is possible. Please use the standard {{l}} template for these languages only if any of the extra parameters are needed.

"Other script" options edit

Certain languages have lacked a way to associate a single transliteration with multiple ways to write the same word.

These were specifically intended for certain languages which allow some terms to be written in multiple different scripts, or multiple variants of a single script. They should not be used arbitrarily for other languages or for synonyms or alternative spellings. Specifically all variants will share all other properties such as transliteration and gender.

The languages currently supported are Chinese for traditional and simplified variants; Japanese for shinjitai, kyujitai, hiragana, and katakana variants; and Korean for hangul and hanja variants.