Confirmed users, Bureaucrats and Sysops emeriti
176
edits
No edit summary |
|||
Line 66: | Line 66: | ||
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>, that page is automatically filed in the [[Category:Spam|Spam category]] because it is declared within the template. | 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>, that page is automatically filed in the [[Category:Spam|Spam category]] because it is declared within the template. | ||
When you create a template, include the category within the <nowiki><includeonly></nowiki> tags <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki>. | When you create a template, include the category within the <nowiki><</nowiki>includeonly<nowiki>></nowiki> tags <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki>. | ||
If you want to add another category or a category that doesn't need a template just add < | If you want to add another category or a category that doesn't need a template just add <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki> to the page. | ||
==Category Pages== | ==Category Pages== |