Template:Category handler/blacklist
Actual code of this blacklist:
</noinclude>{{if pagename
<!-- Start of blacklist -->
| Main Page = hide <!-- Don't categorise the main page -->
<!-- Don't categorise on centralised cascade page or its subpages -->
| Wikipedia:Cascade-protected items/+ = hide
<!-- Don't categorise userboxes in their own "template space" -->
| User:UBX/+ = hide
| User talk:UBX/+ = hide
| Wikipedia:Template messages/* = hide <!-- Don't categorise on its subpages -->
| /archiv* = hide <!-- Don't categorise on /archive pages -->
<!-- End of blacklist -->
| page = {{{page|}}} <!-- Never change this one, see the doc -->
}}<noinclude>
This is the {{Category handler/blacklist}} sub-template.
Do not use this template directly, use {{Category handler}} instead. This template is called from {{Category handler}}, see user documentation there.
But if you came here to see or update the category suppression blacklist, then you are in the right place.
Updating the blacklist
[edit]This template contains a blacklist of the pages and page types where templates should not auto-categorise. This blacklist is used by {{category handler}} to decide when not to categorise. To update the blacklist, edit this template.
This template uses if pagename to do the pagename-detection, thus see if pagename for the syntax to use for the blacklist rules.
When this template is placed on a page that should not categorise, then it should return "hide". And when placed on any other page it should return an empty string.
Technical details
[edit]Currently this template is only called from {{Category handler}}, and indirectly from all templates that use {{category handler}}. But in the future this template might also be directly called from other templates similar to {{category handler}}. This means we can update the category suppression blacklist in one place.
| The above documentation is transcluded from Template:Category handler/blacklist/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |