Templat:WPBannerMeta/hooks

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

WPBannerMeta menggabungkan sejumlah 'hooks', dimana dapat menggabungkan beberapa fitur. Hook akan mengambil subtemplat yang relevan dengan parameter hook. Parameter yang relevan akan diteruskan ke templat hook—mungkin mengulangi parameter yang sudah tersedia di templat utama (misalnya: yang sering digunakan, |category={{{category|¬}}} dan |class={{{class|}}}).

Parameter hook yang tersedia[sunting sumber]

  • |HOOK_ASSESS= – diantara kode penilaian kualitas dan kepentingan.
  • |HOOK_BOTTOM= – tepat dibawah komentar, berdekatan dengan |BOTTOM_TEXT=.
  • |HOOK_NOTE= – setelah kode terakhir 'note'.
  • |HOOK_COLLAPSED= – added to the 'counter' that counts the number of notes that have been triggered on a page, to prompt the collapsible box. Accepts either
    • any valid input to the #expr ParserFunction.
    • "auto", which automatically sets to 1 if HOOK_NOTE is non-empty and 0 otherwise. This is the default setting and is suitable if HOOK_NOTE will not normally produce more than one row of output.
  • |HOOK_IMPORTANCE= – between the importance assessment and the autoassess notice.
  • |HOOK_NESTED= – after the taskforce list that is displayed when the banner is nested within a {{WikiProjectBannerShell}}.
  • |HOOK_TF= – after the taskforce code (just above the code for |attention=).

Existing hooks[sunting sumber]

  • /aclass – enables an A-Class review process to be integrated into the banner.
  • /article todolist – allows for easy adding of a article specific to-do list (hooks to |HOOK_BOTTOM=).
  • /bchecklist – enables a B-class checklist
  • /cats – add categories based on parameters with proper optout, case insensitivity, etc.
  • /collaboration – enables integration of project collaboration into the banner.
  • /collapsed – enables adding another collapsed section.
  • /image needed – adds an alert that an image is requested for the article.
  • /notecounter – allows notes, etc. added in HOOK_NOTE to contribute towards the counter that triggers the notes being collapsed.
  • /notes – provides ten additional notes. Hooks to |HOOK_NOTE=.
  • /peerreview – enables peer review functions.
  • /qualimpintersect – allows for quality and importance category intersection.
  • /qualitycats – enables categorisation with an additional quality scale.
  • /taskforces – provides ten additional taskforces (hooks to |HOOK_TF=).
  • /tfnested – nested summaries for ten additional taskforces. Works with /taskforces above. Hooks to |HOOK_NESTED=.
  • /todolist – allows for easy adding of a project wide to-do list (hooks to |HOOK_BOTTOM=).