跳转到内容

Template: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.