Template:l: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "{{#invoke:links|list}}")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:links|list}}
<includeonly>{{#invoke:links/templates|link}}</includeonly><noinclude>[[Category:Link templates]]{{documentation}}</noinclude>

Latest revision as of 19:49, 20 January 2024

TemplateDocumentation.svg Template documentation [view] [edit] [purge]

Used to link to a Laenktionary entry.

There are three similar templates for this function, and their different usage should be noted:

  • {{l}} should be used for wikilinks in a list. For example, this might be a list of synonyms or derived terms.
  • {{m}} should be used within free-form text. For example this might be in the middle of a paragraph on usage or as part of an etymology.
  • {{m+}} should be used in the same environment as {{m}} (i.e. free-form text) but where the name of the language is desired.

Usage

{{l|rad|sjelt|t=to know}} produces: sjelt (“to know”).

Parameters

|1= (required)
Specifies the language code, e.g ryn or lnk-pro.
|2= (required)
Specifies the word that is being linked to, e.g. {{l|ryn|ŗeine}} for ŗeine.
|3= or |alt=
Specifies the display text to show up instead of the basic word lemma, e.g. {{l|ryn|ŗeine|alt=ŖEINE}} for ŖEINE.
|4= or |t= or |text=
Specifies an optional gloss to be shown alongisde the word, e.g. {{l|rad|háșers|t=December}} for háșers (“December”).
|anchor= or |a=
Specifies an anchor to jump to. This will override the language name; see {{anchor}} for more information.
|hypo=1, |hypothetical=1
Places a double asterisk before the form.
N.B. does not remove the link. To remove the link, use |nolink=.
|nobold=1
Generally, if a link is on the page it is linked to, it will display as unlinked bold text. This is automatically disabled in certain etymology templates, however. In the case of linking to a homograph in another language's entry on the same page, this parameter is used to re-activate the link.
e.g. {{l|ryn|la}} under the Radestrian entry on la will not link to the Riyan entry on the same page. {{l|ryn|la|nobold=1}}, however, will override this.
|nolink=1
Creates plain text instead of a link. This is useful in etymology templates.
|nostar=1
Proto-languages automatically acquire the asterisk when cited. This parameter disables this if you would like to link to a proto-word without the asterisk.
|pos=
Specifies an optional part of speech to be shown alongside the word, e.g. {{l|rad|háșers|pos=noun}} for háșers (noun). This is typically extended to any side note that does not appear in quotation marks.
When combined with |t(ext)=, these show up together in the brackets, e.g. {{l|rad|háșers|pos=Laenkean|t=December}}háșers (“December”, Laenkean).

Notes

  • This template can be used with proto-languages, as it automatically handles the insertion of an asterisk (*) to mark reconstruction and linking to the appendix for the language.
    For example, {{l|lnk-pro|cel-|céltʰes}} produces *céltʰes.