Template:Non-gloss definition/documentation: Difference between revisions
No edit summary |
m (Changed links to point to Wiktionary) |
||
Line 10: | Line 10: | ||
Most dictionaries use a different style for these rare definitions that are not glosses, e.g. by placing the non-gloss definition in parentheses or by italicizing it. This template applies similar formatting to such definitions and allows readers to control the format for such definitions; the {{w|CSS class}} <code>.use-with-mention</code> is used. | Most dictionaries use a different style for these rare definitions that are not glosses, e.g. by placing the non-gloss definition in parentheses or by italicizing it. This template applies similar formatting to such definitions and allows readers to control the format for such definitions; the {{w|CSS class}} <code>.use-with-mention</code> is used. | ||
This template currently uses [[Module:links/templates]] to generate some of its content; specifically, it calls the {{code|lua|embedded_language_links}} function from [[Module:links]], passing the English language in an argument, to point all plain links to the English section of the page to which they point. Thus, below, the link <code class="wiki-markup"><nowiki> | This template currently uses [[Module:links/templates]] to generate some of its content; specifically, it calls the {{code|lua|embedded_language_links}} function from [[Module:links]], passing the English language in an argument, to point all plain links to the English section of the page to which they point. Thus, below, the link <code class="wiki-markup"><nowiki>{{wt|noun}}</nowiki></code> is automatically converted to <code class="wiki-markup"><nowiki>[[noun#English|noun]]</nowiki></code>. If you need to link to non-English entries use {{temp|l}} or {{temp|m}} inside {{temp|non-gloss definition}}. | ||
==Parameters== | ==Parameters== | ||
Line 17: | Line 17: | ||
==Examples== | ==Examples== | ||
:<code><nowiki># {{non-gloss definition|Connects a | :<code><nowiki># {{non-gloss definition|Connects a {{wt|noun}} derived from a {{wt|verb}} with the {{wt|object}} of that verb.}}</nowiki></code> | ||
:# {{non-gloss definition|Connects a | :# {{non-gloss definition|Connects a {{wt|noun}} derived from a {{wt|verb}} with the {{wt|object}} of that verb.}} | ||
==TemplateData== | ==TemplateData== |
Latest revision as of 02:18, 25 August 2024
Uses Lua: |
Use this template to apply the correct styling to a definition that is not a gloss.
Most definitions in the English The Languages of David J. Peterson are worded as glosses. That is, the words in the definition function as the same part of speech and semantics as the defined headword. For example, the first definition of word is a noun phrase (“A distinct unit of language...”) and the first definition of the verb talk is a verb phrase (“To communicate to someone else...”).
Some terms are difficult or impossible to define with a gloss. For example, one of the definitions of of is given as “Connects a noun derived from a verb with the object of that verb.” That definition is not a gloss, because the words in the definition cannot be used as a substitute for “of”.
Most dictionaries use a different style for these rare definitions that are not glosses, e.g. by placing the non-gloss definition in parentheses or by italicizing it. This template applies similar formatting to such definitions and allows readers to control the format for such definitions; the CSS class .use-with-mention
is used.
This template currently uses Module:links/templates to generate some of its content; specifically, it calls the embedded_language_links
function from Module:links, passing the English language in an argument, to point all plain links to the English section of the page to which they point. Thus, below, the link {{wt|noun}}
is automatically converted to [[noun#English|noun]]
. If you need to link to non-English entries use {{l}}
or {{m}}
inside {{non-gloss definition}}
.
Parameters
|1=
- The non-gloss definition.
Examples
# {{non-gloss definition|Connects a {{wt|noun}} derived from a {{wt|verb}} with the {{wt|object}} of that verb.}}
TemplateData
TemplateData for Non-gloss definition
Use this template to apply the correct styling to a definition that is not a gloss.
Parameter | Description | Type | Status | |
---|---|---|---|---|
definition | 1 | the non-gloss definition of the term
| String | required |