Template:Addtocategory: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
creating a template for standard text for category pages
 
Elf (talk | contribs)
m chg catg to user templ's
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
To add an article to this list, just add the following to the end of the article:
<noinclude>'''''Usage:'''''
 
''Use this template in a category page to explain how to add articles to that category. To use this template, add the following to the category page:''
<nowiki>{{addtocategory|</nowiki>''description''}}
 
''For example:''
 
<nowiki>{{addtocategory|pertaining to the [[COLLADA DOM]]}}</nowiki>
 
T''he 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>
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>
<noinclude>[[Category:User templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:16, 4 March 2009

Usage:

Use this template in a category page to explain how to add articles to that category. To use 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]]