Template:Toolbar/doc
This is a documentation subpage for Template:Toolbar. It contains usage information, categories and other content that is not part of the original Template page. |
Uses Lua: |
This template is used to create a toolbar of links that are laid out in the same way as those produced by the core MediaWiki software.
Usage
[edit]{{Toolbar |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}
â (user | talk | block)
There is a separator parameter that can be used to specify the separator character placed between each link:
{{Toolbar|separator=comma |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}
â (user, talk, block)
Examples
[edit]Source | Result | Uses |
---|---|---|
{{toolbar|separator=colon|colon|colon}} | (colon: colon) | MediaWiki:colon-separator |
{{toolbar|separator=comma|comma|comma}} | (comma, comma) | MediaWiki:comma-separator |
{{toolbar|separator=dot|dot|dot}} | (dot ¡ dot) | N/A |
{{toolbar|separator=semicolon|semicolon|semicolon}} | (semicolon; semicolon) | MediaWiki:semicolon-separator |
{{toolbar|separator=tpt-languages|tpt-languages|tpt-languages}} | (tpt-languages⧟tpt-languages-separator⧽tpt-languages) | MediaWiki:tpt-languages-separator |
{{toolbar|separator=pipe|pipe|pipe}} (default) | (pipe | pipe) | MediaWiki:pipe-separator |
The parameters class and style (specifying HTML/CSS class and styling) may also be set.
TemplateData
[edit]This is the TemplateData documentation for this template used by VisualEditor and other tools.
Toolbar
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 |
Edit parameter translations
See also
[edit]- Module:Toolbar, the Lua module that generates this template.