WPBannerMeta is a meta-template, which can be used to create WikiProject banners, enabling new projects to easily create a banner to place on article talk pages, ensuring standardisation between projects. A list of all WikiProject banners using this meta-template can be found at What links here: WPBannerMeta
This is a meta template. It is used to build other templates. Do not transclude this template directly on to talk pages when you want to tag a page. Instead, use the template produced by the WikiProject.
Syntax
|
Advanced features
Hooks
WPBannerMeta incorporates a number of '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 – it may be necessary to repeat parameters that are already passed to the main template (|category={{{category|¬}}}
and |class={{{class|}}}
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
mask to normalise the values given to the
|class=
parameter, to ensure that invalid inputs are discarded (e.g.
|class=cheesecake
) and that equivalent inputs appear the same (e.g.
|class=FA
and
|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's default.
Other details
This meta-template automatically categorises all instances (i.e. specific project banners) into a subcategory of Category:WikiProject banners. It is not necessary to inc
This meta-template automatically categorises 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. Any project banners with errors are automatically added to Category:WikiProject banners with formatting errors.
The core WPBannerMeta template: