• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Banner holder

  • Language
  • Watch
  • View source
Revision as of 17:31, 5 June 2022 by wikipedia>Izno (add templatestyles, adjust class names per Template talk:WikiProject banner shell#Make a passthrough of Template:Banner holder)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
          Other talk page banners
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Module:Message box/tmbox.css
  • Template:Banner holder/styles.css

Contents

  • 1 Usage
    • 1.1 Basic syntax
    • 1.2 All parameters
      • 1.2.1 Optional parameters
  • 2 Examples
  • 3 Choosing banners to collapse
  • 4 See also

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

  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..
  3. Adding |image=file name (not including the 'Image:' or 'File' prefix) changes the puzzle piece to the specified image.
  4. Adding |size=number changes the size of the image icon to the number of pixels specified.
Some icons which might be useful as images

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
Text and/or other creative content from this version of SRC was copied or moved into DEST with this edit on DATE. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists.
This template contains a translation of ICE 1 from de.wikipedia. (210289191 et seq.)

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
The above documentation is transcluded from Template:Banner holder/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Banner_holder&oldid=25779"
View edit history of this page.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 5 June 2022, at 17:31. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement