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

  • Template
  • Discussion
  • Language
  • Watch
  • Edit
< Template:WPBannerMeta | hooks
Template documentation[view] [edit] [history] [purge]
Syntax
{{WPBannerMeta
|HOOK_NOTE           = {{WPBannerMeta/hooks/notes
|category={{{category|}}}
|BANNER_NAME={{subst:FULLPAGENAME}}
|NOTE_SIZE             =
|note 1={{{**PARAMETER**|}}}
 |NOTE_1_TEXT          = 
 |NOTE_1_IMAGE         = 
  |NOTE_1_SIZE         = 
 |NOTE_1_CAT           = 
 |NOTE_1_FORMAT        = 
|note 2={{{**PARAMETER**|}}}
 |NOTE_2_TEXT          = 
 |NOTE_2_IMAGE         = 
  |NOTE_2_SIZE         = 
 |NOTE_2_CAT           = 
 |NOTE_2_FORMAT        = 
|note 3={{{**PARAMETER**|}}}
 |NOTE_3_TEXT          = 
 |NOTE_3_IMAGE         = 
  |NOTE_3_SIZE         = 
 |NOTE_3_CAT           = 
 |NOTE_3_FORMAT        = 
|note 4={{{**PARAMETER**|}}}
 |NOTE_4_TEXT          = 
 |NOTE_4_IMAGE         = 
  |NOTE_4_SIZE         = 
 |NOTE_4_CAT           = 
 |NOTE_4_FORMAT        = 
|note 5={{{**PARAMETER**|}}}
 |NOTE_5_TEXT          = 
 |NOTE_5_IMAGE         = 
  |NOTE_5_SIZE         = 
 |NOTE_5_CAT           = 
 |NOTE_5_FORMAT        = 
|note 6={{{**PARAMETER**|}}}
 |NOTE_6_TEXT          = 
 |NOTE_6_IMAGE         = 
  |NOTE_6_SIZE         = 
 |NOTE_6_CAT           = 
 |NOTE_6_FORMAT        = 
|note 7={{{**PARAMETER**|}}}
 |NOTE_7_TEXT          = 
 |NOTE_7_IMAGE         = 
  |NOTE_7_SIZE         = 
 |NOTE_7_CAT           = 
 |NOTE_7_FORMAT        = 
|note 8={{{**PARAMETER**|}}}
 |NOTE_8_TEXT          = 
 |NOTE_8_IMAGE         = 
  |NOTE_8_SIZE         = 
 |NOTE_8_CAT           = 
 |NOTE_8_FORMAT        = 
|note 9={{{**PARAMETER**|}}}
 |NOTE_9_TEXT          = 
 |NOTE_9_IMAGE         = 
  |NOTE_9_SIZE         = 
 |NOTE_9_CAT           = 
 |NOTE_9_FORMAT        = 
|note 10={{{**PARAMETER**|}}}
 |NOTE_10_TEXT          = 
 |NOTE_10_IMAGE         = 
  |NOTE_10_SIZE         = 
 |NOTE_10_CAT           = 
 |NOTE_10_FORMAT        = 
}}

This hook will add up 10 additional notes. It should be attached to the |HOOK_NOTE= parameter in conjunction with the /notecounter hook. The syntax is:

  • note 1– pass this parameter through to trigger any defined note. Eg: note 1={{{needs-photo|}}}, then by including |needs-photo=yes on the talk page. Up to ten notes can be specified in the hook.
    • NOTE_1_TEXT – the text of note 1. E.g.: This page has been marked as needing a photograph. If this is left blank there is no visual output.
    • NOTE_1_IMAGE – an image can be defined for each note. Remember that all images must be free, not fair-use. Eg: Gnome-dev-camera.svg
    • NOTE_1_SIZE – the size of the image
    • NOTE_1_FORMAT – optional formatting (colour, etc.) for the table cell which contains the image, if any, for the note. Eg: style="background:blue"
    • NOTE_1_CAT – if defined, all articles displaying note 1 will be categorised into Category:NOTE_1_CAT. Eg: Wikipedia requested photographs of Floridiae → Category:Wikipedia requested photographs of Floridiae
  • NOTE_SIZE – a default size to use for all 10 notes (unless individually specified). If this is not specified then x25px is used.
The above documentation is transcluded from Template:WPBannerMeta/hooks/notes/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/notes&oldid=574653"
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