Jump to content

Template:Lb: Difference between revisions

From Yezur Wiki
Khurouan (talk | contribs)
Document expanded label vocabulary + aliases; up to 7 labels
Alompan (talk | contribs)
Escape the bare head mention so it does not file a stray Lexemes row
 
Line 23: Line 23:
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>.
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><nowiki>{{head}}</nowiki></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>

Latest revision as of 01:16, 19 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 {{head}} 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.