Template:Cat handler/doc: Difference between revisions

change wikipedia to familysearch wiki
(→‎Namespaces: change wikipedia to familysearch wiki)
(change wikipedia to familysearch wiki)
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 [[Wikipedia:Category suppression|category suppression]].  
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 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''', '''wikipedia''', '''mediawiki''' and '''template'''
:'''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-->
| wikipedia = [[Category:Somecat]]
| 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 [[Wikipedia:Template messages]].
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 300: Line 300:
=== See also ===
=== See also ===


* {{wpd|Wikipedia:Category suppression}} – The how-to guide.
* {{wpd|FamilySearch Wiki:Category suppression}} – The how-to guide.
* {{wpd|Wikipedia:WikiProject Category Suppression}} – The WikiProject.
* {{wpd|FamilySearch Wiki:WikiProject Category Suppression}} – The WikiProject.
* {{wpd|Wikipedia:Namespace}} – Lists all the namespaces.
* {{wpd|FamilySearch Wiki:Namespace}} – Lists all the namespaces.


<includeonly>
<includeonly>
90,866

edits