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. | ||
− | |||
− | + | To put a template in a Category: | |
− | + | * Use {{Code|<noinclude>[[Category:{{PAGENAME}}|{{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 <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>. | |
− | {{ | + | * If your template is meant to be '''used in-line''', make sure that there are '''no line feeds''' after <tt></noinclude></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}} | ||
+ | <noinclude>[[Category:{{PAGENAME}}|{{PAGENAME}}]]<br> | ||
+ | </noinclude>''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 14: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.