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

From blackwiki
Jump to navigation Jump to search
imported>Mathglot
(Still; distribute everything out, keeping only the image name in the if.)
imported>Mathglot
(Add size param.)
 
Line 1: Line 1:
 
<table class="tmbox tmbox-notice wpbs mbox-inside collapsible {{#ifeq:{{lc:{{{collapsed|}}}}}|yes|collapsed}}" style="border-collapse:separate;" cellspacing="4">
 
<table class="tmbox tmbox-notice wpbs mbox-inside collapsible {{#ifeq:{{lc:{{{collapsed|}}}}}|yes|collapsed}}" style="border-collapse:separate;" cellspacing="4">
 
<tr>
 
<tr>
<td class="mbox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|NewFavicon icon.svg}}|32px]]</td>
+
<td class="mbox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|NewFavicon icon.svg}}|{{#if:{{{size|}}}|{{{size}}}|24}}px]]</td>
 
<th class="mbox-text">{{Show button}}{{#if:{{{text|}}}
 
<th class="mbox-text">{{Show button}}{{#if:{{{text|}}}
 
  |{{{text}}}
 
  |{{{text}}}

Latest revision as of 08:38, 5 July 2020

24px           Other talkpage banners.
50px Template documentation[view] [edit] [history] [purge]

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

{{Banner holder |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..

Choosing banners to collapse

The choice of which banners to collapse is left up to editors' discretion. However, here are some general pointers:

Generally collapsed

Generally not collapsed

See also