Template:Spell
From Fax Encyclopedicus
Line 5: | Line 5: | ||
-->{{ #if: {{{school|}}} | {{{school}}} <!-- no school entry --> }}<!-- | -->{{ #if: {{{school|}}} | {{{school}}} <!-- no school entry --> }}<!-- | ||
- | -->{{ #if: {{{subschool|}}} | ({{{subschool}}}) | <!-- no subschool entry --> }}<!-- | + | -->{{ #if: {{{subschool|}}} | ({{{subschool}}}) | <!-- no subschool entry --> }}<!-- |
- | -->{{ #if: {{{desc|}}} | [{{{desc}}}] | <!-- no descriptor entry --> }}<!-- | + | -->{{ #if: {{{desc|}}} | [{{{desc}}}] | <!-- no descriptor entry --> }}<!-- |
-->{{ #if: {{{class1|}}} | | -->{{ #if: {{{class1|}}} | | ||
Line 60: | Line 60: | ||
-->{{ #ifeq: {{NAMESPACE}} | Template | <!-- don't include templates in the categories --> | <!-- | -->{{ #ifeq: {{NAMESPACE}} | Template | <!-- don't include templates in the categories --> | <!-- | ||
- | -->{{ #if {{{nocat|}}} | <!-- don't categorize when nocat is set --> | | + | -->{{ #if {{{nocat|}}} | <!-- don't categorize when nocat is set --> | |
[[Category:{{{type|Spells}}}]]<!-- | [[Category:{{{type|Spells}}}]]<!-- | ||
- | -->{{ #if: {{{noclasscat|}}} | <!-- don't categorize for each class; use level | + | -->{{ #if: {{{noclasscat|}}} | <!-- don't categorize for each class; use level |
- | -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!-- | + | -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!-- |
- | -->{{ #if: {{{level|}}} | | + | -->{{ #if: {{{level|}}} | |
- | [[Category:{{{type|Spells}}} (Level {{{level}}})]] | + | [[Category:{{{type|Spells}}} (Level {{{level}}})]] | <!-- |
- | + | ||
- | + | ||
- | + | ||
+ | no level entry supplied | ||
+ | --> }} <!-- | ||
+ | nolevelcat false | ||
+ | --> }} <!-- | ||
+ | noclasscat set | ||
+ | --> | <!-- | ||
noclasscat not set, doing class categorization: | noclasscat not set, doing class categorization: | ||
- | -->{{ #if: {{{class1|}}} | | + | -->{{ #if: {{{class1|}}} | |
[[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}}})]] }}<!-- | ||
- | + | -->{{ #if: {{{class2|}}} | | |
[[Category:{{{class2|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | [[Category:{{{class2|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class2|}}} {{{type|Spells}}} (Level {{{class2level}}})]] }}<!-- | [[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}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class3|}}} {{{type|Spells}}} (Level {{{class3level}}})]] }}<!-- | [[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}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class4|}}} {{{type|Spells}}} (Level {{{class4level}}})]] }}<!-- | [[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}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class5|}}} {{{type|Spells}}} (Level {{{class5level}}})]] }}<!-- | [[Category:{{{class5|}}} {{{type|Spells}}} (Level {{{class5level}}})]] }}<!-- | ||
- | + | -->{{ #if: {{{class6|}}} | | |
[[Category:{{{class6|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | [[Category:{{{class6|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class6|}}} {{{type|Spells}}} (Level {{{class6level}}})]] }}<!-- | [[Category:{{{class6|}}} {{{type|Spells}}} (Level {{{class6level}}})]] }}<!-- | ||
- | + | -->{{ #if: {{{class7|}}} | | |
[[Category:{{{class7|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | [[Category:{{{class7|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class7|}}} {{{type|Spells}}} (Level {{{class7level}}})]] }}<!-- | [[Category:{{{class7|}}} {{{type|Spells}}} (Level {{{class7level}}})]] }}<!-- | ||
- | + | -->{{ #if: {{{class8|}}} | | |
[[Category:{{{class8|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | [[Category:{{{class8|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class8|}}} {{{type|Spells}}} (Level {{{class8level}}})]] }}<!-- | [[Category:{{{class8|}}} {{{type|Spells}}} (Level {{{class8level}}})]] }}<!-- | ||
- | + | -->{{ #if: {{{class9|}}} | | |
[[Category:{{{class9|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | [[Category:{{{class9|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{class9|}}} {{{type|Spells}}} (Level {{{class9level}}})]] }}<!-- | [[Category:{{{class9|}}} {{{type|Spells}}} (Level {{{class9level}}})]] }}<!-- | ||
- | + | -->{{ #if: {{{classX|}}} | | |
[[Category:{{{classX|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | [[Category:{{{classX|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> | | ||
[[Category:{{{classX|}}} {{{type|Spells}}} (Level {{{classXlevel}}})]] }}<!-- | [[Category:{{{classX|}}} {{{type|Spells}}} (Level {{{classXlevel}}})]] }}<!-- | ||
- | + | -->| <!-- no 10th class entry --> }}<!-- | |
- | + | -->| <!-- no 9th class entry --> }}<!-- | |
- | + | -->| <!-- no 8th class entry --> }}<!-- | |
- | + | -->| <!-- no 7th class entry --> }}<!-- | |
- | + | -->| <!-- no 6th class entry --> }}<!-- | |
- | + | -->| <!-- no 5th class entry --> }}<!-- | |
- | + | -->| <!-- no 4th class entry --> }}<!-- | |
- | + | -->| <!-- no 3rd class entry --> }}<!-- | |
- | + | -->| <!-- no 2nd class entry --> }}<!-- | |
- | -->| <!-- no 1st class entry, maybe plain level: | + | -->| <!-- no 1st class entry, maybe plain level: |
- | -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!-- | + | -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!-- |
- | -->{{ #if: {{{level|}}} | | + | -->{{ #if: {{{level|}}} | |
[[Category:{{{type|Spells}}} (Level {{{level}}})]] | <!-- no level entry supplied --> }} <!-- | [[Category:{{{type|Spells}}} (Level {{{level}}})]] | <!-- no level entry supplied --> }} <!-- | ||
- | nolevelcat false --> }} <!-- class1 not set --> }}<!-- | + | nolevelcat false |
+ | --> }} <!-- | ||
+ | class1 not set | ||
+ | --> }}<!-- | ||
+ | noclasscat not set | ||
+ | --> }}<!-- | ||
+ | nocat not set | ||
+ | --> }}<!-- | ||
--></includeonly><noinclude><!-- | --></includeonly><noinclude><!-- |