Difference between revisions of "Template:Banner holder/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mathglot
(Expand doc with new sections →‎Syntax: , →‎All parameters: , and →‎Optional parameters)
imported>Mathglot
Line 14: Line 14:
 
===All parameters===
 
===All parameters===
 
  <nowiki>{{WikiEd banner shell |collapsed=yes |text=Some text here |1=</nowiki>
 
  <nowiki>{{WikiEd banner shell |collapsed=yes |text=Some text here |1=</nowiki>
  <nowiki>  {{FirstWikiEdBanner}}</nowiki>
+
  <nowiki>  {{First banner}}</nowiki>
  <nowiki>  {{SecondWikiEdBanner}}</nowiki>
+
  <nowiki>  {{Second banner}}</nowiki>
  <nowiki>  {{ThirdWikiEdBanner}}</nowiki>
+
  <nowiki>  {{Third banner}}</nowiki>
 
  ...
 
  ...
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>

Revision as of 11:05, 6 July 2020

Usage

To group multiple banners such as merge histories into a box, and optionally collapse them into one banner to save vertical space.

Basic syntax

{{Banner holder |1=
  {{First banner}}
  {{Second banner}}
  {{Third banner}}
...
}}

All parameters

{{WikiEd banner shell |collapsed=yes |text=Some text here |1=
  {{First banner}}
  {{Second banner}}
  {{Third banner}}
...
}}

The |1= at the end of the first line is not optional and must be included.

Optional parameters

  1. Adding |collapsed=yes will cause the outer table to be collapsed, hiding the banners. Adding |collapsed=no (the default) will cause the outer table not to be collapsed, showing the banners.
  2. Adding |text=some string... will cause the collapse bar title to be altered to some string. If left blank or not used, the default string is Other talkpage banners..

See also