Difference between revisions of "Category:Templates"

m
m
Line 4: Line 4:
  
 
To put a template in a Category:
 
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>.
+
* Use <span style="white-space: nowrap; background:white; border: 1px #2f6fab dashed; color:black; font-family: 'courier new', courier, 'sans serif', sans-serif, monospace; padding:0.1em 0.5em; margin: 0em 0.2em;">&lt;noinclude&gt;&#x5b;&#x5b;Category:{{PAGENAME}}&#x7c;&#x7b;&#x7b;PAGENAME&#x7d;&#x7d;&#x5d;&#x5d;&lt;/noinclude&gt;</span>. 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>.
 
* 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:
 
* 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;">
+
{| style="background:white; border:1px #2f6fab dashed; color:black; font-family:'courier new', courier, 'sans serif', sans-serif, monospace; margin-left:20px; padding:1px;"
{{Code/Begin}}
+
|-
&lt;noinclude&gt;&#x5b;&#x5b;Category:{{PAGENAME}}&#x7c;&#x7b;&#x7b;PAGENAME&#x7d;&#x7d;&#x5d;&#x5d;<br>
+
| &nbsp;
 +
| &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
 
&lt;/noinclude&gt;''Text or graphic that is meant to be used in-line
{{Code/End}}
+
| &nbsp;
</div>
+
|}
 
* Remember that a template can be put in multiple categories if it belongs to them all!
 
* Remember that a template can be put in multiple categories if it belongs to them all!
  
 
[[Category:UOGuide]]
 
[[Category:UOGuide]]

Revision as of 17:04, 30 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 <noinclude>[[Category:Templates|{{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:Templates|{{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!

Subcategories

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