模板:WPBannerMeta/hooks/aclass/doc
外觀
此頁面是Template:WPBannerMeta/hooks/aclass的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
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.