|
|
| Line 1: |
Line 1: |
| {{TemplateBox | | {{TemplateBox/sandbox |
| |name = Toolbar
| | | name = toolbar |
| |desc-en = 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. | | |desc-en = 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-notes = | | |usage-notes = |
| |namespace = | | |namespace = |
| |usergroup =
| | | usergroup = all |
| |shorthand =
| |
| |mustbesubst =
| |
| |setscats =
| |
| |placement =
| |
| |example =
| |
| |example-value =
| |
| |relieson =
| |
| |seealso =
| |
| |print =
| |
| |type =
| |
| |i18n-method = mediawiki-msg | | |i18n-method = mediawiki-msg |
| |i18n-mediawiki-msg = pipe-separator | | |i18n-mediawiki-msg = pipe-separator |
| |i18n-desc = Depending on the value of the {{para|separator}}, a different MediaWiki message may be used. | | |i18n-desc = Depending on the value of the {{para|separator}}, a different MediaWiki message may be used. |
| |useTemplateData =
| | | print = multi |
| | | useTemplateData = TNT |
|
| |
|
| |1 = 1
| | | 1 = separator |
| |1label-en= 1st item
| | | 101 = 1 |
| |1d-en = <!-- English description of the first parameter the template takes -->
| |
| |1aliases = <!-- List of aliases, separated by / (a slash) -->
| |
| |1type = content
| |
| |1def = <!-- default value for the parameter -->
| |
| |1stat = suggested
| |
| | |
| |2 = 2
| |
| |2label-en= 2nd item
| |
| |2d-en =
| |
| |2aliases =
| |
| |2type = content
| |
| |2def =
| |
| |2stat = optional-
| |
| | |
| |3 = 3
| |
| |3label-en= 3rd item
| |
| |3d-en =
| |
| |3aliases =
| |
| |3type = content
| |
| |3def =
| |
| |3stat = optional-
| |
| | |
| |4 = 4
| |
| |4label-en= 4th item
| |
| |4d-en =
| |
| |4aliases =
| |
| |4type = content
| |
| |4def =
| |
| |4stat = optional-
| |
| | |
| |5 = 5
| |
| |5label-en= 5th item
| |
| |5d-en =
| |
| |5aliases =
| |
| |5type = content
| |
| |5def =
| |
| |5stat = optional-
| |
| | |
| |6 = 6
| |
| |6label-en= 6th item
| |
| |6d-en =
| |
| |6aliases =
| |
| |6type = content
| |
| |6def =
| |
| |6stat = optional-
| |
| | |
| |7 = 7
| |
| |7label-en= 7th item
| |
| |7d-en =
| |
| |7aliases =
| |
| |7type = content
| |
| |7def =
| |
| |7stat = optional-
| |
| | |
| |8 = 8
| |
| |8label-en= 8th item
| |
| |8d-en =
| |
| |8aliases =
| |
| |8type = content
| |
| |8def =
| |
| |8stat = optional-
| |
| | |
| |9 = 9
| |
| |9label-en= 9th item
| |
| |9d-en =
| |
| |9aliases =
| |
| |9type = content
| |
| |9def =
| |
| |9stat = optional-
| |
| | |
| |10 = 10
| |
| |10label-en= 10th item
| |
| |10d-en =
| |
| |10aliases =
| |
| |10type = content
| |
| |10def =
| |
| |10stat = optional-
| |
| | |
| |11 = 11
| |
| |11label-en= 11th item
| |
| |11d-en =
| |
| |11aliases =
| |
| |11type = content
| |
| |11def =
| |
| |11stat = optional-
| |
| | |
| |12 = 12
| |
| |12label-en= 12th item
| |
| |12d-en =
| |
| |12aliases =
| |
| |12type = content
| |
| |12def =
| |
| |12stat = optional-
| |
| | |
| |13 = 13
| |
| |13label-en= 13th item
| |
| |13d-en =
| |
| |13aliases =
| |
| |13type = content
| |
| |13def =
| |
| |13stat = optional-
| |
| | |
| |14 = 14
| |
| |14label-en= 14th item
| |
| |14d-en =
| |
| |14aliases =
| |
| |14type = content
| |
| |14def =
| |
| |14stat = optional-
| |
| | |
| |15 = 15
| |
| |15label-en= 15th item
| |
| |15d-en =
| |
| |15aliases =
| |
| |15type = content
| |
| |15def =
| |
| |15stat = optional-
| |
| | |
| |16 = 16
| |
| |16label-en= 16th item
| |
| |16d-en =
| |
| |16aliases =
| |
| |16type = content
| |
| |16def =
| |
| |16stat = optional-
| |
| | |
| |17 = 17
| |
| |17label-en= 17th item
| |
| |17d-en =
| |
| |17aliases =
| |
| |17type = content
| |
| |17def =
| |
| |17stat = optional-
| |
| | |
| |18 = 18
| |
| |18label-en= 18th item
| |
| |18d-en =
| |
| |18aliases =
| |
| |18type = content
| |
| |18def =
| |
| |18stat = optional-
| |
| | |
| |19 = 19
| |
| |19label-en= 19th item
| |
| |19d-en =
| |
| |19aliases =
| |
| |19type = content
| |
| |19def =
| |
| |19stat = optional-
| |
| | |
| |20 = 20
| |
| |20label-en= 20th item
| |
| |20d-en =
| |
| |20aliases =
| |
| |20type = content
| |
| |20def =
| |
| |20stat = optional-
| |
| | |
| |21 = separator
| |
| |21label-en= separator
| |
| |21d-en = Name of a MediaWiki message to be used as the separator. The suffix “-separator” is automatically added.
| |
| |21aliases =
| |
| |21type = line
| |
| |21def = pipe
| |
| |21stat = optional-
| |
| | |
| |22 = class
| |
| |22label-en= extra classes
| |
| |22d-en = Additional CSS classes for the output <span>, in addition to “plainlinks”
| |
| |22aliases =
| |
| |22type = line
| |
| |22def =
| |
| |22stat = optional-
| |
| | |
| |23 = style
| |
| |23label-en= extra styles
| |
| |23d-en = Inline CSS text for the output <span>
| |
| |23aliases =
| |
| |23type = line
| |
| |23def =
| |
| |23stat = optional-
| |
| }} | | }} |
|
| |
|
| Line 212: |
Line 22: |
|
| |
|
| * <code><nowiki>{{toolbar| [[User:Example|user]] | [[User talk:Example|talk]] | [[Special:BlockIP/Example|block]] | separator=dot }}</nowiki></code> → {{toolbar| [[User:Example|user]] | [[User talk:Example|talk]] | [[Special:BlockIP/Example|block]] |separator=dot }} | | * <code><nowiki>{{toolbar| [[User:Example|user]] | [[User talk:Example|talk]] | [[Special:BlockIP/Example|block]] | separator=dot }}</nowiki></code> → {{toolbar| [[User:Example|user]] | [[User talk:Example|talk]] | [[Special:BlockIP/Example|block]] |separator=dot }} |
| <includeonly> | | <includeonly>{{Sandbox other|| |
| | <!-- Categories below this line; interwikis at Wikidata --> |
| [[Category:Internal link templates]] | | [[Category:Internal link templates]] |
| </includeonly> | | }}</includeonly> |
Template:TemplateBox/sandbox
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)