Template:l

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

term


The following documentation is located at Template:l/documentation. [edit]


This template generates a link to an entry in a given language. Use this template in sections that list entries, such as “Related terms” and “Descendants”. It should not be used for terms mentioned in running text (which is where {{term}} is used). The template links to a specific language-section on the target page, and applies language-specific formatting. It can also show a number of annotations.

This template uses Module:links as a back-end, so it supports all the features of that module. Please see its documentation for more details.

Parameters

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

1=
The language code of the desired target link. All languages are supported, including constructed and reconstructed ones.
2=
The page name to be linked. 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.
3=
Alternate text to display as the link title, if different from the page name. Please do not use this only for adding diacritics or punctuation to the word, as the template can automatically remove these. See above.
4= or gloss=
A gloss or short translation of the word.
sc=
Script code to use. The template can usually figure out the correct code, so this is rarely needed. When no code is given, the template will try to detect the script based on the (first) characters of the word, and if it fails to detect the script, the language's default script (the first listed in Module:languages) will be used.
tr=
Transliteration for non-Latin-script words. When no transliteration is given, the template will try to add a default transliteration when possible. For certain languages, automated transliteration will override the value of this parameter. Use tr=- if you don't want a transliteration to be automatically generated (you shouldn't really ever do this in an entry).
g=, g2=, g3= and so on
Gender and number; see Module:gender and number for details.

Examples

Simple usage:

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

Showing alternative text:

{{l|en|go|went}}
went

With wikilinks in input:

{{l|en|[[God]] be [[with]] [[you]]}}
God be with you

Reconstructed words:

{{l|ine-pro|*bʰréh₂tēr}}
*bʰréh₂tēr

Miscellaneous / with many options:

{{l|ru|ру́сский||Russian|g=m-s}}
ру́сский m sg (rússkij, Russian)

See also

  • {{ja-l}} - a similar template specialized for Japanese
  • {{ko-inline}} - a similar template spcialized for Korean
  • {{l-list}}
  • {{term}}

Language-specific subtemplates

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 sometimes necessary for pages that have many links, since they are faster. For normal use, there is no need for this, and the regular {{l}} should be used instead.

l/be l/bg l/br
l/ca l/cs l/csb
l/cu/Cyrl l/cy
l/da l/de l/documentation
l/dsb l/en l/es
l/et l/fi l/fo
l/fr l/frm l/fro
l/ga l/gd l/got
l/grc l/gv l/hsb
l/hu l/it
l/ja/Jpan l/ja/Latn l/jbo
l/ko l/kw l/la
l/lv l/mk l/mul
l/my l/nb l/nl
l/nn l/no l/oc
l/pl l/pt l/ru
l/rue l/sga l/sh/Cyrl
l/sh/Latn l/sk l/sv
l/tr l/uk l/vi/Hani
l/vi/Hani/documentation l/vi/Latn l/vi/Latn/documentation
l/wa l/zza

Related templates

  • {{term}} for mentioned terms
  • {{lang}} to tag language only