User:Hippietrail/l/documentation

Documentation for User:Hippietrail/l. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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