Template:Toolbar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
→‎Usage: spacing, added missing parameter, formatting correction
Ookami (talk | contribs)
m 27 revisions imported
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{Lua|icononly=on|Module:Toolbar}}
{{Lua|icononly=on|Module:Toolbar}}
{{High-risk|300,000}}
{{Used in system}}
<!-----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----->
<!-----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----->
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.
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 ==
== Usage ==
* <code><nowiki>{{Toolbar |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}</nowiki></code>&nbsp;&rarr; {{toolbar |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}
<code><nowiki>{{Toolbar |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}</nowiki></code>&nbsp;{{toolbar |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}


<br/>There is a ''separator'' parameter that can be used to specify the [[Delimiter|separator character]] placed between each link:<br/>
<br/>There is a ''separator'' parameter that can be used to specify the [[Delimiter|separator character]] placed between each link:<br/>
* <code><nowiki>{{Toolbar|separator=dot |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}</nowiki></code>&nbsp;&rarr; {{Toolbar|separator=dot |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}
<code><nowiki>{{Toolbar|separator=comma |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}</nowiki></code>&nbsp;{{Toolbar|separator=comma |[[User:Example|user]] |[[User talk:Example|talk]] |[[Special:BlockIP/Example|block]]}}


The separators available are:
The separators available are:
Line 23: Line 25:
* [[Module:Toolbar]], the [[Help:Lua|Lua module]] that generates this template.
* [[Module:Toolbar]], the [[Help:Lua|Lua module]] that generates this template.


<includeonly>
<includeonly>{{Sandbox other||
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!--------CATEGORIES BELOW THIS LINE, PLEASE:--------->
<!--------CATEGORIES BELOW THIS LINE, PLEASE:--------->
[[Category:Username internal link templates| ]]
[[Category:Username internal link templates| ]]
[[Category:Link templates|Toolbar]]
[[Category:Link templates|Toolbar]]
[[Category:Wikipedia list formatting templates]]
[[Category:List formatting and function templates]]
}}
 
</includeonly>
}}</includeonly>

Latest revision as of 23:06, 3 September 2020

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)

The separators available are:

comma, comma
dot⧼dot-separator⧽dot
tpt-languages⧼tpt-languages-separator⧽tpt-languages
pipe | pipe (default)

The parameters class and style (specifying HTML/CSS class and styling) may also be set.

See also