• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Beta Wikipedia

Template:WPBannerMeta/hooks/collapsed

  • Template
  • Discussion
  • Language
  • Watch
  • Edit
< Template:WPBannerMeta | hooks
Template documentation[view] [edit] [history] [purge]
Syntax
{{WPBannerMeta
|PROJECT       = 
 |BANNER_NAME  = {{subst:FULLPAGENAME}}
 |category={{{category|}}}
 |listas = {{{listas|}}}
...
|HOOK_BOTTOM       = {{WPBannerMeta/hooks/collapsed
 |COLLAPSED_HEAD   = Title
 |CONTENT          = Content to show
 |COLLAPSED        = Threshold for collapsing
 |IMAGE_LEFT_SIZE  = Size of left image
 |counter = number of rows of content
}}
...
}}
Syntax with notecounter
{{WPBannerMeta
|PROJECT       = 
 |BANNER_NAME  = {{subst:FULLPAGENAME}}
 |category={{{category|}}}
 |listas = {{{listas|}}}
...
|HOOK_BOTTOM       = {{WPBannerMeta/hooks/collapsed
 |COLLAPSED_HEAD   = Title
 |CONTENT          = Content to show
 |COLLAPSED        = Threshold for collapsing
 |IMAGE_LEFT_SIZE  = Size of left image
 |counter = {{WPBannerMeta/hooks/notecounter
  |category = {{{category|}}}
  |BANNER_NAME={{subst:FULLPAGENAME}}
  |note 1  = {{{**PARAMETER**|}}}
  |note 2  = {{{**PARAMETER**|}}}
  |note 3  = {{{**PARAMETER**|}}}
  |note 4  = {{{**PARAMETER**|}}}
  |note 5  = {{{**PARAMETER**|}}}
  |note 6  = {{{**PARAMETER**|}}}
  |note 7  = {{{**PARAMETER**|}}}
  |note 8  = {{{**PARAMETER**|}}}
  |note 9  = {{{**PARAMETER**|}}}
  |note 10 = {{{**PARAMETER**|}}}
 }}
}}
...
}}

This hook enables adding another collapsed section into a project banner. It should be attached to the |HOOK_BOTTOM= hook. The following parameters are used:

  • COLLAPSED_HEAD – the title of the collapsed section. If not defined, "Additional information:" will be used. parameter that will trigger the note. Eg: COLLAPSED_HEAD = Associated taskforces
  • CONTENT – the content of the collapsed section. This could be another hook such as /notes or /taskforces.
  • COLLAPSED – the threshold of the number of rows for the banner to collapse. If {{{counter}}} is more than this number then the section will collapse; otherwise it will display without collapsing. If not defined, a default value of zero is used. Eg: COLLAPSED = 4
  • IMAGE_LEFT_SIZE – this is the size of the left image and should equal the value of this parameter in the main template code. Eg: IMAGE_LEFT_SIZE = 90px
  • counter – can be used to pass the number of rows of content in the section. The /notecounter hook may be used to count several triggers. The default value is 0 if the content is empty or 1 otherwise.
The above documentation is transcluded from Template:WPBannerMeta/hooks/collapsed/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.beta.wmcloud.org/w/index.php?title=Template:WPBannerMeta/hooks/collapsed&oldid=653919"
Last edited on 6 June 2025, at 14:48

Languages

      This page is not available in other languages.

      Beta Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited 14:48, 6 June 2025 by Beta Wikipedia user Dom walden. Based on work by Beta Wikipedia user CX Zoom Beta and Beta Wikipedia anonymous user wikipedia:en>WOSlinker.
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of use
      • Desktop