0
This template is used on 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 |PROJECT = |BANNER_NAME = {{subst:FULLPAGENAME}} |category={{{category|}}} |listas = {{{listas|}}} ... |HOOK_COLLAPSED = {{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 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}} ... }}