Template:DescriptionCategoriesLang/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:DescriptionCategoriesLang. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
To add a language, copy this block and paste it at the end of the template, just before the line that reads "<!-- PASTE YOUR LANGUAGE BEFORE THIS-->":
|#default={{#switch:{{{1|}}} |keys =Key descriptions |keys per group =disabled |keys without group= |tags by key =Tag descriptions |tags per group =disabled |tags without group= |tags per key =disabled |tags without key = |tags by value =Tag descriptions by value |relations =Relation descriptions }}
Now, in your copy, change "#default" to the language code of your language.
Parameters
Note: There is no recommendation to use all of these categories. Just use those which you think make most sense to you and your local community |
- lang: Language code to use (optional, if not specified, the language tested will be determined from the current page by {{Langcode}})
- keys: Name of the category which collects all keys
- keys per group: Name of the category which collects the keys of a common group. {{{group}}} may be used as variable. May be disabled by setting to "disabled". Only links to categories which already exist are created.
- keys without group: Name of the category which collects the keys which were not collected by keys per group. Disables along with keys per group. Suggestion: Use parent category of keys per group. Can be suppressed by using same category as for "keys".
- tags by key: Name of the category which collects all tags, ordered by key=value.
- tags per group: Name of the category which collects the tags of a common group. {{{group}}} may be used as variable. May be disabled by setting to "disabled". Only links to categories which already exist are created.
- tags without group: Name of the category which collects the tags which were not collected by tags per group. Disables along with tags per group. Suggestion: Use parent category of tags per group. Can be suppressed by using same category as for "tags by key".
- tags per key: Name of the category which collects the tags of a common key. {{{group}}}and {{{key}}} may be used as variables. May be disabled by setting to "disabled". Only links to categories which already exist are created.
- tags without key: Name of the category which collects the tags which were not collected by tags per key. Disables along with tags per key. Suggestion: Use parent category of tags per key. Can be suppressed by using same category as for "tags by key".
- tags by value: Name of the category which collects all tags, ordered by value,key. Can be suppressed by using same category as for "tags by key" (in which case the category will only be ordered by key=value).
- relations: Name of the category which collects all relations
Element | Available input variable(s) | Disable | Only if category exists? | Example |
---|---|---|---|---|
keys | No | No | Key descriptions | |
keys per group | {{{group}}} | keys per group = disabled | Yes | Key descriptions for group "{{{group}}}" |
keys without group | keys per group = disabled | No | Key descriptions by group | |
tags by key | No | No | Tag descriptions | |
tags per group | {{{group}}} | tags per group = disabled | Yes | Tag descriptions for group "{{{group}}}" |
tags without group | tags per group = disabled | No | Key descriptions by group | |
tags per key | {{{group}}}, {{{key}}} | tags per key = disabled | Yes | Tag descriptions for {{{group}}}:{{{key}}} |
tags without key | tags per key = disabled | No | Tag descriptions by key | |
tags by value | same value as "tags by key" | No | Tag descriptions by value | |
relations | No | No | Relation descriptions |
Use cases
Single category
Example: Put every page into the single category "Descriptions" for a simple namespace:
|en-simple={{#switch:{{{1|}}} |keys =Descriptions |keys per group =disabled |keys without group= |tags by key =Descriptions |tags per group =disabled |tags without group= |tags per key =disabled |tags without key = |tags by value =Descriptions |relations =Descriptions }}
3 categories: Relations, Keys, Values
Example: Put keys, values and relations into separate categories "Beschreibungen der Schlüssel", "Beschreibungen der Werte" and "Beschreibungen der Relationen" respectively for German namespace:
|de={{#switch:{{{1|}}} |keys =Beschreibungen der Schlüssel<!-- (ordered list)--> |keys per group =Beschreibungen der Schlüssel für Gruppe "{{{group}}}" |keys without group=Beschreibungen der Schlüssel nach Gruppe |tags by key =Beschreibungen der Attribute<!-- (ordered list)--> |tags per group =Beschreibungen der Attribute für Gruppe "{{{group}}}" |tags without group=Beschreibungen der Attribute nach Gruppe |tags per key =Beschreibungen der Attribute für Schlüssel "{{{key}}}"<!-- in Gruppe {{{group}}}--> |tags without key =Beschreibungen der Attribute nach Schlüssel |tags by value =Beschreibungen der Attribute nach Wert |relations =Beschreibungen der Relationen }}
4 categories: default classification
|#default={{#switch:{{{1|}}} |keys =Key descriptions<!-- (ordered list)--> |keys per group =<!--Key descriptions for group {{{group}}}-->disabled |keys without group=<!--Key descriptions by group--> |tags by key =Tag descriptions<!-- (ordered list)--> |tags per group =<!--Tag descriptions for group {{{group}}}-->disabled |tags without group=<!--Tag descriptions by group--> |tags per key =<!--Tag descriptions for key {{{key}}}--><!-- in group {{{group}}}-->disabled |tags without key =<!--Tag descriptions by key--> |tags by value =Tag descriptions by value |relations =Relation descriptions }}
All categories except "without"-categories
Category for "keys without group" must match that for "keys". Category for "tags without group" and "tags without key" must match that for "tags by key".
Example:
|en={{#switch:{{{1|}}} |keys =Key descriptions |keys per group =Key descriptions for group: {{{group}}} |keys without group=Key descriptions |tags by key =Tag descriptions by key |tags per group =Tag descriptions for group: {{{group}}} |tags without group=Tag descriptions by key |tags per key =Tag descriptions for {{{group}}}: {{{key}}} |tags without key =Tag descriptions by key |tags by value =Tag descriptions by value |relations =Relation descriptions }}
See also
- {{DescriptionCategoryLang}} - translation for: XXX descriptions with status "XXX"
- {{DescriptionSubcategoryLang}} - translation for: XXX descriptions with status "XXX" for key "XXX"