Template:Addtemplatetocategory: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
Really fixing template
Elf (talk | contribs)
add more explanation
Line 7: Line 7:
</noinclude>This is a list of templates that {{{what}}}. To add a template to this category, include the text:
</noinclude>This is a list of templates that {{{what}}}. To add a template to this category, include the text:


  <nowiki><noinclude>[[</nowiki>{{FULLPAGENAME}}<nowiki>|{{PAGENAME}}]]</noinclude></nowiki><noinclude>
  <nowiki><noinclude>[[</nowiki>{{FULLPAGENAME}}<nowiki>|{{PAGENAME}}]]</noinclude></nowiki>
[[Category:Category templates]]
 
The <nowiki>|{{PAGENAME}}</nowiki> sorts the article's title after discarding the "Template:" prefix.<noinclude>
[[Category:Category templates]]</noinclude>

Revision as of 02:22, 23 February 2009

Usage:

Use this template in a category page, where the category consists of templates, to explain how to add templates to that category. To use this template, add the following to the category page:

{{addtemplatetocategory|what=what the templates do, e.g., help users to foo.}}

which displays the following (automatically replacing "Template:Addtemplatetocategory" with the appropriate category name):

This is a list of templates that {{{what}}}. To add a template to this category, include the text:

<noinclude>[[Template:Addtemplatetocategory|{{PAGENAME}}]]</noinclude>

The |{{PAGENAME}} sorts the article's title after discarding the "Template:" prefix.