साँचा:topic cat
इस साँचे का इस्तेमाल उन पन्नों पर होना चाहिए जो श्रेणी: नामस्थान में हैं, and automatically generates descriptions and categorization for categories of a recognized type (see below). It is implemented by Module:category tree and its submodule Module:category tree/topic cat. It is preferable not to invoke this template directly, but to simply use {{auto cat}}
(with no parameters), which will automatically invoke this template on appropriately-named category pages.
- आगे दिया गया दस्तावेज़ीकरण यहाँ साँचा:topic cat/documentation पर मौज़ूद है [संपादित करें]
- उपयोगी कड़ियाँ: उपपृष्ठ सूची • कड़ियाँ • पुनर्निर्देशन • ट्रांसक्लूजन • त्रुटियाँ (पार्सर/मॉड्यूल) • sandbox
This template automatically generates descriptions and categorization for categories whose name follows the format "(language code):(label)" and "(label)".
Parameters
[सम्पादन]|1=
- The language code (see Wiktionary:Languages) of the language that the category name begins with, and which the category's contents belongs to. Leave this empty for categories that do not start with a language code.
|2=
- The label of the category. This is the part of the category name that follows the language code.
- Note
This template can now figure out any missing parameters from the name of the category, but parameters which are included must be correct.
Examples
[सम्पादन]Adding, removing or modifying categories
[सम्पादन]The information on each label for this template is contained in Module:category tree/topic cat/data and its submodules. For a list of all data modules, see Category:Category tree data modules/topic cat.
The following values are recognised in these data modules:
parents
- A table listing one or more parent labels of this label.
- An item in the table can be either a single string, or a table containing two elements called
name
andsort
. In the latter case,name
value specifies the parent label name, while thesort
value specifies the sort key to use to sort it in that category. - If a parent label begins with
Category:
it is interpreted as a raw category name, rather than as a label name. It can still have its own sort key as usual.
- An item in the table can be either a single string, or a table containing two elements called
description
- A plain English description for the label. In addition to regular text, the following special keywords are available to generate "default" descriptions.
"default"
"default with capital"
"default with the"
"default with the lower"
"default with topic"
- These are inserted in this way:
description = "default with topic",
Special template-like parameters can be used inside the parents
and description
values. These are replaced by the equivalent text.
{{{langname}}}
- The name of the language that the category belongs to.
{{{langcat}}}
- The name of the language's main category, which adds "language" to the regular name.
For description
, these are also available:
{{{label_uc}}}
- The label name with its first character in uppercase.
{{{label_lc}}}
- The label name with its first character in lowercase.
TemplateData
[सम्पादन]Provides information about the topic of a category, such as Category:Sciences or Category:en:Light sources
पैरामीटर | विवरण | प्रकार | स्थिति | |
---|---|---|---|---|
language code | 1 | The language code of the language that the category name begins with, and which the category's contents belongs to. Leave this empty for categories that do not start with a language code. | अज्ञात | आवश्यक |
label | 2 | The label of the category. This is the part of the category name that follows the language code. | अज्ञात | आवश्यक |