Template:l/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Used to link to a Laenktionary entry.
There are two similar templates for this function, and their different usage should be noted:
* {{temp|l}} should be used for wikilinks in a list. For example, this might be a list of synonyms or derived terms.
* {{temp|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.
==Usage==
==Usage==
<pre>{{l|kil|šeḻē|t=to know}}</pre>
{{temp|l|kil|šeḻē|t=to know}} produces: {{l|kil|šeḻē|t=to know}}.
Produces {{l|kil|šeḻē|t=to know}}
 
===Parameters===
; {{para|1|req=1}}
: Specifies the language code, e.g <code>kil</code> or <code>lnk-pro</code>.
 
; {{para|2|req=1}}
: Specifies the word that is being linked to, e.g. {{temp|l|ryn|bhepuíc}} for {{l|ryn|bhepuíc}}.
 
; {{para|3}} or {{para|d}} or {{para|display}}
: Specifies the display text to show up instead of the basic word lemma, e.g. {{temp|l|ryn|bhepuíc|d=BHEPUÍC}} for {{l|ryn|bhepuíc|d=BHEPUÍC}}.
 
; {{para|4}} or {{para|t}} or {{para|text}}
: Specifies an optional gloss to be shown alongisde the word, e.g. {{temp|l|ryn|bhepuíc|t=december}} for {{l|ryn|bhepuíc|t=december}}.
 
; {{para|pos}}
: Specifies an optional part of speech to be shown alongside the word, e.g. {{temp|l|ryn|bhepuíc|pos=noun}} for {{l|ryn|bhepuíc|pos=noun}}.
: When combined with {{para|text}}/{{para|t}}, these show up together in the brackets, e.g. {{l|ryn|bhepuíc|t=december|pos=noun}}.

Revision as of 18:37, 5 August 2023

Used to link to a Laenktionary entry.

There are two 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.

Usage

{{l|kil|šeḻē|t=to know}} produces: šeḻē (“to know”).

Parameters

|1= (required)
Specifies the language code, e.g kil or lnk-pro.
|2= (required)
Specifies the word that is being linked to, e.g. {{l|ryn|bhepuíc}} for bhepuíc.
|3= or |d= or |display=
Specifies the display text to show up instead of the basic word lemma, e.g. {{l|ryn|bhepuíc|d=BHEPUÍC}} for Lua error in Module:links/templates at line 26: The parameter "d" is not used by this template...
|4= or |t= or |text=
Specifies an optional gloss to be shown alongisde the word, e.g. {{l|ryn|bhepuíc|t=december}} for bhepuíc (“december”).
|pos=
Specifies an optional part of speech to be shown alongside the word, e.g. {{l|ryn|bhepuíc|pos=noun}} for bhepuíc (noun).
When combined with |text=/|t=, these show up together in the brackets, e.g. bhepuíc (“december”, noun).