• 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/cats

  • Template
  • Discussion
  • Language
  • Watch
  • Edit
< Template:WPBannerMeta | hooks
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on 3,430,000+ pages, or roughly 1226% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
Syntax
{{WPBannerMeta
|PROJECT               = 
 |BANNER_NAME          = {{subst:FULLPAGENAME}}
 |category={{{category|}}}
 |listas = {{{listas|}}}

...

}} <!--
-->{{WPBannerMeta/hooks/cats
 |category={{{category|}}}
 |BANNER_NAME = {{subst:FULLPAGENAME}}
 |cat 1={{{**PARAMETER**|}}}
  |CAT_1      = 
 |cat 2={{{**PARAMETER**|}}}
  |CAT_2      =   
 |cat 3={{{**PARAMETER**|}}}
  |CAT_3      =   
 |cat 4={{{**PARAMETER**|}}}
  |CAT_4      =   
 |cat 5={{{**PARAMETER**|}}}
  |CAT_5      =   
 |cat 6={{{**PARAMETER**|}}}
  |CAT_6      =   
 |cat 7={{{**PARAMETER**|}}}
  |CAT_7      =   
 |cat 8={{{**PARAMETER**|}}}
  |CAT_8      =   
 |cat 9={{{**PARAMETER**|}}}
  |CAT_9      =   
 |cat 10={{{**PARAMETER**|}}}
  |CAT_10     =   
}}

...

}}

This hook allows you to add up to ten optional categories, that will be added to a page if a particular parameter is defined. Each category will be added if the corresponding parameter is non-empty. This template displays no visible output, so it can be put anywhere in the template code; common practice is to put it attached to a task force hook, such as |TF_n_HOOK=.

The above documentation is transcluded from Template:WPBannerMeta/hooks/cats/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/cats&oldid=574649"
Last edited on 20 February 2023, at 07:15

Languages

      This page is not available in other languages.

      Beta Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited 07:15, 20 February 2023 by Beta Wikipedia user CX Zoom Beta. Based on work by Beta Wikipedia anonymous user wikipedia:en>MSGJ.
      • 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