ઢાંચો:વિષય શ્રેણી/દસ્તાવેજીકરણ
Usage
ફેરફાર કરોTopic cat helper is designed to automatically provide a summary and parent categories for any topical category. It does so by relying on the contents of {{વિષય શ્રેણી પૂર્વજ}}
and {{વિષય શ્રેણી વર્ણન}}
, which have default parameters as described in {{વિષય શ્રેણી પૂર્વજ/પ્રમાણભૂત}}
and {{વિષય શ્રેણી વર્ણન/પ્રમાણભૂત}}
.
Examples
ફેરફાર કરોFor the top category, containing all language specific subcategories:
{{વિષય શ્રેણી||Recreation}}
For a language-specific category:
{{વિષય શ્રેણી|en|Recreation}} {{વિષય શ્રેણી|de|Recreation}}
Subtemplates
ફેરફાર કરોThe {{વિષય શ્રેણી વર્ણન}}
template creates the description text for a topic category page. If a topic-specific description exists as a subpage of ઢાંચો:topic cat description, it will be used to create the description. This subpage can either be its own page or a redirect to one of the "standard variants". If the description parameter is passed to {{વિષય શ્રેણી}}
, it will be used instead of this template. The default description can be found at ઢાંચો:topic cat description/default. Standard variants can be seen at વિશેષ:Prefixindex/ઢાંચો:topic cat description/default.
The subtemplate that is selected based on the value of {{{વર્તમાન}}}
is passed the following parameters:
ભાષાકડી
- a pre-linked version of the language nameવર્તમાન
- the category name for which the description is being shownભાષા
- the language code passed as the first parameter to{{વિષય શ્રેણી}}
Many custom descriptions will use only the ભાષાકડી parameter and use fully custom text in place of the current parameter. However, some variants of the default description that vary only in terms of capitalization or words surrounding the topic name will use વર્તમાન (an example of this is ઢાંચો:topic cat description/Automotive, which redirect to ઢાંચો:topic cat description/default with topics). The ભાષા parameter is not used by any of the default variants, but it may be used in conjunction with {{topic cat name}}
in cases where a language-specific link to another category is desired as part of the description (see ઢાંચો:topic cat description/Dance for example).
The {{વિષય શ્રેણી પૂર્વજ}}
template deals with adding predefined parents to a topic category. If a topic-specific subpage of ઢાંચો:topic cat parents exists, it will be called with the language code by this template to provide the default parent categories for the topic.
A list of all topic-specific parent templates can be found in Category:Topic cat parent templates.
The {{વિષય શ્રેણી નામ}}
template constructs the template category name from the language code and the category name.
This template can be passed the following parameters:
ભાષા
- the language codeશ્રેણી
- the name of the categoryઉપસર્ગ
- if passed, it replaces "શ્રેણી:
" as the prefix (passઉપસર્ગ=
to get the raw category name without a namespace)