Difference between revisions of "Template:Cat"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m (omg an equals sine)
sc4e>JoeST
m (fixed)
Line 1: Line 1:
<noinclude>A simple template for adding categories to. Allows upto 9 categories with only the first one being optional.
+
<noinclude>A simple template for adding categories to. Allows upto 9 categories with all but the first one being optional.
 
===Example===
 
===Example===
 
</noinclude><!--
 
</noinclude><!--
 
here goes the first one
 
here goes the first one
-->{{Option|{{{1}}}|[[Category:{{{1}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{1}}}|[[Category:{{{1}}}|{{PAGENAME}}]]|}}<!--
 
optional ones
 
optional ones
-->{{Option|{{{2|}}}|[[Category:{{{2|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{2|}}}|[[Category:{{{2|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{3|}}}|[[Category:{{{3|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{3|}}}|[[Category:{{{3|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{4|}}}|[[Category:{{{4|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{4|}}}|[[Category:{{{4|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{5|}}}|[[Category:{{{5|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{5|}}}|[[Category:{{{5|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{6|}}}|[[Category:{{{6|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{6|}}}|[[Category:{{{6|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{7|}}}|[[Category:{{{7|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{7|}}}|[[Category:{{{7|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{8|}}}|[[Category:{{{8|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{8|}}}|[[Category:{{{8|}}}|{{PAGENAME}}]]|}}<!--
-->{{Option|{{{9|}}}|[[Category:{{{9|}}}|{{PAGENAME}}]]|}}<!--
+
-->{{#if:{{{9|}}}|[[Category:{{{9|}}}|{{PAGENAME}}]]|}}<!--

Revision as of 05:56, 26 January 2009

A simple template for adding categories to. Allows upto 9 categories with all but the first one being optional.

Example

[[Category:{{{1}}}|Cat]]