Template:Toolbar: Difference between revisions
[[mw:]]>ExE Boss (Use <onlyinclude> and {{subst:InitDoc}}) |
ManfredoDo (talk | contribs) m (1 revision imported: Formatting templates) |
(No difference)
|
Latest revision as of 18:01, 12 November 2022
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
{{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
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) | 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
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 |
See also
- Module:Toolbar, the Lua module that generates this template.