Template:Toolbar/doc: Difference between revisions
Template page
More actions
use {{TemplateBox}}, remove interlanguage links already available at Wikidata |
Sort {{TemplateBox}} parameters |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|name = Toolbar | |||
|desc-en = This template is used to create ‘toolbars’ of links that are laid out in the same way as those produced by the core MediaWiki software. | |||
|usage-notes = | |||
|namespace = | |||
|usergroup = | |||
|shorthand = | |||
|mustbesubst = | |||
|setscats = | |||
|placement = | |||
|example = | |||
|example-value = | |||
|relieson = | |||
|seealso = | |||
|print = | |||
|type = | |||
|i18n-method = mediawiki-msg | |||
|i18n-mediawiki-msg = pipe-separator | |||
|i18n-desc = Depending on the value of the {{para|separator}}, a different MediaWiki message may be used. | |||
|useTemplateData = | |||
|1 = 1 | |1 = 1 | ||
|1label-en= 1st item | |1label-en= 1st item | ||
| Line 183: | Line 203: | ||
|23def = | |23def = | ||
|23stat = optional- | |23stat = optional- | ||
}} | }} | ||
Revision as of 06:34, 9 August 2021
This template is used to create ‘toolbars’ of links that are laid out in the same way as those produced by the core MediaWiki software.
Usage
{{Toolbar |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | 1st item | empty | suggested | |
2 | 2nd item | empty | optional | |
3 | 3rd item | empty | optional | |
4 | 4th item | empty | optional | |
5 | 5th item | empty | optional | |
6 | 6th item | empty | optional | |
7 | 7th item | empty | optional | |
8 | 8th item | empty | optional | |
9 | 9th item | empty | optional | |
10 | 10th item | empty | optional | |
11 | 11th item | empty | optional | |
12 | 12th item | empty | optional | |
13 | 13th item | empty | optional | |
14 | 14th item | empty | optional | |
15 | 15th item | empty | optional | |
16 | 16th item | empty | optional | |
17 | 17th item | empty | optional | |
18 | 18th item | empty | optional | |
19 | 19th item | empty | optional | |
20 | 20th item | empty | optional | |
separator | separator | Name of a MediaWiki message to be used as the separator. The suffix “-separator” is automatically added. | pipe | optional |
class | extra classes | Additional CSS classes for the output <span>, in addition to “plainlinks” | empty | optional |
style | extra styles | Inline CSS text for the output <span> | 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
Localization
This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).
Depending on the value of the |separator=, a different MediaWiki message may be used.
Usage
{{toolbar| [[User:Example|user]] | [[User talk:Example|talk]] | [[Special:BlockIP/Example|block]] }}→ (user | talk | block)
Up to ten links can be specified.