70,044
edits
(Created page with '{{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is the {{tl|cat handler}} meta-template. It helps other templates to au…') |
Sandralpond (talk | contribs) mNo edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
This is the {{tl|cat handler}} meta-template. | This is the {{tl|cat handler}} meta-template. | ||
It helps other templates to automate both categorization and [[ | It helps other templates to automate both categorization and [[FamilySearch Wiki:Category suppression|category suppression]]. | ||
Already when used with its default settings this template prevents auto-categorization in some namespaces and on some pages where we usually don't want categorization. Thus even the most basic usage like "<code><nowiki>{{cat handler|[[Category:Somecat]]}}</nowiki></code>" sees to that templates don't auto-categorize in the wrong places. | Already when used with its default settings this template prevents auto-categorization in some namespaces and on some pages where we usually don't want categorization. Thus even the most basic usage like "<code><nowiki>{{cat handler|[[Category:Somecat]]}}</nowiki></code>" sees to that templates don't auto-categorize in the wrong places. | ||
Line 17: | Line 17: | ||
=== Namespaces === | === Namespaces === | ||
This template detects and groups all the different [[ | This template detects and groups all the different [[FamilySearch Wiki:Namespace|namespaces]] used on FamilySearch Wiki into several types. These types are used as parameter names in this template. | ||
:'''main''' = Main/article space, as in normal | :'''main''' = Main/article space, as in normal FamilySearch Wiki articles. | ||
:'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "File talk:" and so on. | :'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "File talk:" and so on. | ||
:'''user, | :'''user, familysearch wiki, file, mediawiki, template, help, category, portal''' and '''book''' = The other namespaces except the talk pages. | ||
:'''other''' = Any namespaces that were not specified as a parameter to the template. See examples below. | :'''other''' = Any namespaces that were not specified as a parameter to the template. See examples below. | ||
Line 44: | Line 44: | ||
:'''main''', '''file''', '''help''', '''category''', '''portal''' and '''book''' | :'''main''', '''file''', '''help''', '''category''', '''portal''' and '''book''' | ||
But it will ''not'' categorize in the following namespaces: | But it will ''not'' categorize in the following namespaces: | ||
:'''talk''', '''user''', ''' | :'''talk''', '''user''', '''FamilySearch Wiki''', '''mediawiki''' and '''template''' | ||
And it will ''not'' categorize on blacklisted pages. (See section [[#Blacklist|blacklist]] below.) | And it will ''not'' categorize on blacklisted pages. (See section [[#Blacklist|blacklist]] below.) | ||
Line 137: | Line 137: | ||
{{cat handler | {{cat handler | ||
| subpage = no <!--Don't categorize on subpages--> | | subpage = no <!--Don't categorize on subpages--> | ||
| | | FamilySearch Wiki = [[Category:Somecat]] | ||
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--> | | nocat = {{{nocat|}}} <!--So "nocat=true/false" works--> | ||
}} | }} | ||
Line 146: | Line 146: | ||
=== Blacklist === | === Blacklist === | ||
This template has a blacklist of the pages and page types where templates should not auto-categorize. Thus templates that use this meta-template will for instance not categorize on /archive pages and on the subpages of [[ | This template has a blacklist of the pages and page types where templates should not auto-categorize. Thus templates that use this meta-template will for instance not categorize on /archive pages and on the subpages of [[FamilySearch Wiki:Template messages]]. | ||
If you want a template to categorize on a blacklisted page, then feed "<code><nowiki>nocat = false</nowiki></code>" to the template when you place it on the page, thus skipping the blacklist check. Note that this template only categorizes if it has data for the namespace. For instance, if the basic syntax is used (see [[#Basic usage|basic usage]] above), then even if you set "<code>nocat = false</code>" the template will not categorize on a talk page, since it has no data for talk pages. But it has data for help space, so on a blacklisted help page it will categorize. | If you want a template to categorize on a blacklisted page, then feed "<code><nowiki>nocat = false</nowiki></code>" to the template when you place it on the page, thus skipping the blacklist check. Note that this template only categorizes if it has data for the namespace. For instance, if the basic syntax is used (see [[#Basic usage|basic usage]] above), then even if you set "<code>nocat = false</code>" the template will not categorize on a talk page, since it has no data for talk pages. But it has data for help space, so on a blacklisted help page it will categorize. | ||
Line 298: | Line 298: | ||
For more technical details see the [[Template talk:Cat handler|talk page]]. | For more technical details see the [[Template talk:Cat handler|talk page]]. | ||
=== See also === | === See also === | ||
* | *{{wpd|Wikipedia:Category suppression}} – The how-to guide. | ||
* | *{{wpd|Wikipedia:WikiProject Category Suppression}} – The WikiProject. | ||
* | *{{wpd|Wikipedia:Namespace}} – Lists all the namespaces. | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category: | [[Category:Metatemplates]] | ||
</includeonly> | </includeonly> |
edits