Template:Addtemplatetocategory: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
tweaks
Elf (talk | contribs)
m catg sort
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>''Usage:''
<noinclude>'''''Usage:'''''


''To use this template in a category of templates, type the following:''
''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:''
  <nowiki>{{addtemplatetocategory}}</nowiki>
  <nowiki>{{addtemplatetocategory|what=</nowiki>''what the templates do, e.g., help users to foo.''<nowiki>}}</nowiki>
''which displays the following (automatically replacing the page name with the appropriate category name):''
''which displays the following (automatically replacing "Template:Addtemplatetocategory" with the appropriate category name):''


</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>[[Category:Category templates|{{PAGENAME}}]]</noinclude></nowiki><noinclude>
  <nowiki><noinclude>[[</nowiki>{{FULLPAGENAME}}<nowiki>|{{PAGENAME}}]]</noinclude></nowiki><noinclude>
[[Category:Category templates]]
 
''FYI, The <nowiki>|{{PAGENAME}}</nowiki> sorts the article's title after discarding the "Template:" prefix.''
[[Category:User templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 22:07, 4 March 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>

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