Template:WPBannerMeta

From Wikibooks, open books for an open world
Jump to: navigation, search
[[Wikibooks:WikiProject {{{PROJECT}}}|WikiProject {{{PROJECT}}}]]
This page is within the scope of [[Wikibooks:WikiProject {{{PROJECT}}}|WikiProject {{{PROJECT}}}]], a collaborative effort to improve the coverage of pages on Wikibooks. If you would like to participate, please visit the project page, where you can join the [[|discussion]] and see a list of open tasks.
 
Template documentation[edit] [history] [purge]

WPBannerMeta is a meta-template, which can be used to create WikiProject banners, enabling new projects to easily create a banner to place on book talk pages, ensuring standardization between projects. A list of all WikiProject banners using this meta-template can be found at What links here: WPBannerMeta

Syntax

Common parameters
{{WPBannerMeta
|PROJECT              = 
 |BANNER_NAME         = {{subst:FULLPAGENAME}}
 |substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 |small               = {{{small|}}}
 |category            = {{{category|}}}
 |listas              = {{{listas|}}}
|IMAGE_LEFT           = 
 |IMAGE_LEFT_SMALL    = 
 |IMAGE_LEFT_LARGE    = 
|QUALITY_SCALE        = 
 |quality             = {{{quality|}}}
|PRIORITY_SCALE       =
 |priority            = {{{priority|}}}
|ASSESSMENT_CAT       = 
|ASSESSMENT_LINK      = 
|MAIN_TEXT            = 
|SUBJECT              = 
|attention            = {{{attention|}}}
 |ATTENTION_CAT       = 
|infobox              = {{{needs-infobox|}}}
 |INFOBOX_CAT         = 
}}<noinclude>
{{Documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>
Full parameters
{{WPBannerMeta
|PROJECT              = 
 |BANNER_NAME         = {{subst:FULLPAGENAME}}
 |substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 |small               = {{{small|}}}
 |category            = {{{category|}}}
 |listas              = {{{listas|}}}
|PROJECT_LINK         =
|IMAGE_LEFT           = 
 |IMAGE_LEFT_SMALL    = 
 |IMAGE_LEFT_LARGE    = 
|IMAGE_RIGHT          = 
 |IMAGE_RIGHT_SMALL   = 
 |IMAGE_RIGHT_LARGE   = 
|QUALITY_SCALE        = 
 |quality             = {{{quality|}}}
|PRIORITY_SCALE       =
 |priority            = {{{priority|}}}
|ASSESSMENT_CAT       = 
|ASSESSMENT_LINK      = 
|MAIN_TEXT            = 
|MAIN_BOOK            = 
|SUBJECT              = 
|MAIN_CAT             = 
|attention            = {{{**PARAMETER**|}}}
 |ATTENTION_CAT       = 
|infobox              = {{{**PARAMETER**|}}}
 |INFOBOX_CAT         = 
|note 1               = {{{**PARAMETER**|}}}
 |NOTE_1_TEXT         = 
 |NOTE_1_IMAGE        = 
 |NOTE_1_CAT          = 
 |NOTE_1_FORMAT       = 
|note 2               = {{{**PARAMETER**|}}}
 |NOTE_2_TEXT         = 
 |NOTE_2_IMAGE        = 
 |NOTE_2_CAT          = 
 |NOTE_2_FORMAT       = 
|note 3               = {{{**PARAMETER**|}}}
 |NOTE_3_TEXT         = 
 |NOTE_3_IMAGE        = 
 |NOTE_3_CAT          = 
 |NOTE_3_FORMAT       = 
|note 4               = {{{**PARAMETER**|}}}
 |NOTE_4_TEXT         = 
 |NOTE_4_IMAGE        = 
 |NOTE_4_CAT          = 
 |NOTE_4_FORMAT       = 
|note 5               = {{{**PARAMETER**|}}}
 |NOTE_5_TEXT         = 
 |NOTE_5_IMAGE        = 
 |NOTE_5_CAT          = 
 |NOTE_5_FORMAT       = 
|note 6               = {{{**PARAMETER**|}}}
 |NOTE_6_TEXT         = 
 |NOTE_6_IMAGE        = 
 |NOTE_6_CAT          = 
 |NOTE_6_FORMAT       = 
|note 7               = {{{**PARAMETER**|}}}
 |NOTE_7_TEXT         = 
 |NOTE_7_IMAGE        = 
 |NOTE_7_CAT          = 
 |NOTE_7_FORMAT       = 
|note 8               = {{{**PARAMETER**|}}}
 |NOTE_8_TEXT         = 
 |NOTE_8_IMAGE        = 
 |NOTE_8_CAT          = 
 |NOTE_8_FORMAT       = 
|note 9               = {{{**PARAMETER**|}}}
 |NOTE_9_TEXT         = 
 |NOTE_9_IMAGE        = 
 |NOTE_9_CAT          = 
 |NOTE_9_FORMAT       = 
|note 10              = {{{**PARAMETER**|}}}
 |NOTE_10_TEXT        = 
 |NOTE_10_IMAGE       = 
 |NOTE_10_CAT         = 
 |NOTE_10_FORMAT      = 
|NOTE_SIZE            = 
|COLLAPSED            = 
|COLLAPSED_HEAD       = 
|COMMENTS             = 
 |COMMENTS_CAT        = 
|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 priority       = {{{**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 priority       = {{{**PARAMETER**|}}}
 |TF_2_ASSESSMENT_CAT = 
 |TF_2_MAIN_CAT       = 
|tf 3                 = {{{**PARAMETER**|}}}
 |TF_3_LINK           = 
 |TF_3_NAME           = 
 |TF_3_NESTED         = 
 |TF_3_IMAGE          = 
 |TF_3_TEXT           = 
 |TF_3_QUALITY        = 
 |tf 3 priority       = {{{**PARAMETER**|}}}
 |TF_3_ASSESSMENT_CAT = 
 |TF_3_MAIN_CAT       = 
|tf 4                 = {{{**PARAMETER**|}}}
 |TF_4_LINK           = 
 |TF_4_NAME           = 
 |TF_4_NESTED         = 
 |TF_4_IMAGE          = 
 |TF_4_TEXT           = 
 |TF_4_QUALITY        = 
 |tf 4 priority       = {{{**PARAMETER**|}}}
 |TF_4_ASSESSMENT_CAT = 
 |TF_4_MAIN_CAT       = 
|tf 5                 = {{{**PARAMETER**|}}}
 |TF_5_LINK           = 
 |TF_5_NAME           = 
 |TF_5_NESTED         = 
 |TF_5_IMAGE          = 
 |TF_5_TEXT           = 
 |TF_5_QUALITY        = 
 |tf 5 priority     = {{{**PARAMETER**|}}}
 |TF_5_ASSESSMENT_CAT = 
 |TF_5_MAIN_CAT       = 
|TF_SIZE              = 
|HOOK_NESTED          = 
|HOOK_ASSESS          = 
|HOOK_TF              = 
|HOOK_NOTE            = 
|HOOK_BOTTOM          = 
|HOOK_COLLAPSED       = 
|HOOK_PRIORITY        = 
}}<noinclude>
{{Documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>

WPBannerMeta can be used at varying levels of complexity, from the very simple to the extremely complicated. Simple options are listed here first, with complexity increasing down the page.

WPBannerMeta takes two different types of parameters, formatting and display. The formatting parameters customise the meta-template for a particular project, defining link targets, categories, images and text. All formatting parameters use UPPERCASE and underscores (_), instead of spaces (eg. |PROJECT= and |NOTE_1_CAT= ). Display parameters customize the template output for each individual page that the banner is displayed on. These are the parameters which are entered on the talk page (|quality=, |priority=, etc.) and they must be 'passed through' the project banner to the meta-template underneath. To 'pass' the parameter foo, you need to include the code foo={{{foo|}}}.

In the examples below, a WikiProject banner will be constructed for the WikiProject Languages.

Simple options

  • PROJECT (Required) – the name of the project without the word "WikiProject", used in a variety of contexts; first letter should usually be capitalized. Eg: Tulips
    • substcheck – this allows the template to detect if it has been substituted instead of transcluded and give an error message. substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
    • small (Required) – the size parameter must be passed through the template to enable the correct display. Eg: small={{{small|}}}
    • category (Required) – the 'category' parameter must be passed through the template to enable category optout. Eg: category={{{category|}}}.
    • listas (Required) – the 'listas' parameter must be passed through the template. Eg: listas={{{listas|}}}
    • BANNER_NAME={{subst:FULLPAGENAME}} (Required) – the full page name of the banner. Eg: Template:WikiProject Languages
  • PROJECT_LINK – it is assumed that the project is located at "Wikibooks:WikiProject <PROJECT>". If this is not the case, then define the full link to the project page in this parameter. Eg: Wikibooks:WikiProject Languages
  • IMAGE_LEFT – 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 – fair use images are not permitted. Eg: Globe of letters.svg
    • IMAGE_LEFT_SMALL – the size of IMAGE_LEFT, when the banner is displayed in 'small style'. Default is 40px. Eg: 25px
    • IMAGE_LEFT_LARGE – the size of IMAGE_LEFT in normal display. Default is 80px. Eg: 50px
  • IMAGE_RIGHT – the location of an image to use in the top-right corner of the banner. Do not include the "File:" prefix. Images used on WikiProject banners must be free images – fair use images are not permitted. Eg: Globe of letters.svg
    • IMAGE_RIGHT_SMALL – the size of IMAGE_RIGHT, when the banner is displayed in 'small style'. Default is 40px. Eg: 25px
    • IMAGE_RIGHT_LARGE – the size of IMAGE_RIGHT in normal display. Default is 80px. Eg: 50px
  • MAIN_TEXT – the default text is "This page is within the scope of [[WikiProject {{{PROJECT_LINK}}}]], a collaborative effort to improve the coverage of {{{SUBJECT or MAIN_BOOK}}} books on Wikibooks. If you would like to participate, please visit the project page, where you can join the [[Talk:{{{PROJECT_LINK}}}]] discussion and see a list of open tasks." If defined, the alternate message will be displayed.
    • MAIN_BOOK – the default above is SUBJECT; alternatively, the linked page can be changed to either a raw book title or more complicated text. Eg: (default) Languages"...the coverage of languages on Wikibooks..." or (alternate) [[Subject:Languages|language pages]]"...the coverage of language pages on Wikibooks..."
  • SUBJECT – if the WikiProject maintains a subject page, define this parameter with the subject name. Eg: Languages
  • MAIN_CAT – the default is no main category created; if defined, all pages displaying the template will be sorted into Category:MAIN_CAT. Eg: WikiProject Languages pages → Category:WikiProject Languages pages
  • BOTTOM_TEXT – if defined, contains text that will appear across the bottom of the banner and above the collapsed section (if one is present). Please do not use this parameter to 'hook' extra code to the bottom of the template – see the hooks section below for a better solution.


Example
{{WPBannerMeta
|PROJECT             = Languages
 |BANNER_NAME        = Template:WikiProject Languages
 |substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 |small              = {{{small|}}}
 |category           = {{{category|}}}
 |listas             = {{{listas|}}}
|IMAGE_LEFT          = Globe of letters.svg
 |IMAGE_LEFT_SMALL   = 
 |IMAGE_LEFT_LARGE   = 55px
|SUBJECT             = Languages
}}
Produces
WikiProject Languages
WikiProject icon This page is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages on Wikibooks. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 

Assessment

Many projects use an assessment schema to grade their pages by quality and a corresponding priority scale to place their pages in order of priority.

  • quality (Required)– the quality parameter must be passed through, if the quality scale is used. Eg: quality={{{quality|}}}
    • QUALITY_SCALE – configures the quality scale; possible options are:
      • standard – enables the 'standard' quality scale (FB, A, B, C, Start, Stub, NB). (This is the default behavior, if the quality parameter is used.)
      • extended – enables the 'standard' quality scale plus some additional values (Category, Subject, Project and Template).
      • inline – allows for a simple custom quality scale to be used, generally used with {{Quality mask}}.
      • subpage – allows for a more complex custom quality scale to be used using a subpage called /quality. See custom masks below for further details.
  • priority– if defined, enables the standard priority scale (Top, High, Mid, Low, NB, Unknown). Eg: priority={{{priority|}}}
    • importance– if defined, enables the standard importance scale (Top, High, Mid, Low, NB, Unknown). Eg: priority={{{priority|}}} Only one of the priority/importance parameters should be used.
    • priority_SCALE – configures the priority/importance scale, if used. The possible options are:
      • standard – enables the 'standard' priority scale (Top, High, Mid, Low, Bottom, NB and Unknown). (This is the default behavior.)
      • inline – allows for a simple custom priority or importance scale to be defined, generally with {{Priority mask}}.
      • subpage – allows for a more complex custom priority/importance scale to be used using a subpage called /priority.
  • ASSESSMENT_LINK – the link to a WikiProject-specific quality (and/or priority) scale. If there is a page at "Wikibooks:WikiProject <PROJECTLINK>/Assessment" then this will be used by default. To override this, you can set this parameter to no.
  • ASSESSMENT_CAT – pages are sorted into categories based on their quality; so pages in featured books on languages would be categorized by default into Category:FB-quality languages pages. If this parameter is defined, featured pages would instead be categorized into Category:FB-quality ASSESSMENT_CAT. Eg: language pagesCategory:FB-quality language pages
  • COMMENTS– some projects may want to use a subpage of the page's talk page to post brief, assessment-related comments about the page. If these comments are placed in a "{{FULLPAGENAME}}/Comments" subpage, then this parameter will cause the banner to automatically display. Eg: yes
    • COMMENTS_CAT– if this parameter is defined, pages which have comments are sorted into Category:COMMENTS_CAT. By default, these pages are categorized into Category:PROJECT pages with comments. Eg: (alternate) Language pages with comments → Category:Language pages with comments. A value of none results in no categorization.
Example
{{WPBannerMeta
|PROJECT             = Languages
 |BANNER_NAME        = Template:WikiProject Languages
 |substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 |small              = {{{small|}}}
 |category           = {{{category|}}}
 |listas             = {{{listas|}}}
|IMAGE_LEFT          = Globe of letters.svg
 |IMAGE_LEFT_SMALL   = 
 |IMAGE_LEFT_LARGE   = 55px
|QUALITY_SCALE       = extended
 |quality            = {{{quality|}}}
|PRIORITY_SCALE      = standard
 |priority           = {{{priority|}}}
|ASSESSMENT_CAT      = language pages
|ASSESSMENT_LINK     = Wikibooks:WikiProject Languages/Assessment
|SUBJECT             = Languages
|MAIN_CAT            = WikiProject Languages pages
|COMMENTS            = yes
 |COMMENTS_CAT       = Language pages with comments
}}
Produces:
WikiProject Languages (Rated A-quality, Top-priority)
WikiProject icon This page is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages on Wikibooks. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 A  This page has been rated as A-quality on the project's quality scale.
 Top  This page has been rated as Top-priority on the project's priority scale.
 

Alerts and notes

Built into WPBannerMeta is the ability to display a number of other fields that contain useful information about the page. There are also three predefined fields for:

  1. pages in need of immediate attention;
  2. pages in need of an |infobox.

The parameters are:

  • attention – pass this parameter through to enable the use of the attention note. Eg: attention={{{attention|}}}, then by including |attention=yes on the talk page.
    • ATTENTION_CAT – if defined, all pages displaying the attention note will be categorized into Category:ATTENTION_CAT. By default, they are categorized into Category:PROJECT pages needing attention. Eg: Language pages needing attentionCategory:Language pages needing attention. A value of none results in no categorization.
  • infobox – pass this parameter through to enable the use of the needs-infobox note. Eg: infobox={{{needs-infobox|}}}, then by including |needs-infobox=yes on the talk page.
    • INFOBOX_CAT – if defined, all pages displaying the needs-infobox note will be categorized into Category:INFOBOX_CAT. By default, they are categorized into Category:PROJECT pages needing infoboxes. Eg: Language pages needing infoboxesCategory:Language pages needing infoboxes. A value of none results in no categorization.
  • note 1– pass this parameter through to trigger any defined note. Eg: note 1={{{needs-photo|}}}, then by including |needs-photo=yes on the talk page. Up to ten notes can be specified in the core banner.
    • NOTE_1_TEXT – the text of note 1. Eg: This page needs a sound bite from a native speaker. If this is left blank there is no visual output.
    • NOTE_1_IMAGE – an image can be defined for each note. Remember that all images must be free, not fair-use. Eg: Crystal Clear app kaboodle.png
    • NOTE_1_FORMAT – optional formatting (color, etc.) for the table cell which contains the image, if any, for the note. Eg: style="background:blue"
    • NOTE_1_CAT – if defined, all pages displaying note 1 will be categorized into Category:NOTE_1_CAT. Eg: Language pages needing sound bitesCategory:Language pages needing sound bites
  • COLLAPSED – 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 customized by setting this parameter to the maximum number of notes on a page that will not trigger the collapse. The default is 3, 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 |COLLAPSED=0 will always create a collapse box (if there are any notes to fill it), while |COLLAPSED=999 will never trigger a collapse box. See also the /notecounter hook. Eg: 6
  • NOTE_SIZE – 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. Eg: x30px
Example
{{WPBannerMeta
|PROJECT             = Languages
 |BANNER_NAME        = Template:WikiProject Languages
 |substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 |small              = {{{small|}}}
 |category           = {{{category|}}}
 |listas             = {{{listas|}}}
|IMAGE_LEFT          = Globe of letters.svg
 |IMAGE_LEFT_SMALL   = 
 |IMAGE_LEFT_LARGE   = 55px
|QUALITY_SCALE       = extended
 |quality            = {{{quality|}}}
|PRIORITY_SCALE      = standard
 |priority           = {{{importance|}}}
|ASSESSMENT_CAT      = language pages
|ASSESSMENT_LINK     = Wikibooks:WikiProject Languages/Assessment
|SUBJECT             = Languages
|MAIN_CAT            = WikiProject Languages pages
|attention           = {{{attention|}}}
 |ATTENTION_CAT      = Language pages needing attention
|infobox             = {{{needs-infobox|}}}
 |INFOBOX_CAT        = Language pages needing infoboxes
|note 1              = {{{needs-bite|}}}
 |NOTE_1_TEXT        = This page needs a sound bite from a native speaker.
 |NOTE_1_IMAGE       = Crystal Clear app kaboodle.png
 |NOTE_1_CAT         = Language pages needing sound bites
|note 2              = {{{needs-photo|}}}
 |NOTE_2_TEXT        = This page has been marked as needing a photograph.
 |NOTE_2_IMAGE       = Nuvola filesystems camera.png
 |NOTE_2_FORMAT      = style="background:blue"
 |NOTE_2_CAT         = Floridiae taskforce pages needing photographs
}}
Produces:
WikiProject Languages (Rated B-quality, Mid-priority)
WikiProject icon This page is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages on Wikibooks. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 B  This page has been rated as B-quality on the project's quality scale.
 Mid  This page has been rated as Mid-priority on the project's priority scale.
More information:
 
Note icon
This page has been marked as needing immediate attention.
Note icon
This page has been marked as needing an infobox.
Note icon
This page needs a sound bite from a native speaker.
Note icon
This page has been marked as needing a photograph.

Task forces

WPBannerMeta can accommodate up to five task forces, each with its own image, links and importance scale, if desired. The following parameters are available:

  • tf 1 – this parameter must be passed through to enable and trigger the display of the task force section. Eg: tf 1={{{french|}}}
    • TF_1_LINK – the full page name of the task force's project page. Eg: Wikibooks:WikiProject Languages/French language task force
    • TF_1_NAME – the way the task force's name will appear in its piped link; redundant when |TF_1_TEXT= is used. Eg: the French language task force
    • TF_1_NESTED – if defined, a link of the form "/ [[{{{TF_1_LINK}}}|{{{TF_1_NESTED}}}]]" is added after the main project's name when the banner is collapsed inside a {{WikiProjectBannerShell}}. Eg: French
    • TF_1_TEXT – if defined, replaces the default "This page is supported by..." text. Eg: This page is within the scope of the [[Wikibooks:WikiProject Languages/French task force|French task force]]. New members are always welcome! If defined to be "none", then no output will be displayed, although appropriate categories will still be added.
    • TF_1_IMAGE – an image can be defined for each task force. Remember that all images must be free, not fair-use. Eg: Tour Eiffel Wikimedia Commons.jpg
    • TF_1_QUALITY – if defined, enables the quality categorizations for the main project (eg: Category:FB-quality language pages) to be duplicated for the task force. The quality arising from |quality= and |QUALITY_SCALE= will be used; Eg: yes
    • tf 1 priority– if defined, enables the use of a separate priority (or importance, if used) scale for the task force.Eg: tf 1 priority={{{french-priority|}}}
    • TF_1_ASSESSMENT_CAT (Required if quality or priority assessments are used) – the assessment category to be used for the task force-specific quality and priority assessments. Identical in syntax to |ASSESSMENT_CAT=. Eg: French language pagesCategory:FB-quality French language pages
    • TF_1_MAIN_CAT – if defined, all pages displaying "tf 1" will be categorized into Category:TF_1_MAIN_CAT. Eg: French language pagesCategory:French language pages
  • TF_SIZE – the size of the taskforce 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. Eg: x30px
Example
{{WPBannerMeta
|PROJECT              = Languages
 |BANNER_NAME         = Template:WikiProject Languages
 |substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 |small               = {{{small|}}}
 |category            = {{{category|}}}
 |listas              = {{{listas|}}}
|IMAGE_LEFT           = Globe of letters.svg
 |IMAGE_LEFT_SMALL    = 
 |IMAGE_LEFT_LARGE    = 55px
|QUALITY_SCALE        = extended
 |quality             = {{{quality|}}}
|PRIORITY_SCALE       = standard
 |priority            = {{{priority|}}}
|ASSESSMENT_CAT       = language pages
|ASSESSMENT_LINK      = Wikibooks:WikiProject Languages/Assessment
|SUBJECT              = Languages
|MAIN_CAT             = WikiProject Languages pages
|tf 1                 = {{{french|}}}
 |TF_1_LINK           = Wikibooks:WikiProject Languages/French language task force
 |TF_1_NAME           = the French language task force
 |TF_1_NESTED         = French
 |TF_1_IMAGE          = Flag of France.svg
 |TF_1_QUALITY        = yes
 |tf 1 priority       = {{{french-priority|{{{priority|}}}}}}
 |TF_1_ASSESSMENT_CAT = French language pages
|TF_SIZE              = x40px  
}}
Produces:
WikiProject Languages / French  (Rated C-quality, Mid-priority)
WikiProject icon This page is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages on Wikibooks. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 C  This page has been rated as C-quality on the project's quality scale.
 Mid  This page has been rated as Mid-priority on the project's priority scale.
Taskforce icon
This page is supported by the French language task force (marked as High-priority).
 

Advanced features

Hooks

See also: Template:WPBannerMeta/hooks

WPBannerMeta incorporates a number of 'hooks' where advanced or customized 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 – it may be necessary to repeat parameters that are already passed to the main template (|category={{{category|¬}}} and |quality={{{quality|}}} 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

See also: Template:Quality mask/doc

WPBannerMeta uses a mask to normalize the values given to the |quality= parameter, to ensure that invalid inputs are discarded (e.g. |quality=cheesecake) and that equivalent inputs appear the same (eg |quality=FB and |quality=fB). This mask effectively controls which extended assessment scale values are accepted by the template (eg "Template-quality", "Project-quality", etc). Projects which want to use more obscure assessment qualities or to not use all of the standard qualities (e.g. not using "C-quality") can define their own custom mask, which will override WPBannerMeta's default.

Other details

This meta-template automatically categorizes all instances (i.e. specific project banners) into a subcategory of Category:WikiProject banners. It is not necessary to include a category link in the documentation for each project banner.

The core WPBannerMeta template:

To reduce the byte-count of banners that do not make full use of WPBannerMeta's features, most of the optional features are broken out into subpages:

  • /comments – the message which is displayed when |COMMENTS=yes is defined.
  • /doc – the documentation you are now reading.
  • /priorityscale – the priority classification system.
  • /istemplate – tests the type of the current page (i.e. book talk page, templatepage, or demonstration).
  • /locwarning – warns when the banner template is used on a non-talk page.
  • /note – an individual note.
  • /taskforce – the code for each task force display.
  • /templatepage – the categories and notes that only appear on the template page.
  • /qualityscale – the quality classification system.