Template:Class mask/doc/custom

This template subpage contains a mask which normalises the input passed to class. This can be thought of as the 'default' mask, but it is possible for banners to define their own individual masks with wider or fewer choices of acceptable inputs.

If the page corresponding to  exists and   is set in the banner, then control is passed to the code on that page to normalise the input, and no modification is performed by the WQBannerMeta itself. The following parameters are available to be used:
 * class
 * b1 through b6

Some caveats:
 * treats a null output from the mask as "unassessed"
 * handles importance ratings differently when the mask outputs "NA"

Any alternative mask needs to be carefully designed to handle all inputs correctly, with care given to case-insentivity, etc.

Examples
The following code accepts only the standard 1.0 assessment scale with a few extras:

This code imitates the MilHist scale: no C-Class and a B-Class checklist:

This code imitates the WQMaths scale, which also incorporates a "B+" class:

An example with Merge, Needed, Future & Current classes:

Generic self-documentation
A minor problem with the examples above is that someone clicking the link from the banner template to see the custom mask will be presented with a blank page (you have to edit the page to see there's actually code). A simple solution is to add a local wrapper to your code, replacing the basic structure:

with this one: &lt;noinclude>:''Custom mask used by undefined:'' &lt;pre>&lt;/noinclude>&lt;noinclude>&lt;/pre>&lt;/noinclude> For a visual example, you can go to Template:WikiProject Academic Journals and click the "custom class" link in the warning box: instead of a blank page you will be presented with Template:WikiProject Academic Journals/class that explains what it is and shows the full code of the mask. (Do not pay attention to the "noinclude" showing up around the code, it's a local side-effect of the Pre tag that doesn't affect the banner or the mask at all once transcluded.)