Template:Non-gloss definition/documentation: Difference between revisions
(Created page with "{{documentation subpage}} <includeonly>{{shortcut|Template:non-gloss|Template:non gloss|Template:ngd|Template:n-g}}</includeonly> Use this template to apply the correct stylin...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
<includeonly>{{shortcut|Template:non-gloss|Template:non gloss|Template:ngd|Template:n-g}}</includeonly> | <includeonly>{{shortcut|Template:non-gloss|Template:non gloss|Template:ngd|Template:n-g|Template:ng}}</includeonly> | ||
Use this template to apply the correct styling to a definition that is not a [[ | {{uses lua|Module:links/templates}} | ||
Use this template to apply the correct styling to a definition that is not a [[Project:Style guide#Types of definitions|gloss]]. | |||
Most definitions in the English | 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 {{m|en|word}} is a noun phrase (“A distinct unit of language...”) and the first definition of the verb {{m|en|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 {{m|en|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”. | Some terms are difficult or impossible to define with a gloss. For example, one of the definitions of {{m|en|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”. | ||
Line 9: | 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: | 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>[[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 18: | Line 19: | ||
:<code><nowiki># {{non-gloss definition|Connects a [[noun]] derived from a [[verb]] with the [[object]] of that verb.}}</nowiki></code> | :<code><nowiki># {{non-gloss definition|Connects a [[noun]] derived from a [[verb]] with the [[object]] of that verb.}}</nowiki></code> | ||
:# {{non-gloss definition|Connects a [[noun]] derived from a [[verb]] with the [[object]] of that verb.}} | :# {{non-gloss definition|Connects a [[noun]] derived from a [[verb]] with the [[object]] of that verb.}} | ||
==TemplateData== | ==TemplateData== | ||
Line 38: | Line 37: | ||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly> | |||
[[Category:Definition templates]] | |||
</includeonly> |
Revision as of 01:50, 24 September 2023
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 [[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 [[noun]] derived from a [[verb]] with the [[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 |