Template:Description/doc: Difference between revisions
More actions
m spelling |
No edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|name=Description | |||
|desc=Adds language name and colon in front of the text in that language. Also adds machine-readable tags identifying the text as being in that language. | |||
|1=1 | |1=1 | ||
|1d=wikicode for the language and name of the CSS formating class (mandatory) | |1d=wikicode for the language and name of the CSS formating class (mandatory) | ||
| Line 11: | Line 14: | ||
|3=3 | |3=3 | ||
|3aliases=name | |||
|3d=title for tooltip (optional, default is empty) | |3d=title for tooltip (optional, default is empty) | ||
|3def= | |3def= | ||
|3stat=optional | |3stat=optional | ||
| Line 31: | Line 34: | ||
|6stat=optional | |6stat=optional | ||
|namespace= | |namespace= | ||
|usergroup= | |usergroup= | ||
| Line 38: | Line 39: | ||
|usage-notes= | |usage-notes= | ||
|type= | |type= | ||
|setscats= | |||
* [[:Category:Language templates with no text displayed]] (if parameter #2 is empty) | |||
|lines= | |||
|shorthand= | |||
|relieson= | |||
|example= | |example= | ||
|seealso= | |||
* {{Tl|Description missing}} | |||
|i18n-method=switch | |i18n-method=switch | ||
|i18n-desc=Add to {{tl|Description/i18n}} | |i18n-desc=Add to {{tl|Description/i18n}} | ||
}}<includeonly> | |||
}} | |||
[[Category:Internationalization templates]] | [[Category:Internationalization templates]] | ||
</includeonly> | </includeonly> | ||
Revision as of 09:58, 26 June 2019
Adds language name and colon in front of the text in that language. Also adds machine-readable tags identifying the text as being in that language.
The template automatically sets the following categories:
- Category:Language templates with no text displayed (if parameter #2 is empty)
Usage
{{Description |1= |2= |3= |4= |5= |inline= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | wikicode for the language and name of the CSS formating class (mandatory) | empty | required | |
2 | description text | empty | required | |
3name | title for tooltip (optional, default is empty) | empty | optional | |
4 | standard code for lang tag in HTML (optional, default is same as parameter 1) | empty | optional | |
5 | extension text shown after the language name before colon (optional, default is empty) | empty | optional | |
inline | optional, default is empty string. When set to any value different from an empty string, forces the template to be displayed inline, so that it does not break the current paragraph (i.e. that makes possible to put several descriptions side by side on a single line) | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)
Add to {{Description/i18n}}