Template:Addtocategory: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
m fix example display
Elf (talk | contribs)
chg where phrase cuts off
Line 6: Line 6:
For example:
For example:


  <nowiki>{{addtocategory|the [[COLLADA DOM]]}}</nowiki>
  <nowiki>{{addtocategory|pertaining to the [[COLLADA DOM]]}}</nowiki>


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 description is optional; if used, it replaces "pertaining to 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 {{ #if: {{{1|}}} | {{{1}}} | pertaining to  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:27, 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|pertaining to the [[COLLADA DOM]]}}

The description is optional; if used, it replaces "pertaining to 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]]