Module:WikiProject banner/doc: Difference between revisions

Content deleted Content added
m Typo fixing, replaced: featue → feature, assesments → assessments
 
(43 intermediate revisions by 11 users not shown)
Line 1:
{{Module rating|protected}}
{{Documentation subpage}}
{{Module:WikiProject banner/ related}}
{{highHigh-use|all-pages=yes}}
{{Uses TemplateStyles|TemplateModule:WPBannerMetaWikiProject banner/styles.css|Module:Message box/tmbox.css}}
{{Lua|Module:Arguments|Module:Check for unknown parameters|Module:Message box|Module:Pagetype|Module:Template parameter value|Module:WikiProject banner/config|Module:WikiProject banner/templatepage|Module:Wikitext Parsing|Module:Yesno|noprotcat=yes}}
{{#ifeq:{{NAMESPACE}}|Template|
{{luaSee also|Module:Banner shell|Template:WikiProject banner shell}}
 
}}
[[Module:WikiProject banner]] (and its primary wrapper [[Template:WPBannerMeta]]) can be used to create [[:Category:WikiProject banner templates|WikiProject banners]], enabling new projects to easily create a banner to place on article [[WP:TALK|talk pages]], ensuring standardisation between projects. A list of all WikiProject banners using this meta-template can be found [https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Module:WikiProject_banner&namespace=10&hidelinks=1&hideredirs=1&limit=250 here].
 
As this is a [[Wikipedia:Meta|meta]] template, it should not be transcluded directly on to talk pages when you want to tag a page. Instead, use the template provided by the WikiProject.
 
WikiProject banners are categorised into a subcategory of [[:Category:WikiProject banner templates]]. It is not necessary to include a category link in the documentation for each project banner. Any project banners with issues are automatically added to [[:Category:WikiProject banners with errors]].
 
==Syntax==
Line 18 ⟶ 20:
 
===Parameters===
{| class="wikitable" style="float:leftright; clear:both; background:transparent; width=100:40%;"
|
{| class="wikitable"
!Common parameters
|-
|<syntaxhighlight lang="wikitext" style="font-size: 100%; width=: 100%;">
{{#invoke:WikiProject banner|main
|PROJECT =
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|category={{{category|}}}
|listas={{{listas|}}}
|DOC = auto
Line 48 ⟶ 47:
</syntaxhighlight>
|}
|-
|
{| class="wikitable mw-collapsible mw-collapsed" style="background:transparent; width=100%;"
|-
!Full parameters
|-
|<syntaxhighlight lang="wikitext" style="font-size:100%; width=100%;">
{{#invoke:WikiProject banner|main
|PROJECT =
|BANNER_NAME = {{subst:FULLPAGENAME}}
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|category={{{category|}}}
|listas={{{listas|}}}
|PROJECT_LINK =
|DOC =
|IMAGE_LEFT =
|IMAGE_LEFT_SIZE =
|IMAGE_RIGHT =
|IMAGE_RIGHT_SIZE =
|QUALITY_SCALE =
<!--|class={{{class|}}}-->
<!--|auto={{{auto|}}}-->
|AUTO_ASSESS_CAT =
|b1={{{**PARAMETER**|{{{b1|}}}}}}
|b2={{{**PARAMETER**|{{{b2|}}}}}}
|b3={{{**PARAMETER**|{{{b3|}}}}}}
|b4={{{**PARAMETER**|{{{b4|}}}}}}
|b5={{{**PARAMETER**|{{{b5|}}}}}}
|b6={{{**PARAMETER**|{{{b6|}}}}}}
|IMPORTANCE_SCALE =
<!--|importance={{{importance|}}}-->
|ASSESSMENT_CAT =
|ASSESSMENT_LINK =
|MAIN_TEXT =
|MAIN_ARTICLE =
|PORTAL =
|MAIN_CAT =
<!--|attention={{{**PARAMETER**|}}}-->
|ATTENTION_CAT =
<!--|infobox={{{**PARAMETER**|}}}-->
|INFOBOX_CAT =
|note 1={{{**PARAMETER**|}}}
|NOTE_1_TEXT =
|NOTE_1_IMAGE =
|NOTE_1_CAT =
|note 2={{{**PARAMETER**|}}}
|NOTE_2_TEXT =
|NOTE_2_IMAGE =
|NOTE_2_CAT =
|NOTE_SIZE =
|COLLAPSED =
|COLLAPSED_HEAD =
|BOTTOM_TEXT =
|tf 1={{{**PARAMETER**|}}}
|TF_1_LINK =
|TF_1_NAME =
|TF_1_NESTED =
|TF_1_IMAGE =
|TF_1_TEXT =
|TF_1_QUALITY =
|tf 1 importance={{{**PARAMETER**|}}}
|TF_1_ASSESSMENT_CAT=
|TF_1_MAIN_CAT =
|tf 2={{{**PARAMETER**|}}}
|TF_2_LINK =
|TF_2_NAME =
|TF_2_NESTED =
|TF_2_IMAGE =
|TF_2_TEXT =
|TF_2_QUALITY =
|tf 2 importance={{{**PARAMETER**|}}}
|TF_2_ASSESSMENT_CAT=
|TF_2_MAIN_CAT =
|TF_SIZE =
|HOOK_NESTED =
|HOOK_ASSESS =
|HOOK_TF =
|HOOK_NOTE =
|HOOK_BOTTOM =
|HOOK_COLLAPSED =
|HOOK_IMPORTANCE =
}}
</syntaxhighlight>
|}
|}
{{clear}}
In the examples below, a WikiProject banner will be constructed for the (currently) nonexistent [[Wikipedia:WikiProject Tulips|WikiProject Tulips]].
 
Line 146 ⟶ 59:
**{{para|DOC|none}} &ndash; (or left blank) will not include any documentation.-->
*<code>'''substcheck'''</code> &ndash; this allows the template to detect if it has been substituted instead of transcluded and give an error message. '''''<syntaxhighlight lang="wikitext" inline>substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly></syntaxhighlight>'''''
*<code>'''category'''</code> ''(Required)'' &ndash; the 'category' parameter ''must'' be passed through the template to enable category optout. ''E.g.: '''<code><nowiki>category={{{category|}}}</nowiki></code>'''''.
*<code>'''listas'''</code> ''(Required)'' &ndash; the 'listas' parameter ''must'' be passed through the template. {{nowrap|''Eg: '''<code><nowiki>listas={{{listas|}}}</nowiki></code>'''''}}
*<code>'''IMAGE_LEFT'''</code> &ndash; the ___location of an image to use in the top-left corner of the banner. '''''Do not''''' include the "''File:''" prefix. Images used on WikiProject banners '''''must''''' be free images&nbsp;– [[WP:FU|fair use]] images are '''''not''''' permitted. {{nowrap|''Eg: '''<code>[[:File:Tulipa suaveolens floriade to Canberra.jpg|Tulipa suaveolens floriade to Canberra.jpg]]</code>'''''}}
Line 156 ⟶ 68:
*<code>'''PORTAL'''</code> &ndash; if the WikiProject maintains a [[WP:Portal|portal]], define this parameter with the portal name. The associated image is held centrally at [[Module:Portal/images]]. {{nowrap|''Eg: '''<code><nowiki>Tulips</nowiki></code>'''''}}
*<code>'''MAIN_CAT'''</code> &ndash; the default is ''no'' main category created; if defined, all pages displaying the template will be sorted into [[:Category:MAIN_CAT|Category:<code>MAIN_CAT</code>]]. {{nowrap|''Eg: '''<code><nowiki>WikiProject Tulips articles</nowiki></code>''' → [[:Category:WikiProject Tulips articles]]''}}
*<code>'''BOTTOM_TEXT'''</code> &ndash; if defined, contains text that will appear across the bottom of the banner and above the [[#Collapsed|collapsed section]] (if one is present). Please '''''do not''''' use this parameter to '[[hooking|hook]]' extra code to the bottom of the template &ndash; see the [[#Hooks|''hooks'']] section below for a better solution.
{{-}}
 
====Example====
{|style="background: none"; width=": 50%;"
|<syntaxhighlight lang="wikitext" style="font-size: 100%">
{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|category={{{category|}}}
|listas={{{listas|}}}
|PROJECT_LINK = Wikipedia:Somewhere about tulips
Line 174 ⟶ 85:
|}
:Produces:
{{#invoke:WikiProject banner|main
{{WPBannerMeta
|PROJECT = Tulips
|PROJECT_LINK = Wikipedia:Somewhere about tulips
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
|IMAGE_LEFT_SIZE = 50px
|MAIN_ARTICLE = [[tulip]]s, [[liliaceae]] and related articles
|category=no
Line 186 ⟶ 97:
Many projects use the [[Wikipedia:Content assessment]] schema to grade their articles by quality and the corresponding [[Wikipedia:Version 1.0 Editorial Team/Release Version Criteria#Importance of topic|importance scale]] to place their articles in order of priority. In order to implement [[WP:1.0]], which uses a bot to automatically compile its statistics tables, you will need to follow the instructions at {{nowrap|[[Wikipedia:Version 1.0 Editorial Team/Using the bot|/Using the bot]]}}, as well as those outlined here.
*<code>'''class'''</code> ''(Required)''&ndash; the class parameter must be passed through, if the quality scale is used. {{nowrap|''Eg: '''<code><nowiki>class={{{class|}}}</nowiki></code>'''''}}
**<code>'''QUALITY_SCALE'''</code> &ndash; configures the quality scale; possible options are:
***standard &ndash; enables the 'standard' quality scale ([[WP:FA|FA]], [[WP:ACLASS|A]], [[WP:GA|GA]], [[WP:BCLASS|B]], C, Start, [[WP:STUB|Stub]], [[WP:FL|FL]], List, NA). (This is the default behaviour, if the ''class'' parameter is used.)
***extended &ndash; enables the 'standard' quality scale plus some additional values (Category, Disambig, Draft, File, Portal, Project and Template).
***inline &ndash; allows for a simple custom quality scale to be used, generally used with {{tl|Class mask}}.
***subpage &ndash; allows for a more complex custom quality scale to be used using a subpage called ''/class''. See [[#Custom masks|custom masks]] below for further details.
**{{anchor|auto}}<code>'''auto'''</code> the auto parameter must be passed through, if the auto assess option is needed. {{nowrap|''Eg: '''<code><nowiki>auto={{{auto|}}}</nowiki></code>'''''}} Projects which use [[WP:BOT|bots]] to automatically categorise articles can have the bot add the following parameter to the project banner, which triggers the display of a small notice that the article was tagged by a bot rather than a human:
**:<code><nowiki>|auto=stub</nowiki></code>, for an article which includes a stub template, to indicate that it has automatically been rated Stub-class;
Line 196 ⟶ 102:
**:<code><nowiki>|auto=length</nowiki></code>, to show that the class has automatically been deduced from the length of the article.
***<code>'''AUTO_ASSESS_CAT'''</code>&nbsp;– if defined, all articles with the {{para|auto}} parameter will be categorised into [[:Category:AUTO_ASSESS_CAT|Category:<code>AUTO_ASSESS_CAT</code>]]. By default, they are categorised into [[:Category:Automatically assessed PROJECT articles|Category:Automatically assessed <code>PROJECT</code> articles]]. {{nowrap|''Eg: '''<code><nowiki>Automatically assessed Tulip and Daffodil articles</nowiki></code>''' → [[:Category:Automatically assessed Tulip and Daffodil articles]]''}}
**<code>'''b1'''</code>, <code>'''b2'''</code>, <code>'''b3'''</code>, <code>'''b4'''</code>, <code>'''b5'''</code>, <code>'''b6'''</code> &ndash; the six B-class criteria parameters should only be passed through if the [[Template:WPBannerMeta/hooks/bchecklist|B-class checklist hook]] is used.
*<code>'''importance'''</code>&ndash; if defined, enables the standard importance scale (Top, High, Mid, Low, NA, Unknown). {{nowrap|''Eg: '''<code><nowiki>importance={{{importance|}}}</nowiki></code>'''''}}
**<code>'''IMPORTANCE_SCALE'''</code> &ndash; configures the importance scale, if used. The possible options are:
Line 202 ⟶ 108:
***inline &ndash; allows for a simple custom importance scale to be defined, generally with {{tl|Importance mask}}.
***subpage &ndash; allows for a more complex custom importance scale to be used using a subpage called ''/importance''.
*<code>'''ASSESSMENT_LINK'''</code> &ndash; the link to a WikiProject-specific quality (and/or importance) scale. If there is a page at '''<code>"Wikipedia:WikiProject &lt;PROJECTLINK>/Assessment"</code>''' then this will be used by default. To override this, you can set this parameter to '''no'''. For more details, see [[Template:WPBannerMeta/Assessment link|here]].
*<code>'''ASSESSMENT_CAT'''</code> &ndash; articles are sorted into categories based on their quality; so [[WP:FA|"Featured Articles"]] on Tulips would be categorised by default into [[:Category:FA-Class Tulips articles]]. To change the default, define this parameter so that featured articles are instead categorised into [[:Category:FA-Class ASSESSMENT_CAT|Category:FA-Class {{code|ASSESSMENT_CAT}}]]. {{nowrap|''Eg: '''<code><nowiki>|ASSESSMENT_CAT=Liliaceae articles</nowiki></code>''' → [[:Category:FA-Class Liliaceae articles]]''}}
 
====Example====
{|style="background: none"; width=": 50%;"
|<syntaxhighlight lang="wikitext" style="font-size: 100%">
{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|category={{{category|}}}
|listas={{{listas|}}}
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
Line 222 ⟶ 127:
|}
:Produces:
{{#invoke:WikiProject banner|main
{{WPBannerMeta
|PROJECT = Tulips
|category=no
Line 234 ⟶ 139:
 
===Alerts and notes===
Built into WPBannerMetathe module is the ability to display a number of other fields that contain useful information about the article. There are also three predefined fields for:
# articles which have been [[WP:AUTOASSESS|automatically assessed]] by a bot (see [[#auto|above]]);
# articles in need of immediate attention;
Line 247 ⟶ 152:
**<code>'''NOTE_1_IMAGE'''</code> &ndash; an image can be defined for each note. Remember that all images '''''must''''' be free, not fair-use. {{nowrap|''Eg: '''<code><nowiki>Gnome-dev-camera.svg</nowiki></code>'''''}}
**<code>'''NOTE_1_CAT'''</code> &ndash; if defined, all articles displaying note 1 will be categorised into [[:Category:NOTE_1_CAT|Category:<code>NOTE_1_CAT</code>]]. {{nowrap|''Eg: '''<code><nowiki>Wikipedia requested photographs of Floridiae</nowiki></code>''' → [[:Category:Wikipedia requested photographs of Floridiae]]''}}
*<code id=Collapsed>'''COLLAPSED'''</code> &ndash; when more than a threshold number of notes and alerts are triggered on a page, they are automagically collapsed into a show/hide box. The threshold number can be customised by setting this parameter to the maximum number of notes on a page that will ''not'' trigger the collapse. The default is 2, so if three notes are triggered on a page, they will not be collapsed, but if a fourth is also triggered, the collapse box appears. So setting {{para|COLLAPSED|0}} will ''always'' create a collapse box (if there are any notes to fill it), while {{para|COLLAPSED|999}} will never trigger a collapse box. See also the [[Template:WPBannerMeta/hooks/notecounter|/notecounter hook]]. {{nowrap|''Eg: '''<code><nowiki>6</nowiki></code>'''''}}
**<code>'''COLLAPSED_HEAD'''</code> &ndash; the heading for the collapsed section; the default is ''More information:'' {{nowrap|''Eg: '''<code><nowiki>Additional information:</nowiki></code>'''''}}
*<code>'''NOTE_SIZE'''</code> &ndash; the size of the image used for the icons. (It is recommended to precede the size with "x" as this specifies the height of the image instead of the width, which results in a neater banner because all rows have equal height.) The default is a height of 25px. {{nowrap|''Eg: '''<code><nowiki>x30px</nowiki></code>'''''}}
 
====Example====
{|style="background: none"; width=": 50%;"
|<syntaxhighlight lang="wikitext" style="font-size: 100%">
{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|category={{{category|}}}
|listas={{{listas|}}}
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
Line 280 ⟶ 184:
|}
:Produces:
{{#invoke:WikiProject banner|main
{{WPBannerMeta
|PROJECT = Tulips
|category=no
Line 300 ⟶ 204:
 
===Task forces===
WPBannerMetaThe module can accommodate [[Wikipedia:WikiProject Council/Guide/Task forces|task forces]], each with its own image, links and importance scale, if desired. The following parameters are available:
*<code>'''tf 1'''</code> &ndash; this parameter ''must'' be passed through to enable and trigger the display of the task force section. {{nowrap|''Eg: '''<code><nowiki>tf 1={{{floridiae|}}}</nowiki></code>'''''}}
**<code>'''TF_1_LINK'''</code> &ndash; the full page name of the task force's project page. {{nowrap|''Eg: '''<code><nowiki>Wikipedia:WikiProject Tulips/Task forces/Floridiae</nowiki></code>'''''}}
**<code>'''TF_1_NAME'''</code> &ndash; the name of the task force. This is used as the label for the task force link (unless {{para|TF_1_TEXT}} is used instead). {{nowrap|''Eg: '''<code><nowiki>the Floridiae task force</nowiki></code>'''''}}
**<code>'''TF_1_NESTED'''</code> &ndash; if defined, a link of the form "'''/ <nowiki>[[{{{TF_1_LINK}}}|{{{TF_1_NESTED}}}]]</nowiki>'''" is added after the main project's name when the banner is collapsed inside a {{tl|WikiProject banner shell}}. {{nowrap|''Eg: '''<code><nowiki>Floridiae</nowiki></code>'''''}}
**<code>'''TF_1_TEXT'''</code> &ndash; if defined, replaces the default "This page is supported by..." text. ''E.g.:&nbsp;'''<code><nowiki>This page is within the scope of the [[Wikipedia:WikiProject Tulips/Task forces/Floridiae|Floridiae task force]]. New membersparticipants are always welcome!</nowiki></code>''''' If defined to be "none", then no output will be displayed, although appropriate categories will still be added.
**<code>'''TF_1_IMAGE'''</code> &ndash; an image can be defined for each task force. Remember that all images '''''must''''' be free, not fair-use. {{nowrap|''Eg: '''<code><nowiki>Tulipa florenskyi 4.jpg</nowiki></code>'''''}}
**<code>'''TF_1_QUALITY'''</code> &ndash; if defined, enables the quality categorisations for the main project (e.g.: [[:Category:FA-Class Tulips articles]]) to be duplicated for the task force. The class arising from {{para|class}} and {{para|QUALITY_SCALE}} will be used; {{nowrap|''Eg: '''<code><nowiki>yes</nowiki></code>'''''}}
Line 315 ⟶ 219:
 
====Example====
{|style="background: none"; width=": 50%;"
|<syntaxhighlight lang="wikitext" style="font-size: 100%">
{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|category={{{category|}}}
|listas={{{listas|}}}
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
Line 326 ⟶ 229:
|class={{{class|}}}
|tf 1={{{floridiae|}}}
|TF_1_LINK = Wikipedia:WikiprojectWikiProject Tulips/Task forces/Floridiae
|TF_1_NAME = the Floridiae task force
|TF_1_NESTED = Floridiae
Line 337 ⟶ 240:
|}
:Produces:
{{#invoke:WikiProject banner|main
{{WPBannerMeta
|PROJECT = Tulips
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
Line 343 ⟶ 246:
|class = FA
|tf 1 = yes
|TF_1_LINK = Wikipedia:WikiprojectWikiProject Tulips/Task forces/Floridiae
|TF_1_NAME = the Floridiae task force
|TF_1_NESTED = Floridiae
Line 353 ⟶ 256:
|category=no
}}
 
====Inactive task force====
If a task force has been deemed inactive, then the following parameter and text can be used:
 
|TF_{{red|''N''}}_TEXT = This _PAGETYPE_ is within the scope of the <nowiki>[[Wikipedia:WikiProject</nowiki> {{red|(name of project)}}/{{red|(name of task force)}}|{{red|(name of task force)}}]], a task force which is currently considered to be <nowiki>'''[[Wikipedia:WikiProject Council/Guide#Dealing with inactive WikiProjects|inactive]]'''</nowiki>.
 
:where "{{red|''N''}}{{thin space}}" is the number of the task force, and the project and task force names are included where indicated.
 
==Advanced features==
{{warning|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 membersparticipants.}}
 
=== B-class checklist ===
Enables a B-class checklist. There are [[WP:BCLASS|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. When used in conjunction with a custom class mask, articles can be automatically demoted to C-class if they don't satisfy all of the criteria.
{|class="wikitable mw-collapsible mw-collapsed" style="float: right;" width=: 40%;"
!Syntax
|-
|<syntaxhighlight lang="wikitext">
|<pre style="font-size:90%">
{{#invoke:WikiProject banner|main
{{WPBannerMeta
...
 
Line 373 ⟶ 283:
|b6={{{b6|}}}
}}
</syntaxhighlight>
</pre>
|}
 
Line 397 ⟶ 307:
=== To-do list ===
This enables a project to-do list or other similar list to be integrated into a project banner.
{|class="wikitable mw-collapsible mw-collapsed" style="float: right;" width=: 40%;"
!Syntax
|-
Line 404 ⟶ 314:
|TODO_TEXT =
|TODO_TITLE =
|TODO_STYLE =
|TODO_TITLE_STYLE=
|TODO_EDITLINKS =
</syntaxhighlight>
|}
There are two main parameters, {{para|TODO_LINK}} and {{para|TODO_TEXT}}. Only one should be used at any time. If the to-do list is located on a different page then <code>TODO_LINK</code> should be used. However, if you've just got some text to include then you can use the <code>TODO_TEXT</code> option instead.
 
Styling can be adjusted using the {{para|TODO_STYLE}} and {{para|TODO_TITLE_STYLE}} parameters.
 
If you are using {{para|TODO_LINK}} and don't want to see the edit links at the top of the textbox, set <code>TODO_EDITLINKS=no</code>.
 
====Example====
{|style="background: none"; width=": 50%;"
|<syntaxhighlight lang="wikitext">
{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|category={{{category|}}}
|listas={{{listas|}}}
|NAME = The Tulip taskforce
Line 458 ⟶ 363:
 
=== Image-needed note ===
{|class="wikitable mw-collapsible mw-collapsed" alignstyle="align: right"; width=": 40%;"
!Syntax
|-
Line 479 ⟶ 384:
 
==== Optional parameters ====
* <code>'''IM_IMAGE'''</code> &ndash; specifies the icon to be used (without the File namespace prefix); the default is [[File:Camera-photo.svg|20px]] (<code><nowiki>[[File:Camera-photo.svg|20px]]</nowiki></code>).
* <code>'''image-type'''</code> &ndash; 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. {{para|image-type|<nowiki>{{{type|}}}</nowiki>}}.
* <code>'''image-details'''</code> &ndash; to allow an editor to pass more details about the required image, e.g. {{para|image-details|<nowiki>{{{details|}}}</nowiki>}}.
Line 488 ⟶ 393:
 
=== Collaboration note ===
{|class="wikitable mw-collapsible mw-collapsed" style="float: right;" width=: 40%;"
!Syntax
|-
|<syntaxhighlight lang="wikitext">
|<pre style="font-size:90%">
|collaboration-candidate={{{**PARAMETER**|}}}
|collaboration-current={{{**PARAMETER**|}}}
Line 501 ⟶ 406:
|COLL_CURRENT_CAT =
|COLL_PAST_CAT =
</syntaxhighlight>
</pre>
|}
This featuefeature enables a project collaboration system to be integrated into a project banner. The following parameters are used:
 
==== Required parameters ====
Line 519 ⟶ 424:
 
=== A-class review note ===
{|class="wikitable mw-collapsible mw-collapsed" style="float: right;" width=: 40%;"
!Syntax
|-
|<syntaxhighlight lang="wikitext">
|<pre style="font-size:90%">
|a class={{{**PARAMETER**|}}}
|category={{{category|}}}
|ACR_SUBPAGE_LINK =
|ACR_REVIEW_LINK =
Line 530 ⟶ 434:
|ACR_FAIL_CAT =
|ACR_CURRENT_CAT =
|ACR_PRELOAD =
</pre>
</syntaxhighlight>
|}
This feature enables an A-Class review process to be integrated into a project banner. The following parameters are used:
Line 546 ⟶ 451:
*<code>'''ACR_SIZE'''</code> &ndash; a custom image size can be set, using the usual note syntax. {{nowrap|''Eg: '''<code><nowiki>20x20px</nowiki></code>''' ''}}
*<code>'''ACR_INVALID_CAT'''</code> &ndash; pages specifying the A Class parameter without a valid SUBPAGE_LINK page existing will be categorised into this category.
*<code>'''ACR_PRELOAD'''</code> &ndash; preload template, to be used when creating a new A-class review discussion page ([[Wikipedia:WikiProject Military history/Review/A-Class review preload boilerplate|example]]).
 
=== Additional task force categories ===
Line 551 ⟶ 457:
 
This can be achieved by using the following code:
{|style="background: none"; width=": 50%;"
|<syntaxhighlight lang="wikitext">
{{#invoke:WikiProject banner|main
Line 567 ⟶ 473:
 
=== Peer review note ===
{|class="wikitable mw-collapsible mw-collapsed" alignstyle="align: right"; width=": 40%;"
!Syntax
|-
Line 590 ⟶ 496:
==== Optional parameters ====
*<code>'''PR_IMAGE'''</code> &ndash; the name of the image to use. If not specified then [[File:Exquisite-kfind.png|30px]] is used.
*<code>'''PR_CAT'''</code> &ndash; if defined, pages using {{para|peer review|yes}} will be categorised into this category, e.g. {{para|PR_CAT|Requests for Tulips peer review}} → [[:Category:Requests for Tulips peer review]]''}}
*<code>'''PR_OLD_CAT'''</code> &ndash; if defined, pages using {{para|old peer review|yes}} will be categorised into this category.
*<code>'''peer review title'''</code> &ndash; 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.
*<code>'''PR_INVALID_CAT'''</code> &ndash; if defined, pages without a valid existing peer review page will be categorised into this category.
 
=== Other hooks===
{{selfref|For further details, see: [[Template:WPBannerMeta/hooks]]}}
WPBannerMeta incorporates a number of '[[hooking|hooks]]' where advanced or customised features can be added. These should take the form of a subtemplate passed to the relevant hook parameter. Any relevant parameters should then be passed to the hook template &ndash; it may be necessary to repeat parameters that are already passed to the main template ({{para|category|<nowiki>{{{category|}}}</nowiki>}} and {{para|class|<nowiki>{{{class|}}}</nowiki>}} are commonly used). If you write a hook that you think other projects could use, please copy or move it to a subpage of [[Template:WPBannerMeta/hooks]] and add it to the list on that page.
 
===Custom masks===
{{selfref|For further details, see: [[Template:Class mask/doc]]}}
WPBannerMetaThe module uses a [[mask (computing)|mask]] to normalise the values given to the {{para|class}} parameter, to ensure that invalid inputs are discarded (e.g. {{para|class|cheesecake}}) and that equivalent inputs appear the same (e.g. {{para|class|FA}} and {{para|class|fA}}). This mask effectively controls which extended assessment scale values are accepted by the template (e.g. "Template-Class", "Redirect-Class", etc.). Projects which want to use more obscure assessment classes (e.g. "Future-Class", "Bplus-Class", etc.) or to ''not'' use all of the standard classes (e.g. not using "C-Class") can define their own custom mask, which will override WPBannerMeta'sthe default. To achieve this, create the mask template in the /class subpage of your project banner template and set {{para|QUALITY_CRITERIA|custom}}. Note that this will remove the project from [[WP:PIQA|project-independent quality assessments]], and so no assessments will be inherited from other projects.
 
== Inactive WikiProject banners ==
==Other details==
A number of WikiProjects have been identified as ''inactive'' or ''defunct'' (see {{cl|Inactive WikiProjects}}). In this case, the project banner can be given a less prominent form. Keeping an inactive project's template on relevant talkpages helps any group of users who later wishes to revive the project. This template will auto-categorize the project banner into {{cl|Inactive WikiProject banners}}.
This meta-template ''automatically'' categorises all instances (i.e. specific project banners) into a subcategory of [[:Category:WikiProject banner templates]]. It is not necessary to include a category link in the documentation for each project banner. Any project banners with errors are automatically added to [[:Category:WikiProject banners with formatting errors]].
 
The easiest way to convert a banner template to an inactive state, is to replace '''main''' with '''inactive'''.
 
===Parameters===
* The only required parameter is {{para|PROJECT}} - the name of the WikiProject (but without the word "WikiProject")
* An additional parameter {{para|PROJECT_STATUS}} can be used to identify the status of the inactive project. Currently recognised values are ''inactive'' and ''defunct''. The default is inactive.
* All the other parameters can and should be retained, as this will make it easier to "revive" the project in the future.
 
==Examples==
<syntaxhighlight lang="wikitext">{{#invoke:WikiProject banner|inactive
|PROJECT = Extreme sports
}}</syntaxhighlight>
:produces:
{{#invoke:WikiProject banner|inactive|PROJECT=Extreme sports|category=no}}
:When inside a banner shell the result is:
{{WikiProject banner shell|
{{#invoke:WikiProject banner|inactive|PROJECT=Extreme sports|category=no}}
}}
 
<syntaxhighlight lang="wikitext">{{#invoke:WikiProject banner|inactive
|PROJECT = Policy and Guidelines
|PROJECT_STATUS = defunct
}}</syntaxhighlight>
:produces:
{{#invoke:WikiProject banner|inactive|PROJECT=Policy and Guidelines|PROJECT_STATUS=defunct|category=no}}
:When inside a banner shell the result is:
{{WikiProject banner shell|
{{#invoke:WikiProject banner|inactive|PROJECT=Policy and Guidelines|PROJECT_STATUS=defunct|category=no}}
}}
 
==See also==
* {{tl|B}} &ndash; convenience tool for frequent users of {{tl|WPBannerMeta}}'s <code>B_CHECKLIST</code> and <code>b1</code> through <code>b6</code> features
* {{tl|Inactive WikiProject banner}} – for use if a WikiProject becomes inactive or defunct
* {{tl|WikiProject banner shell}} – template to combine multiple WikiProject Banners
* {{tl|WPBannerDoc}} – convenience template that generates standardised parameter documentation for use on the /doc page
Line 618 ⟶ 546:
{{Wikipedia templates}}
<includeonly>{{Sandbox other||
[[Category:Pages related to the WikiProject meta banner|*]]
[[Category:WikiProject banner templates|*]]
[[Category:WikipediaTemplate metatemplatesmetamodules]]
[[Category:Pages related to the WikiProject meta banner|*]]
 
}}</includeonly>