Template:Toolbar

From Bonkipedia
Template documentation

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.

Template parameters

ParameterDescriptionTypeStatus
Separatorseparator

The separator MediaWiki message name, without the “-separator” suffix.

Default
pipe
Stringoptional
Use <span>?span

Whether to wrap the toolbar in a <span> tag with “class="plainlinks"”.

Default
1
Auto value
0
Booleanoptional
Class Nameclass

Additional classes to add to the enclosing <span> tag’s “class” attribute.

Stringoptional
CSS Stylesstyle

Additional CSS properties to add to the enclosing <span> tag.

Stringoptional
Item 11

The first item.

Lineoptional
Item 22

The second item.

Lineoptional
Item 33

The third item.

Lineoptional
Item 44

The fourth item.

Lineoptional
Item 55

The fifth item.

Lineoptional
Item 66

The sixth item.

Lineoptional
Item 77

The seventh item.

Lineoptional
Item 88

The eighth item.

Lineoptional
Item 99

The ninth item.

Lineoptional
Item 1010

The tenth item.

Lineoptional
Item 1111

The eleventh item.

Lineoptional
Item 1212

The twelfth item.

Lineoptional
Item 1313

The thirteenth item.

Lineoptional
Item 1414

The fourteenth item.

Lineoptional
Item 1515

The fifteenth item.

Lineoptional
Item 1616

The sixteenth item.

Lineoptional
Item 1717

The seventeenth item.

Lineoptional
Item 1818

The eighteenth item.

Lineoptional
Item 1919

The nineteenth item.

Lineoptional
Item 2020

The twentieth item.

Lineoptional
Edit parameter translations

See also