Template:Lb: Difference between revisions
Create: {{lb}} inline sense labels |
Escape the bare head mention so it does not file a stray Lexemes row |
||
| (One intermediate revision by one other user not shown) | |||
| 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> | ; <code>1</code> : language code · <code>2</code>–<code>8</code> : one or more labels | ||
'''Categorization.''' A known label | '''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> | |||
'''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. | 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><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 ·
2–8: 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:
- grammatical —
transitive,intransitive,ditransitive,ergative,reflexive,impersonal,auxiliary,modal,countable,uncountable,collective,singular only,plural only,comparable,not comparable, … - register / usage —
slang,colloquial,informal,formal,vulgar,derogatory,offensive,euphemistic,humorous,endearing,honorific,poetic,literary,technical,proscribed,nonstandard,dialectal, … - temporal —
archaic,dated,obsolete,historical,rare,uncommon,neologism - word-formation —
abbreviation,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.