Jump to content

Template:Lb: Difference between revisions

From Yezur Wiki
Khurouan (talk | contribs)
Create: {{lb}} inline sense labels
 
Khurouan (talk | contribs)
Document expanded label vocabulary + aliases; up to 7 labels
Line 1: Line 1:
<includeonly>{{#invoke:Labels|lb|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:Labels|lb|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude>
=== Usage ===
=== Usage ===
Inline '''sense labels''', placed at the very start of a definition line — the italic, parenthesised context/register/domain tags Wiktionary shows before a sense. Code-first, like the other Dictionary templates.
Inline '''sense labels''', placed at the very start of a definition line — the italic, parenthesised context/register/domain tags Wiktionary shows before a sense. Code-first, like the other Dictionary templates; up to seven labels, comma-joined in the order given.


<pre>
<pre>
# {{lb|YBS-PJ|transitive}} to warm, to heat
# {{lb|YBS-PJ|transitive}} to warm, to heat
# {{lb|YBS-PJ|slang|vulgar}} ...
# {{lb|YBS-PJ|slang|vulgar}} ...
# {{lb|YBS-PJ|figurative}} ...
# {{lb|YBS-PJ|nautical|figurative}} ...
</pre>
</pre>


* <code><nowiki>{{lb|YBS-PJ|transitive}}</nowiki></code> → {{lb|YBS-PJ|transitive}}
* <code><nowiki>{{lb|YBS-PJ|transitive}}</nowiki></code> → {{lb|YBS-PJ|transitive}}
* <code><nowiki>{{lb|YBS-PJ|slang|vulgar}}</nowiki></code> → {{lb|YBS-PJ|slang|vulgar}}
* <code><nowiki>{{lb|YBS-PJ|slang|vulgar}}</nowiki></code> → {{lb|YBS-PJ|slang|vulgar}}
* <code><nowiki>{{lb|YBS-PJ|figurative}}</nowiki></code> → {{lb|YBS-PJ|figurative}}
* <code><nowiki>{{lb|YBS-PJ|nautical|figurative}}</nowiki></code> → {{lb|YBS-PJ|nautical|figurative}}


; <code>1</code> : language code · <code>2</code>–<code>6</code> : one or more labels, comma-joined in display order
; <code>1</code> : language code · <code>2</code>–<code>8</code> : one or more labels


'''Categorization.''' A known label (grammatical context, or a register/usage tag such as ''slang'', ''archaic'', ''vulgar'') also files the page into a per-language category — e.g. <code>{{lb|YBS-PJ|slang}}</code> adds <code>[[:Category:Pjany slang]]</code>. Unlisted labels — ''figurative'', ''by extension'', domain tags not yet wired up — display verbatim with no category. The categorizing set lives in [[Module:Labels]] and is meant to grow as the category scheme is decided.
'''Categorization.''' The vocabulary is curated from Wiktionary's own label set (see [[Module:Labels]]). A '''known''' label categorizes the page per language:
* '''grammatical''' — <code>transitive</code>, <code>intransitive</code>, <code>ditransitive</code>, <code>ergative</code>, <code>reflexive</code>, <code>impersonal</code>, <code>auxiliary</code>, <code>modal</code>, <code>countable</code>, <code>uncountable</code>, <code>collective</code>, <code>singular only</code>, <code>plural only</code>, <code>comparable</code>, <code>not comparable</code>, …
* '''register / usage''' — <code>slang</code>, <code>colloquial</code>, <code>informal</code>, <code>formal</code>, <code>vulgar</code>, <code>derogatory</code>, <code>offensive</code>, <code>euphemistic</code>, <code>humorous</code>, <code>endearing</code>, <code>honorific</code>, <code>poetic</code>, <code>literary</code>, <code>technical</code>, <code>proscribed</code>, <code>nonstandard</code>, <code>dialectal</code>, …
* '''temporal''' — <code>archaic</code>, <code>dated</code>, <code>obsolete</code>, <code>historical</code>, <code>rare</code>, <code>uncommon</code>, <code>neologism</code>
* '''word-formation''' — <code>abbreviation</code>, <code>acronym</code>, <code>initialism</code>, <code>contraction</code>, <code>onomatopoeia</code>, <code>misspelling</code>, <code>eye dialect</code>
 
Any '''unlisted''' label displays verbatim with no category — so '''domain''' tags (<code>nautical</code>, <code>law</code>, <code>botany</code>, <code>medicine</code>, <code>music</code>, …) and '''semantic qualifiers''' (<code>figurative</code>, <code>literally</code>, <code>idiomatic</code>, <code>by extension</code>, <code>broadly</code>, …) work immediately, and topical categorization can be wired up later once its scheme is settled. Shorthands: <code>tr</code>, <code>intr</code>, <code>ditr</code>, <code>count</code>, <code>uncount</code>, <code>fig</code>, <code>colloq</code>, <code>derog</code>, <code>obs</code>, <code>arch</code>, <code>hum</code>, <code>euph</code>.


'''Labels vs. the <code>register</code> field.''' <code>{{lb}}</code> is '''per sense''' (display + categories on one definition line); the <code>register</code> parameter of <code>{{head}}</code> is '''per word''' (searchable [[Special:CargoTables/Lexemes|Lexemes]] metadata). Use both: <code>{{lb}}</code> for the visible label on each sense, <code>register=</code> for the whole-word register you want to query across languages.
'''Labels vs. the <code>register</code> field.''' <code>{{lb}}</code> is '''per sense''' (display + categories on one definition line); the <code>register</code> parameter of <code>{{head}}</code> is '''per word''' (searchable [[Special:CargoTables/Lexemes|Lexemes]] metadata). Use both: <code>{{lb}}</code> for the visible label on each sense, <code>register=</code> for the whole-word register you want to query across languages.
[[Category:Dictionary templates]]
[[Category:Dictionary templates]]
</noinclude>
</noinclude>

Revision as of 15:48, 18 July 2026

Usage

Inline sense labels, placed at the very start of a definition line — the italic, parenthesised context/register/domain tags Wiktionary shows before a sense. Code-first, like the other Dictionary templates; up to seven labels, comma-joined in the order given.

# {{lb|YBS-PJ|transitive}} to warm, to heat
# {{lb|YBS-PJ|slang|vulgar}} ...
# {{lb|YBS-PJ|nautical|figurative}} ...
  • {{lb|YBS-PJ|transitive}}(transitive)
  • {{lb|YBS-PJ|slang|vulgar}}(slang, vulgar)
  • {{lb|YBS-PJ|nautical|figurative}}(nautical, figurative)
1
language code · 28 : one or more labels

Categorization. The vocabulary is curated from Wiktionary's own label set (see Module:Labels). A known label categorizes the page per language:

  • grammaticaltransitive, intransitive, ditransitive, ergative, reflexive, impersonal, auxiliary, modal, countable, uncountable, collective, singular only, plural only, comparable, not comparable, …
  • register / usageslang, colloquial, informal, formal, vulgar, derogatory, offensive, euphemistic, humorous, endearing, honorific, poetic, literary, technical, proscribed, nonstandard, dialectal, …
  • temporalarchaic, dated, obsolete, historical, rare, uncommon, neologism
  • word-formationabbreviation, acronym, initialism, contraction, onomatopoeia, misspelling, eye dialect

Any unlisted label displays verbatim with no category — so domain tags (nautical, law, botany, medicine, music, …) and semantic qualifiers (figurative, literally, idiomatic, by extension, broadly, …) work immediately, and topical categorization can be wired up later once its scheme is settled. Shorthands: tr, intr, ditr, count, uncount, fig, colloq, derog, obs, arch, hum, euph.

Labels vs. the register field. is per sense (display + categories on one definition line); the register parameter of Lb is per word (searchable Lexemes metadata). Use both: for the visible label on each sense, register= for the whole-word register you want to query across languages.