Help:Categories: Difference between revisions

Line 69: Line 69:
Categories are most powerful when included within templates. Let's look at the Spam template as an example.  
Categories are most powerful when included within templates. Let's look at the Spam template as an example.  


When a page is flagged with the spam template <nowiki>{{</nowiki>[[Template:Spam|Spam]]<nowiki>}}</nowiki> it is automatically filed in the <nowiki>[[Category:Spam|Spam category]]</nowiki>. How? When an editor creates or edits a template, they can add a category to it just like any content page. Once a category has been added to a template, whenever that template is invoked it's member categories are as well.  
When a page is flagged with the spam template <nowiki>{{</nowiki>[[Template:Spam|Spam]]<nowiki>}}</nowiki> it is automatically filed in the <nowiki>[[</nowiki>Category:Spam|Spam category<nowiki>]]</nowiki>. How? When an editor creates or edits a template, they can add a category to it just like any content page. Once a category has been added to a template, whenever that template is invoked it's member categories are as well.  


===How to Add a Category to a Template===
===How to Add a Category to a Template===
Confirmed users, Bureaucrats and Sysops emeriti
176

edits