Template:Banner holder: Difference between revisions
Jump to navigation
Jump to search
Richardpruen (talk | contribs) m (1 revision imported) |
(add templatestyles, adjust class names per Template talk:WikiProject banner shell#Make a passthrough of Template:Banner holder) |
||
Line 1: | Line 1: | ||
<table class="tmbox tmbox-notice | <templatestyles src="Module:Message box/tmbox.css"/><templatestyles src="Banner holder/styles.css"/><includeonly>{{#if:{{{templatestyles|}}}|{{#tag:templatestyles||src={{{templatestyles}}}}}}}</includeonly><!-- this tstyles is basically just for wpbs--><table role="presentation" class="tmbox tmbox-notice banner-shell mw-collapsible {{#ifeq:{{yesno|{{lc:{{{collapsed|}}}}}}}|yes|mw-collapsed}} {{{class|}}}"> | ||
<tr> | <tr> | ||
<td class="mbox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|NewFavicon icon.svg}}|{{#if:{{{size|}}}|{{{size}}}|24}}px]]</td> | <td class="mbox-image">[[File:{{#if:{{{image|}}}|{{{image}}}|NewFavicon icon.svg}}|{{#if:{{{size|}}}|{{{size}}}|24}}px|link={{{image_link|}}}|alt={{{alt|}}}]]</td> | ||
< | <td class="mbox-text banner-shell-header">{{Show button}}{{#if:{{{text|}}} | ||
|{{{text}}} | |{{{text}}} | ||
|Other talk page banners | |Other talk page banners | ||
}} | }} | ||
</ | </td> | ||
</tr><tr> | </tr><tr> | ||
<td colspan="2" class=" | <td colspan="2" class="banner-shell-inner outercollapse"> | ||
{{{1|}}} | {{{1|}}} | ||
</td></tr> | </td></tr> |
Revision as of 17:31, 5 June 2022
Other talk page banners | |
This template uses TemplateStyles: |
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 |image=someicon.jpog |size=48 |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
- 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. - 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.. - Adding
|image=file name
(not including the 'Image:' or 'File' prefix) changes the puzzle piece to the specified image. - Adding
|size=number
changes the size of the image icon to the number of pixels specified.
Examples
This example shows a banner holder grouping multiple {{Copied}} and {{Translated page}} templates, with an altered image icon:
{{Banner holder |collapsed=yes |text=This page contains text [[WP:CWW|copied]] or [[WP:TFOLWP|translated]] from other articles |image=Merge-arrow-3.svg |size=36 |1= {{Copied |from=SRC |from_oldid=rev |to=DEST |to_diff=dest-rev |to_oldid=prev-rev |date=DATE}} {{translated page|de|ICE 1|version=45565777|insertversion=210289191}} }}and generates:
This page contains text copied or translated from other articles | |||||
|
Choosing banners to collapse
The choice of which banners to collapse is left up to editors' discretion. Some banners have dedicated collapse headers, such as:
- WikiProjects – {{WikiProject banner shell}}
- Redirect categories – {{Redirect category shell}}
- {{On this day}} templates – self-collapsing
See also
- {{Article history}} – For a template to condense Peer Reviews and other Good- or Featured-article history
- {{Old XfD multi}} – For listing multiple deletion debates
- {{Skip to talk}} – To skip past the many banners and templates straight to the table of contents
- {{Talk header}} – Used at the top of some pages
- Other banner shells:
- {{WikiProject banner shell}} – for WikiProject banners
- {{Redirect category shell}} – For Redirect templates
- {{WPBannerMeta}} – The skeleton template for individual WikiProject banners