Template:Toolbar
()
This template has been protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. |
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
|separator =
|1 =
}}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
Creates ‘toolbars’ of links laid out in the same way as the MediaWiki software does.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Separator | separator | The separator MediaWiki message name, without the “-separator” suffix.
| String | optional |
Use <span>? | span | Whether to wrap the toolbar in a <span> tag with “class="plainlinks"”.
| Boolean | optional |
Class Name | class | Additional classes to add to the enclosing <span> tag’s “class” attribute. | String | optional |
CSS Styles | style | Additional CSS properties to add to the enclosing <span> tag. | String | optional |
Item 1 | 1 | The first item. | Line | optional |
Item 2 | 2 | The second item. | Line | optional |
Item 3 | 3 | The third item. | Line | optional |
Item 4 | 4 | The fourth item. | Line | optional |
Item 5 | 5 | The fifth item. | Line | optional |
Item 6 | 6 | The sixth item. | Line | optional |
Item 7 | 7 | The seventh item. | Line | optional |
Item 8 | 8 | The eighth item. | Line | optional |
Item 9 | 9 | The ninth item. | Line | optional |
Item 10 | 10 | The tenth item. | Line | optional |
Item 11 | 11 | The eleventh item. | Line | optional |
Item 12 | 12 | The twelfth item. | Line | optional |
Item 13 | 13 | The thirteenth item. | Line | optional |
Item 14 | 14 | The fourteenth item. | Line | optional |
Item 15 | 15 | The fifteenth item. | Line | optional |
Item 16 | 16 | The sixteenth item. | Line | optional |
Item 17 | 17 | The seventeenth item. | Line | optional |
Item 18 | 18 | The eighteenth item. | Line | optional |
Item 19 | 19 | The nineteenth item. | Line | optional |
Item 20 | 20 | The twentieth item. | Line | optional |
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
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.