Template:Addtocategory: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
conditional descr
Elf (talk | contribs)
descr optional
Line 6: Line 6:
For example:
For example:


<nowiki>{{addtocategory|</nowiki>''description''}}
<nowiki>{{addtocategory|</nowiki>the [[COLLADA DOM]]}}


This displays the following in the category page (automatically replacing "Template:Addtocategory" with the correct category name):  
The description is optional; if used, it replaces "this category" in the following text. This template displays the following in the category page (automatically replacing "Template:Addtocategory" with the correct category name):  


</noinclude>
</noinclude>
The following is an automatically collected, alphabetic list of subcategories and articles that have been flagged as pertaining to {{ #if: {{{1|}}} | {{{1}}} | this category}}. To add an article to this list, add the following to the end of the article:
The following is an automatically collected, alphabetic list of subcategories and articles that have been flagged as pertaining to {{ #if: {{{1|}}} | {{{1}}} | this category}}. To add an article to this list, add the following to the end of the article:
  <nowiki>[[</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki>
  <nowiki>[[</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki>

Revision as of 01:23, 31 May 2007

Usage:

Use this template in a category page to explain how to add articles to that category. To included this template, add the following to the category page:

{{addtocategory|description}}

For example:

{{addtocategory|the COLLADA DOM}}

The description is optional; if used, it replaces "this category" in the following text. This template displays the following in the category page (automatically replacing "Template:Addtocategory" with the correct category name):


The following is an automatically collected, alphabetic list of subcategories and articles that have been flagged as pertaining to this category. To add an article to this list, add the following to the end of the article:

[[Template:Addtocategory]]