Template:Toolbar/doc

From Linux Web Expert

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-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

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Toolbar/doc

<templatedata>{"paramOrder":["separator","span","class","style","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"],"description":"Creates ‘toolbars’ of links laid out in the same way as the MediaWiki software does.","params":{"class":{"type":"string","description":"Additional classes to add to the enclosing tag’s “class” attribute.","label":"Class Name"},"span":{"type":"boolean","default":"1","label":"Use ?","description":"Whether to wrap the toolbar in a tag with “class=\"plainlinks\"”.","autovalue":"0"},"style":{"type":"string","description":"Additional CSS properties to add to the enclosing tag.","label":"CSS Styles"},"separator":{"description":"The separator MediaWiki message name, without the “-separator” suffix.","type":"string","default":"pipe","label":"Separator"},"1":{"type":"line","description":"The first item.","label":"Item 1"},"2":{"type":"line","description":"The second item.","label":"Item 2"},"3":{"type":"line","description":"The third item.","label":"Item 3"},"4":{"type":"line","description":"The fourth item.","label":"Item 4"},"5":{"type":"line","description":"The fifth item.","label":"Item 5"},"6":{"type":"line","description":"The sixth item.","label":"Item 6"},"7":{"type":"line","description":"The seventh item.","label":"Item 7"},"8":{"type":"line","description":"The eighth item.","label":"Item 8"},"9":{"type":"line","description":"The ninth item.","label":"Item 9"},"10":{"type":"line","description":"The tenth item.","label":"Item 10"},"11":{"type":"line","description":"The eleventh item.","label":"Item 11"},"12":{"type":"line","description":"The twelfth item.","label":"Item 12"},"13":{"type":"line","description":"The thirteenth item.","label":"Item 13"},"14":{"type":"line","description":"The fourteenth item.","label":"Item 14"},"15":{"type":"line","description":"The fifteenth item.","label":"Item 15"},"16":{"type":"line","description":"The sixteenth item.","label":"Item 16"},"17":{"type":"line","description":"The seventeenth item.","label":"Item 17"},"18":{"type":"line","description":"The eighteenth item.","label":"Item 18"},"19":{"type":"line","description":"The nineteenth item.","label":"Item 19"},"20":{"type":"line","description":"The twentieth item.","label":"Item 20"}}}</templatedata>Edit parameter translations

See also