![]() | This is a documentation subpage for Template:WPBannerMeta/hooks/notes. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 34,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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 imageNOTE_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.