跳至內容

模板:WPBannerMeta/hooks/aclass/doc

維基百科,自由的百科全書

啟用該鉤子可將甲級評審集成到專題橫幅。其應當掛載於|HOOK_NOTE=參數。鉤子參數如下:

  • a class(必須) – 通過參數觸發橫幅。可接受值為「pass」(入選),「fail」(敗選),「current」(評審中),不區分大小寫;其它值無效。
    Eg: a class={{{A-Class|}}}
  • category(必須) – 分類參數必須上層傳遞,以確保模板顯示正常。
    如:category={{{category|¬}}}
  • SUBPAGE_LINK(必須) – 評審特定頁面的完整連接。
    如:Wikipedia:WikiProject Tulips/Assessment/{{SUBJECTPAGENAME}}
  • REVIEW_LINK(必須) – 甲級評審頁面(評審說明頁等)的完整連接。
    Eg: Wikipedia:郁金香专题/评审#甲级评审
  • PASS_CAT – 若定義,則|a class=pass時頁面會歸類此分類。
  • FAIL_CAT – if defined, pages using |a class=fail will be categorised into this category. Eg: Failed requests for Tulips A-Class reviewCategory:Failed requests for Tulips A-Class review
  • CURRENT_CAT – if defined, pages using |a class=current will be categorised into this category. Eg: Current requests for Tulips A-Class reviewCategory:Current requests for Tulips A-Class review
  • IMAGE – a custom image can be set, using the same syntax as for other note images. Eg: Exquisite-kfind.png
  • SIZE – a custom image size can be set, using the usual note syntax. Eg: 20x20px
  • FORMAT – custom formatting can be set, using the usual syntax. Note that the default blue background will be overridden by anything you put in here. Eg: style="background:transparent;"
  • INVALID_CAT – if defined, pages specifying the A Class parameter without a valid SUBPAGE_LINK page existing be categorised into this category.