Template:Spell

From Fax Encyclopedicus

Jump to: navigation, search
Line 82: Line 82:
[[Category:{{{class1|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |  
[[Category:{{{class1|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |  
[[Category:{{{class1|}}} {{{type|Spells}}} (Level {{{class1level}}})]] }}<!--
[[Category:{{{class1|}}} {{{type|Spells}}} (Level {{{class1level}}})]] }}<!--
-
     -->| <!-- no 1st class entry, maybe plain level:
+
 
 +
      -->{{ #if: {{{class2|}}} |
 +
[[Category:{{{class2|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class2|}}} {{{type|Spells}}} (Level {{{class2level}}})]] }}<!--
 +
 
 +
        -->{{ #if: {{{class3|}}} |
 +
[[Category:{{{class3|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class3|}}} {{{type|Spells}}} (Level {{{class3level}}})]] }}<!--
 +
 
 +
          -->{{ #if: {{{class4|}}} |
 +
[[Category:{{{class4|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class4|}}} {{{type|Spells}}} (Level {{{class4level}}})]] }}<!--
 +
 
 +
            -->{{ #if: {{{class5|}}} |
 +
[[Category:{{{class5|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:{{{class5|}}} {{{type|Spells}}} (Level {{{class5level}}})]] }}<!--
 +
            --> | <!-- no 5th class entry --> }}<!--
 +
          --> | <!-- no 4th class entry --> }}<!--
 +
        --> | <!-- no 3rd class entry --> }}<!--
 +
      --> | <!-- no 2nd class entry --> }}<!--
 +
     --> | <!-- no 1st class entry, maybe plain level:
     -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!--
     -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!--
Line 141: Line 161:
Any time <tt>class#</tt> is used, the corresponding <tt>class#level</tt> '''must''' also be assigned. The <tt>level</tt> parameter is ignored if <tt>class1</tt> is set, '''unless''' <tt>noclasscat</tt> is set and <tt>nolevelcat</tt> is not, in which case it may be used for categorization. If any <tt>class#</tt> is not set, all greater numbers are ignored.
Any time <tt>class#</tt> is used, the corresponding <tt>class#level</tt> '''must''' also be assigned. The <tt>level</tt> parameter is ignored if <tt>class1</tt> is set, '''unless''' <tt>noclasscat</tt> is set and <tt>nolevelcat</tt> is not, in which case it may be used for categorization. If any <tt>class#</tt> is not set, all greater numbers are ignored.
-
This template assigns pages to the [[:Category:Spells]] category (assuming <tt>type</tt> is left to default), and to the individual categories given by "<tt>class#</tt> Spells" and "<tt>class#</tt> Spells (Level <tt>class#level</tt>)". To remove this behavior, use <tt>nocat</tt>, <tt>noclasscat</tt>, and/or <tt>nolevelcat</tt> (primarily used when a page has a list of spells and to use these categories would insert the page in ''every'' level's category).
+
This template assigns pages to the [[:Category:Spells]] category (assuming <tt>type</tt> is left to default), and to the individual categories given by "<tt>class#</tt> Spells" and "<tt>class#</tt> Spells (Level <tt>class#level</tt>)". To remove this behavior, use <tt>nocat</tt>, <tt>noclasscat</tt>, and/or <tt>nolevelcat</tt> (primarily used when a page has a list of spells and to use these categories would insert the page in ''every'' level's category). Templates are never categorized in this manner.
== Example ==
== Example ==

Revision as of 21:26, 10 October 2010

Personal tools
Google AdSense