Template:Mention: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
(Created page with "{{#invoke:links/templates|l_term_t|face=term<noinclude>|demo=term</noinclude>}}<!-- -->{{#if:{{{lang|}}}|Category:m with lang}}<!-- -->{{#ifeq:{{PAGENAME}}|RecentChanges...")
 
m (Replaced Wiktionary: links with Project: links)
 
Line 18: Line 18:
"required": true,
"required": true,
"aliases": [
"aliases": [
"The language code (see [[Wiktionary:Languages]]) for the language that the term is in."
"The language code (see [[Project:Languages]]) for the language that the term is in."
]
]
},
},

Latest revision as of 23:37, 28 May 2023

[Term?]



This template generates a link to an entry in a given language. It links to a specific language-section on the target page, and applies language-specific formatting. It can also show a number of annotations after the linked term.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
language code1 The language code (see [[Project:Languages]]) for the language that the term is in.

no description

Example
en
Stringrequired
term2

The page name to be linked to.

Example
example
Page nameoptional
alternate text3

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.

Stringoptional
tt

A gloss or short translation of the word.

Stringoptional
litlit

A literal translation for the term.

Unknownoptional
sense idid

A sense id for the term, which links to anchors on the page set by the {{senseid}} template.

Example
house
Stringoptional