Template:Shortcut text/doc: Difference between revisions
Template page
More actions
←Created page with '{{TemplateBox |name=Shortcut text |desc="Shortcut" caption of shortcut templates |namespace=all |usergroup=all |usage-notes=<code><nowiki>{{Shortcut text|{{{1|}}} ...' |
improve documentation, move category from main template page |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
| | |1 = 1 | ||
| | |1label = plural | ||
| | |1d-en = If it has any value, the text is “Shortcuts” instead of “Shortcut” | ||
| | |1aliases = <!-- List of aliases, separated by / (a slash) --> | ||
| | |1type = <!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown --> | ||
|1def = <!-- default value for the parameter --> | |||
|1stat = optional | |||
|2 = lang | |||
| | |2label = language | ||
|example= | |2d-en = Fix language code. Useful on translated Commons namespace pages, or in other translated templates. | ||
|i18n-method=switch | |2aliases = | ||
|i18n-desc= | |2type = string/line | ||
| | |2def = <nowiki>{{int:lang}}</nowiki> | ||
| | |2stat = optional- | ||
| | |||
| | |name = Shortcut text | ||
}} | |desc = “Shortcut” caption of shortcut templates | ||
|usage-notes = | |||
|namespace = all | |||
|usergroup = all | |||
|placement = | |||
|example = | |||
|example-value = | |||
|relieson = | |||
|shorthand = | |||
|setscats = | |||
|seealso = | |||
|type = | |||
|i18n-method = switch | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|i18n-mediawiki-msg = | |||
|print = | |||
|mustbesubst = | |||
}}<includeonly> | |||
[[Category:Internationalization templates using LangSwitch]]</includeonly> | |||
Latest revision as of 19:04, 13 March 2018
“Shortcut” caption of shortcut templates
Usage
{{Shortcut text |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | plural | If it has any value, the text is “Shortcuts” instead of “Shortcut” | empty | optional |
lang | language | Fix language code. Useful on translated Commons namespace pages, or in other translated templates. | {{int:lang}} | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
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)