Template:WPBannerMeta/hooks/aclass/doc
此頁面是Template:WPBannerMeta/hooks/aclass的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
Syntax |
---|
{{WPBannerMeta |PROJECT = |BANNER_NAME = {{subst:FULLPAGENAME}} |small={{{small|}}} |category={{{category|¬}}} |listas = {{{listas|}}} ... |HOOK_NOTE = <!-- -->{{WPBannerMeta/hooks/aclass |BANNER_NAME = {{subst:FULLPAGENAME}} |a class={{{**PARAMETER**|}}} |category={{{category|¬}}} |SUBPAGE_LINK = |REVIEW_LINK = |PASS_CAT = |FAIL_CAT = |CURRENT_CAT = }} ... }} |
启用该钩子可将甲级评审集成到专题横幅。其应当挂载于|HOOK_NOTE=
参数。钩子参数如下:
a class
(必须) – 通过参数触发横幅。可接受值为“pass”(入选),“fail”(败选),“current”(评审中),不区分大小写;其它值无效。- Eg:
a class={{{A-Class|}}}
- Eg:
category
(必须) – 分类参数必须上层传递,以确保模板显示正常。- 如:
category={{{category|¬}}}
- 如:
SUBPAGE_LINK
(必须) – 评审特定页面的完整连接。- 如:
Wikipedia:WikiProject Tulips/Assessment/{{SUBJECTPAGENAME}}
- 如:
REVIEW_LINK
(必须) – 甲级评审页面(评审说明页等)的完整连接。- Eg:
Wikipedia:郁金香专题/评审#甲级评审
- Eg:
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 review
→ Category:Failed requests for Tulips A-Class reviewCURRENT_CAT
– if defined, pages using|a class=current
will be categorised into this category. Eg:Current requests for Tulips A-Class review
→ Category:Current requests for Tulips A-Class reviewIMAGE
– 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.