Template:Ll

From The Languages of David J. Peterson
Jump to navigation Jump to search

This template generates a link to an entry in a given language without adding any formatting or annotations. This template is generally useful in combination with other templates that are already providing the formatting. It uses the ll function in Module:links/templates and the language_link function in Module:links. (ll is short for language link.)

Examples

{{ll|en|word}}
[[word#English|word]]

Parameters

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

|1=
The language code (see Wiktionary:Languages) for the language that the term is in. All Wiktionary language codes are supported, including those for constructed and reconstructed languages.
|2=
The page name to be linked to. 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 Lua error in Module:Languages/errorGetBy at line 14: The language or etymology language code "gem-pro" in the first parameter is not valid (see Wiktionary:List of languages).., add * in front of this parameter.
Unsupported titles (see Special:PrefixIndex/Unsupported titles) can be linked to, by adding the displayed title, without the Unsupported titles/ prefix: for instance, {{m|mul|:}}: links to Unsupported titles/Colon. This feature is made possible by the list found at Module:links/data. To add new unsupported titles, follow the directions in the module.
|3=
Alternative 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.
|sc=
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:scripts § findBestScript). In most cases, it will succeed. If it fails, the code None will be used.
|id=
A sense id for the term, which links to anchors on the page set by the {{senseid}} template.
|notself=1
If this parameter is provided, the template will not generate links to the current page and will generate a bold "self-link" instead. By default (if the argument is provided and not empty), the template will generate links to the current page.

See also