ထႅမ်းပလဵတ်ႉ:Category handler/blacklist
Actual code of this blacklist:
</noinclude>{{if pagename <!-- Start of blacklist --> | Main Page = hide <!-- Don't categorize the main page --> <!-- Don't categorize userboxes in their own "template space" --> | User:UBX/+ = hide | User talk:UBX/+ = hide | Wikibooks:Templates/* = hide <!-- Don't categorize on its subpages --> | /archiv* = hide <!-- Don't categorize 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[မႄးထတ်း]
This template contains a blacklist of the pages and page types where templates should not auto-categorize. This blacklist is used by {{category handler}} to decide when not to categorize. 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 categorize, then it should return "hide". And when placed on any other page it should return an empty string.
Testing the blacklist[မႄးထတ်း]
There are two ways you can test what this blacklist returns for a page:
You can put this template on the page you want to test, and see what output it produces. You can use edit preview, no need to save. Like this:
+{{category handler/blacklist}}+
Which here on this page returns this:
- ++
The ++ used here is a simple way to make it visible when a template returns an empty string.
Or you can feed the page name you want to test to this template. Like this:
+{{category handler/blacklist| page = User:Example }}+
+{{category handler/blacklist| page = User:Example/Archive 5}}+
Which returns this:
- ++
- +hide+
Technical details[မႄးထတ်း]
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.
ၽိုၼ်ၵႅမ်မိုဝ်း ၽၢႆႇၼိူဝ်ၼႆႉ မၼ်းပဵၼ်ဢၼ်ၶဝ်ႈပႃးဝႆႉ ၵႃႈတီႈ ထႅမ်းပလဵတ်ႉ:Category handler/blacklist/doc. (ထတ်း | ပိုၼ်း) ၽူႈမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်း တီႈၼႂ်း ၼႃႈလိၵ်ႈ sandbox (create | mirror) လႄႈ testcases (create) ၶွင် ထႅမ်းပလဵတ်ႉဢၼ်ၼႆႉ။ ၶႅၼ်းတေႃႈ ၽိူမ်ႉသႂ်ႇပၼ်ပိူင်ထၢၼ်ႈ ၸူးတီႈ ၼႃႈလိၵ်ႈၽႄ /doc ၼၼ်ႉတႃႉ။ Subpages of this template. |