ထႅမ်းပလဵတ်ႉ:label
(example)
- The following documentation is located at ထႅမ်းပလဵတ်ႉ:label/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Use this template, as described in Wiktionary:Context labels:
- To label senses with restricted usage
- To label senses with grammatical information, in addition to that in the part-of-speech heading and headword line
This template generates content using Module:labels/templates and Module:labels. Lists of all recognised labels can be found at Module:labels/data, Module:labels/data/regional, Module:labels/data/topical, and Module:labels/data/subvarieties. To search for a label in these data modules, use the search box on the right. To add a label, go to the appropriate data module and follow the directions in the documentation page, or ask someone else to add the label at Module talk:labels/data.
လွင်ႈၸႂ်ႉတိုဝ်း
မႄးထတ်းA label is placed before the definition, such as:
# {{lb|en|AU|colloquial|pejorative}} An [[insidious]] person.
- (AU, colloquial, derogatory) An insidious person.
Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value)., Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value)., and Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value). are all equivalent. Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value). is preferred for conciseness.
The first parameter is the language code of the section in which the template is placed (e.g. en
for English); see WT:LANGLIST for the full list. Further parameters are context labels.
This template provides consistency. The same visual result could be achieved with simpler formatting; however, lb
helps to ensure that the same labels are used across the project. For instance, {{lb|en|math}}
and {{lb|en|maths}}
both produce the same result, expanding to (mathematics).
Use of a context label also provides automatic categorization. For instance, the example above is categorized as Australian English and slang. Likewise, any page with a context of math or maths will be automatically placed in category Mathematics. However, these templates should not be used merely for categorization. It is still preferable to list a [[Category: ]]
when there is no specific context for a term.
Regions are meant to indicate where a term is used, not to specify location of an entity. For instance, the Sphinx in Giza should not be labeled Egypt. Rather, that's part of the definition. Also, time and space are not contexts. The word "week" is understood to mean seven days whether one is discussing war or widgets or the weather, in speech or song or storybook.
တူဝ်ယၢင်ႇ
မႄးထတ်းSome examples to demonstrate the range of current functionality:
- A single ad hoc context with no supporting template:
Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
- A single context with supporting template (for categorization and custom label-text):
Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
- Multiple contexts (up to about nine), with or without supporting templates:
Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
- Multiple contexts, with special built-in separator pseudo-contexts that replace the comma:
Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
- Qualifier/modifier pseudo-contexts whose supporting templates suppress following comma (by adding a
_
parameter):
Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
Language-specific labels
မႄးထတ်းAn example of a language-specific label:
Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
The label is only linked when the language code is grc
(representing Ancient Greek).
Redirecting labels
မႄးထတ်းCertain labels are aliases that "redirect" to other labels, or are displayed as them. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
If the wrong language code is used, in this case Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value). (German), the label will not be redirected. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
မၢႆတွင်း
မႄးထတ်း- Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value). is a separate context label template used in Portuguese.
ပႃႇရႃႇမီႇတႃႇ ဢၼ်ထႅမ်သႂ်ႇထႅင်ႈ
မႄးထတ်း|sort=
- Sortkey. Usually can be generated automatically from the page name.
|nocat=1
- Don't add categories.
တူၺ်းပႃး
မႄးထတ်း- Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value). — Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
- Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
- Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
- Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
ၶေႃႈမုၼ်းထႅမ်းပလဵၵ်ႉ
မႄးထတ်းTemplateData for label
Use this template to label senses with restricted usage or senses with grammatical information, in addition to that in the part-of-speech heading and headword line
Parameter | ၶေႃႈသပ်းလႅင်း | Type | Status | |
---|---|---|---|---|
language | 1 | The language of the current section
| String | required |
label 1 | 2 | first label
| String | required |
label 2 | 3 | second label
| String | optional |
label 3 | 4 | third label
| String | optional |
Defined labels
မႄးထတ်းThe following labels are defined:
Script error: No such module "labels doc".