Difference between revisions of "Category:Templates"

m
m
Line 1: Line 1:
This is the base category for templates. We are attempting to categorize all templates available in UOGuide here, to make them easier to find for people that might also need them!
+
This is the base category for templates. We are attempting to categorize all templates available in UOGuide here, to make them easier to find for people that might also need them.
 +
* Please do not put any templates directly into this root category. That is what the subcategories are for.
  
* Please do not put any templates in this root category. If you can't think of a good place to put them, use [[:Category:Uncategorized Templates]].
 
  
There are also subpages that get pulled into another page just like templates, but are not really useful to anyone else; perhaps they've just been split off to make it easier to edit. Subpages like that do not have to be categorized as templates at all.
+
To put a template in a Category:
 
+
* Use {{Code|&lt;noinclude&gt;&#x5b;&#x5b;Category:{{PAGENAME}}&#x7c;&#x7b;&#x7b;PAGENAME&#x7d;&#x7d;&#x5d;&#x5d;&lt;/noinclude&gt;}}. &nbsp; The "&lt;noinclude&gt;" tags are necessary because without them, you end up categorizing all pages using the template in the template category! &nbsp; Please also note the <tt style="border-bottom: 1px dotted; cursor: help;" title="Makes it sort on the actual template name rather than 'T' as in 'Template:'."><nowiki>|{{PAGENAME}}</nowiki></tt>.
{{Templatecategory}}
+
* If your template is meant to be '''used in-line''', make sure that there are '''no line feeds''' after <tt>&lt;/noinclude&gt;</tt>. 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:
 +
<div style="margin-left:20px;">
 +
{{Code/Begin}}
 +
&lt;noinclude&gt;&#x5b;&#x5b;Category:{{PAGENAME}}&#x7c;&#x7b;&#x7b;PAGENAME&#x7d;&#x7d;&#x5d;&#x5d;<br>
 +
&lt;/noinclude&gt;''Text or graphic that is meant to be used in-line
 +
{{Code/End}}
 +
</div>
 +
* Remember that a template can be put in multiple categories if it belongs to them all!
  
 
[[Category:UOGuide]]
 
[[Category:UOGuide]]

Revision as of 15:41, 24 November 2009

This is the base category for templates. We are attempting to categorize all templates available in UOGuide here, to make them easier to find for people that might also need them.

  • Please do not put any templates directly into this root category. That is what the subcategories are for.


To put a template in a Category:

  • Use Template:Code.   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:

Template:Code/Begin <noinclude>[[Category:Templates|{{PAGENAME}}]]
</noinclude>Text or graphic that is meant to be used in-line Template:Code/End

  • Remember that a template can be put in multiple categories if it belongs to them all!

Subcategories

This category has the following 8 subcategories, out of 8 total.