Template:Templatecategory: Difference between revisions

From Wikifang, a definitive guide to Telefang, Dino Device and Bugsite
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 3: Line 3:


[[Category:Category templates|{{PAGENAME}}]]
[[Category:Category templates|{{PAGENAME}}]]
</noinclude>
</noinclude>----
----


To put a template in '''Category:{{PAGENAME}}''':
To put a template in '''Category:{{PAGENAME}}''':

Latest revision as of 01:34, 9 December 2008

This template is used in subcategories of Category:Templates


To put a template in Category:Templatecategory:

  • Use <noinclude>[[Category:Templatecategory|{{PAGENAME}}]]</noinclude>. The "<noinclude>" tags are necessary because without them, you end up categorizing all pages using the template in the template category! Please also note the |{{PAGENAME}}.
  • If your template is meant to be used in-line, make sure that there are no line feeds after </noinclude>. If there are, it may work in flowing text, but it will misbehave in bullet lists. You can have as many line feeds as you like between the noinclude tags though:
<noinclude>[[Category:Templatecategory|{{PAGENAME}}]]
</noinclude>Text or graphic that is meant to be used in-line
  • Remember that a template can be put in multiple categories if it belongs to them all!
  • Or, if this is not quite the right category, go back to Category:Templates and try to find a better suited subcategory.