This page is protected against editing.

Template:Toolbar

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

()

Protected This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Toolbar/doc.

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>JSON</templatedata> ./. {{TemplateBox}}
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 TemplateDataCommons-specific information

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

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.

  • {{toolbar| [[User:Example|user]] | [[User talk:Example|talk]] | [[Special:BlockIP/Example|block]] | separator=dot }}(user · talk · block)