Template:WPBannerMeta/hooks/notecounter/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

This hook allows notes added in other hooks (/notes, etc.) to contribute towards the counter that triggers the notes being collapsed into a show/hide box when they become too numerous. Each parameter should be set to one of the trigger parameters for a hooked note.

This hook cannot be 'stacked' in the usual way. Normally, you can 'stack' hook templates:

|HOOK_NOTE              = <!--
-->{{WPBannerMeta/hooks/notes
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}{{WPBannerMeta/hooks/notes
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}{{WPBannerMeta/hooks/notes
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}

This does not work with this particular hook. You need to concatenate the hook templates with an addition sign +:

|HOOK_COLLAPSED         = {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}} + {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}} + {{WPBannerMeta/hooks/notecounter
 |category = {{{category|¬}}}
 |BANNER_NAME={{subst:FULLPAGENAME}}
...
}}