Module:WikiProject banner/auxiliary/doc
| This is a documentation subpage for Module:WikiProject banner/auxiliary. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
| This Lua module is used on approximately 4,550,000 pages, or roughly 7% of all pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| WikiProject banners |
|---|
| This module depends on the following other modules: |
| The features described below are non-standard and should probably not be added to a project banner without the express agreement of the WikiProject's participants. |
This module contains extra functions not frequently used by Module:WikiProject banner.
B-class checklist
[edit]Enables a B-class checklist. There are six official criteria (although some projects use five) that an article needs to satisfy in order to be classified as B-class. A checklist can provide a helpful aid for editors to show where an article needs improvement.
| Syntax |
|---|
{{#invoke:WikiProject banner|main
...
|b1={{{b1|}}}
|b2={{{b2|}}}
|b3={{{b3|}}}
|b4={{{b4|}}}
|b5={{{b5|}}}
|b6={{{b6|}}}
}}
|
Required parameters
[edit]- The six B-Class criteria:
b1,b2,b3,b4,b5,b6
Optional parameters
[edit]B_DISPLAY_ON_START– if set to "yes", the checklist will be displayed on every Start-class article. The default behaviour is to only display on Start-class when one or more of the parameters b1-b6 have been filled in.B_MAIN_CAT– specifies a category to use when any of the checklist parameters are blank.B1_CATtoB6_CAT– specifies individual categories to use when the individual checklist parameters are blank or set to no.
Custom parameter names
[edit]The standard parameter names (i.e. b1, b2, etc.) should be passed as an alternative to any custom parameters (e.g. B-Class-1, B-Class-2, etc.). For example:
b1={{{B-Class-1|{{{b1|}}}}}}
If only the standard parameters are used, then eg: b1={{{b1|}}}, etc. is fine.
Collapsing task forces
[edit]By default, the list of task forces will be collapsed into a show/hide box if there are more than 5 task forces. You can configure this behaviour with the following parameters:
TF_COLLAPSE– the threshold number of task forces for them to collapse, e.g. if|TF_COLLAPSE=3then they will collapse whenever there are more than 3 task forces.TF_HEADER– the heading for the collapsed section. The default is Associated task forces:
To-do list
[edit]This enables a project to-do list or other similar list to be integrated into a project banner.
| Syntax |
|---|
|TODO_LINK =
|TODO_TEXT =
|TODO_TITLE =
|TODO_EDITLINKS =
|
There are two main parameters, |TODO_LINK= and |TODO_TEXT=. Only one should be used at any time. If the to-do list is located on a different page then TODO_LINK should be used. However, if you've just got some text to include then you can use the TODO_TEXT option instead.
If you are using |TODO_LINK= and don't want to see the edit links at the top of the textbox, set TODO_EDITLINKS=no.
Example
[edit]{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|listas={{{listas|}}}
|NAME = The Tulip taskforce
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
|TODO_LINK = Template:To do/to do
|TODO_TITLE = WikiProject Tulips To-do
}}
|
- Produces:
| Tulips | |||||||||
| |||||||||
Quality/importance category intersection
[edit]This feature adds categories which combine quality and importance such as Category:Start-Class High-importance Kent-related articles. It has no visible output.
It takes the following parameters:
Required parameters
[edit]QII_FORMAT– the format of the category names. TheC,IandTare replaced by the class, importance and topic respectively. For example:I C T, e.g. Category:Mid-importance B-Class Geology articlesC T of I, e.g. Category:C-Class Andhra Pradesh articles of Low-importanceC I T, e.g. Category:B-Class High-importance Pornography articlesC, I T, e.g. Category:Stub-Class, Top-importance Economics articles
Optional parameters
[edit]QII_SUPPRESS_NA– can be set to yes to stop categories being added when either class or importance is "NA". These can also be set individually:QII_SUPPRESS_NA_CLASS– can be set to yes to stop categories being added when class=NAQII_SUPPRESS_NA_IMPORTANCE– can be set to yes to stop categories being added when importance=NA
QII_UNASSESSED_APPENDIX– text to append to the class when it is "Unassessed", e.g.|QII_UNASSESSED_APPENDIX=-Class
Image-needed note
[edit]| Syntax |
|---|
|image-needed={{{needs-image|}}}
|IM_IMAGE =
|image-details={{{details|}}}
|image-location={{{location|}}}
|IM_LOCATION_CATEGORY =
|image-topic={{{topic|}}}
|IM_TOPIC_CATEGORY =
|image-type={{{type|}}}
|
This feature adds a note than can be used to track when articles needs an image, photograph, diagram, illustration, etc. It will populate various categories such as
It takes the following parameters:
Required parameters
[edit]image-needed– pass through whichever parameter you are using to trigger this note, e.g.|image-needed={{{needs-image|}}}.
Optional parameters
[edit]IM_IMAGE– specifies the icon to be used (without the File namespace prefix); the default is
([[File:Camera-photo.svg|20px]]).image-type– pass through the type which can be used to accommodate other components that are needed, e.g. diagram, equation, map, etc. If this is not specified then "image or photograph" is used. E.g.|image-type={{{type|}}}.image-details– to allow an editor to pass more details about the required image, e.g.|image-details={{{details|}}}.image-location– pass this parameter through to allow an editor to specify the location of the requested image, e.g.|image-location={{{location|}}}. This will also populate categories of the form Category:Wikipedia requested photographs in Scotland.IM_LOCATION_CATEGORY– a default category to use when the location is not specified or leads to a non-existent category.image-topic– pass this through to allow an editor to specify a topic area that the photograph relates to, e.g.|image-topic={{{topic|}}}. This will populate categories such as Category:Wikipedia requested photographs of toys.IM_TOPIC_CATEGORY– a default category in case the topic is not specified or leads to a non-existent category, e.g.|IM_TOPIC_CATEGORY=Wikipedia requested images of politics.
Collaboration note
[edit]| Syntax |
|---|
|collaboration-candidate={{{**PARAMETER**|}}}
|collaboration-current={{{**PARAMETER**|}}}
|collaboration-past={{{**PARAMETER**|}}}
|COLL_LINK =
|COLL_TEXT =
|COLL_IMAGE =
|COLL_CANDIDATE_CAT =
|COLL_CURRENT_CAT =
|COLL_PAST_CAT =
|
This feature enables a project collaboration system to be integrated into a project banner. The following parameters are used:
Required parameters
[edit]collaboration-candidate– pass the parameter that will trigger the collaboration candidate note, if used, e.g.|collaboration-candidate={{{collaboration-candidate|}}}collaboration-current– the parameter that will trigger the current collaboration note, if used. E.g.|collaboration-current={{{collaboration|}}}collaboration-past– the parameter that will trigger the past collaboration note, if used. e.g.|collaboration-past={{{past-collaboration|}}}COLL_LINK– the full link to where the review for the particular article is held. E.g.|COLL_LINK=Wikipedia:WikiProject Paranormal/Collaboration
Optional parameters
[edit]COLL_TEXT– the text to display in place of the default "project collaboration", e.g.|COLL_TEXT=Collaboration of the MonthCOLL_IMAGE– the name of the image to use. If not specified then
is used.COLL_CANDIDATE_CAT– if defined, pages using|candidate=yeswill be categorised into this category, e.g.|COLL_CANDIDATE_CAT=Paranormal collaboration candidates→ Category:Paranormal collaboration candidatesCOLL_CURRENT_CAT– if defined, pages using|current=yeswill be categorised into this category, e.g.|COLL_CURRENT_CAT=Paranormal collaborations→ Category:Paranormal collaborationsCOLL_PAST_CAT– if defined, pages using|past=yeswill be categorised into this category, e.g.|COLL_PAST_CAT=Past paranormal collaborations→ Category:Past paranormal collaborations
A-class review note
[edit]| Syntax |
|---|
|a class={{{**PARAMETER**|}}}
|ACR_SUBPAGE_LINK =
|ACR_REVIEW_LINK =
|ACR_PASS_CAT =
|ACR_FAIL_CAT =
|ACR_CURRENT_CAT =
|ACR_PRELOAD =
|
This feature enables an A-Class review process to be integrated into a project banner. The following parameters are used:
Required parameters
[edit]a class– 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|}}}ACR_SUBPAGE_LINK– the full link to where the review for this particular article is held. Eg:Wikipedia:WikiProject Tulips/Assessment/{{SUBJECTPAGENAME}}ACR_REVIEW_LINK– the full link to the main A-Class review page (where instructions etc. are held). Eg:Wikipedia:WikiProject Tulips/Review#A-Class review
Optional parameters
[edit]ACR_PASS_CAT– 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 reviewACR_FAIL_CAT– 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 reviewACR_CURRENT_CAT– 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 reviewACR_IMAGE– a custom image can be set, using the same syntax as for other note images. Eg:Exquisite-kfind.pngACR_SIZE– a custom image size can be set, using the usual note syntax. Eg:20x20pxACR_INVALID_CAT– pages specifying the A Class parameter without a valid SUBPAGE_LINK page existing will be categorised into this category.ACR_PRELOAD– preload template, to be used when creating a new A-class review discussion page (example).
Peer review note
[edit]| Syntax |
|---|
|peer review={{{**PARAMETER**|}}}
|old peer review={{{**PARAMETER**|}}}
|peer review title={{{**PARAMETER**|}}}
|PR_LINK =
|PR_IMAGE =
|PR_CAT =
|PR_OLD_CAT =
|PR_INVALID_CAT =
|
This feature enables a peer review process to be integrated into a project banner. The following parameters are used:
Required parameters
[edit]peer review– the parameter that will trigger the active peer review note; should be passed through, e.g.|peer review={{{peer-review|}}}old peer review– the parameter that will trigger the old peer review note; should be passed through, e.g.|old peer review={{{old-peer-review|}}}PR_LINK– the full link to where the review for this particular article is held, e.g.|PR_LINK=Wikipedia:WikiProject Tulips/Assessment
Optional parameters
[edit]PR_IMAGE– the name of the image to use. If not specified then
is used.PR_CAT– if defined, pages using|peer review=yeswill be categorised into this category, e.g.|PR_CAT=Requests for Tulips peer review→ Category:Requests for Tulips peer reviewPR_OLD_CAT– if defined, pages using|old peer review=yeswill be categorised into this category.peer review title– If the page has been moved since it was reviewed, pass this parameter to specify the old page title (the one the review was archived under) to make the link point correctly to the review.PR_INVALID_CAT– if defined, pages without a valid existing peer review page will be categorised into this category.