الگو: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 =
}}
...
}}
|
This hook enables an A-Class review process to be integrated into a project banner. It should be attached to the |HOOK_NOTE= hook. The following parameters are used:
a class(Required) – the parameter that will trigger the note. Accepted values are "pass", "fail", "current" (any capitalisation); everything else is treated as null. Eg:a class={{{A-Class|}}}category(Required) – the 'category' parameter must be passed through the template to enable category optout. Eg:category={{{category|¬}}}SUBPAGE_LINK(Required) – the full link to where the review for this particular article is held. Eg:Wikipedia:WikiProject Tulips/Assessment/{{SUBJECTPAGENAME}}REVIEW_LINK(Required) – the full link to the main A-Class review page (where instructions etc. are held). Eg:Wikipedia:WikiProject Tulips/Review#A-Class reviewPASS_CAT– if defined, pages using|a class=passwill be categorised into this category. Eg:Successful requests for Tulips A-Class review→ Category:Successful requests for Tulips A-Class reviewFAIL_CAT– if defined, pages using|a class=failwill 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=currentwill 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.pngSIZE– a custom image size can be set, using the usual note syntax. Eg:20x20pxFORMAT– 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.