Template:D20rSpell

From Fax Encyclopedicus

Jump to: navigation, search
 
Line 1: Line 1:
-
==={{{1}}}===
+
<includeonly>'''{{{name|}}}''' {{ #if: {{{desc|}}} | &nbsp;[{{{desc}}}] | <!-- no descriptor entry --> }}<!--
-
[{{{2}}}]<br>
+
 
-
'''Level:''' {{{3}}}<br>
+
-->
-
'''Casting Time:''' {{{4}}}<br>
+
<ul><!--
-
'''Range:''' {{{5}}}<br>
+
 
-
'''Target:''' {{{6}}}<br>
+
-->{{ #if: {{{class1|}}} |
-
'''Duration:''' {{{7}}}<br>
+
<li> '''Level:''' {{ #ifexist: {{{class1}}} | [[{{{class1}}}]] | {{{class1}}} }} {{{class1level}}}<!--
-
'''Saving Throw:''' {{{8}}}<br>
+
  -->{{ #if: {{{class2|}}} | , {{ #ifexist: {{{class2}}} | [[{{{class2}}}]] | {{{class2}}} }} {{{class2level}}}<!--
-
'''Spell Resistance:''' {{{9}}}
+
    -->{{ #if: {{{class3|}}} | , {{ #ifexist: {{{class3}}} | [[{{{class3}}}]] | {{{class3}}} }} {{{class3level}}}<!--
 +
      -->{{ #if: {{{class4|}}} | , {{ #ifexist: {{{class4}}} | [[{{{class4}}}]] | {{{class4}}} }} {{{class4level}}}<!--
 +
        -->{{ #if: {{{class5|}}} | , {{ #ifexist: {{{class5}}} | [[{{{class5}}}]] | {{{class5}}} }} {{{class5level}}}<!--
 +
          -->{{ #if: {{{class6|}}} | , {{ #ifexist: {{{class6}}} | [[{{{class6}}}]] | {{{class6}}} }} {{{class6level}}}<!--
 +
            -->{{ #if: {{{class7|}}} | , {{ #ifexist: {{{class7}}} | [[{{{class7}}}]] | {{{class7}}} }} {{{class7level}}}<!--
 +
              -->{{ #if: {{{class8|}}} | , {{ #ifexist: {{{class8}}} | [[{{{class8}}}]] | {{{class8}}} }} {{{class8level}}}<!--
 +
                -->{{ #if: {{{class9|}}} | , {{ #ifexist: {{{class9}}} | [[{{{class9}}}]] | {{{class9}}} }} {{{class9level}}}<!--
 +
                  -->{{ #if: {{{classX|}}} | , {{ #ifexist: {{{classX}}} | [[{{{classX}}}]] | {{{classX}}} }} {{{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 --> }}<!--
 +
--></li>| <!-- no 1st class entry, maybe plain level:
 +
 
 +
-->{{ #if: {{{level|}}} |
 +
<li> '''Level:''' {{{level}}}</li> | <!-- no level entry --> }} }}<!--
 +
 
 +
-->{{ #if: {{{time|}}} |
 +
<li> '''Casting Time:''' {{{time}}}</li> | <!-- no casting time entry --> }}<!--
 +
 
 +
-->{{ #if: {{{range|}}} |
 +
<li> '''Range:''' {{{range}}}</li> | <!-- no range entry --> }}<!--
 +
 
 +
-->{{ #if: {{{target|}}} |
 +
<li> '''Target:''' {{{target}}}</li> | <!-- no target entry --> }}<!--
 +
 
 +
-->{{ #if: {{{area|}}} |
 +
<li> '''Area:''' {{{area}}}</li> | <!-- no area entry --> }}<!--
 +
 
 +
-->{{ #if: {{{effect|}}} |
 +
<li> '''Effect:''' {{{effect}}}</li> | <!-- no effect entry --> }}<!--
 +
 
 +
-->{{ #if: {{{dur|}}} |
 +
<li> '''Duration:''' {{{dur}}}</li> | <!-- no duration entry --> }}<!--
 +
 
 +
-->{{ #if: {{{save|}}} |
 +
<li> '''Saving Throw:''' {{{save}}}</li> | <!-- no saving throw entry --> }}<!--
 +
 
 +
-->{{ #if: {{{SR|}}} |
 +
<li> '''Spell Resistance:''' {{{SR}}}</li> | <!-- no spell resistanceentry --> }}<!--
 +
 
 +
--></ul><!--
 +
 
 +
 
 +
-->{{ #if: {{{flavor|}}} |
 +
 
 +
<p>''{{{flavor}}}''</p> | <!-- no flavor text --> }}<!--
 +
 
 +
-->{{ #if: {{{rules|}}} |
 +
 
 +
<p>{{{rules}}}</p> | <!-- no rules text --> }}<!--
 +
 
 +
-->{{ #if: {{{eternal|}}} |
 +
 
 +
<p>''Eternal:'' {{{eternal}}}</p> | <!-- no eternal entry --> }}<!--
 +
 
 +
 
 +
-->{{ #ifeq: {{NAMESPACE}} | Template | <!-- don't include templates in the categories --> | <!--
 +
 
 +
  -->{{ #if: {{{nocat|}}} | <!-- don't categorize when nocat is set --> |
 +
 
 +
[[Category:D20r {{{type|Spells}}}]]<!--
 +
 
 +
    -->{{ #if: {{{noclasscat|}}} | <!-- don't categorize for each class; use level
 +
 
 +
      -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!--
 +
 
 +
        -->{{ #if: {{{level|}}} |
 +
[[Category:D20r {{{type|Spells}}} (Level {{{level}}})]] | <!--
 +
 
 +
no level entry supplied
 +
        --> }} <!--
 +
nolevelcat false
 +
      --> }} <!--
 +
noclasscat set
 +
    --> | <!--
 +
noclasscat not set, doing class categorization:
 +
 
 +
      -->{{ #if: {{{class1|}}} |
 +
[[Category:D20r {{{class1|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class1|}}} {{{type|Spells}}} (Level {{{class1level}}})]] }}<!--
 +
 
 +
        -->{{ #if: {{{class2|}}} |
 +
[[Category:D20r {{{class2|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class2|}}} {{{type|Spells}}} (Level {{{class2level}}})]] }}<!--
 +
 
 +
          -->{{ #if: {{{class3|}}} |
 +
[[Category:D20r {{{class3|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class3|}}} {{{type|Spells}}} (Level {{{class3level}}})]] }}<!--
 +
 
 +
            -->{{ #if: {{{class4|}}} |
 +
[[Category:D20r {{{class4|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class4|}}} {{{type|Spells}}} (Level {{{class4level}}})]] }}<!--
 +
 
 +
              -->{{ #if: {{{class5|}}} |
 +
[[Category:D20r {{{class5|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class5|}}} {{{type|Spells}}} (Level {{{class5level}}})]] }}<!--
 +
 
 +
                -->{{ #if: {{{class6|}}} |
 +
[[Category:D20r {{{class6|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class6|}}} {{{type|Spells}}} (Level {{{class6level}}})]] }}<!--
 +
 
 +
                  -->{{ #if: {{{class7|}}} |
 +
[[Category:D20r {{{class7|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class7|}}} {{{type|Spells}}} (Level {{{class7level}}})]] }}<!--
 +
 
 +
                    -->{{ #if: {{{class8|}}} |
 +
[[Category:D20r {{{class8|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class8|}}} {{{type|Spells}}} (Level {{{class8level}}})]] }}<!--
 +
 
 +
                      -->{{ #if: {{{class9|}}} |
 +
[[Category:D20r {{{class9|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{class9|}}} {{{type|Spells}}} (Level {{{class9level}}})]] }}<!--
 +
 
 +
                        -->{{ #if: {{{classX|}}} |
 +
[[Category:D20r {{{classX|}}} {{{type|Spells}}}]]{{ #if: {{{nolevelcat|}}} | <!-- don't categorize if nolevelcat is set --> |
 +
[[Category:D20r {{{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:
 +
 
 +
        -->{{ #if: {{{nolevelcat|}}} | <!-- unless nolevelcat is also set --> | <!--
 +
 
 +
          -->{{ #if: {{{level|}}} |
 +
[[Category:D20r {{{type|Spells}}} (Level {{{level}}})]] | <!--
 +
 
 +
no level entry supplied
 +
          --> }} <!--
 +
nolevelcat false
 +
        --> }} <!--
 +
class1 not set
 +
      --> }}<!--
 +
noclasscat not set
 +
    --> }}<!--
 +
nocat not set
 +
  --> }}<!--
 +
not template
 +
--> }}<!--
 +
 
 +
--></includeonly><noinclude><!--
 +
 
 +
-->This template is used to create spell (or similar) entries. The syntax is as follows; italics entries are optional.
 +
<nowiki>{{Spell</nowiki>
 +
  | ''type''        = The type of effect being described. Defaults to "Spells";
 +
                  used for categorizing, so use plurals.
 +
  | ''name''        = The spell's name. Defaults to the page's name.
 +
  | ''desc''        = The spell's descriptor(s). Brackets are added by the template.
 +
  | ''time''        = The spell's casting time. Defaults omitted.
 +
  | ''range''      = The spell's range. Defaults omitted.
 +
  | ''target''      = The spell's target. Defaults omitted.
 +
  | ''area''        = The spell's area. Defaults omitted.
 +
  | ''effect''      = The spell's effect. Defaults omitted.
 +
  | ''dur''        = The spell's duration. Defaults omitted.
 +
  | ''save''        = The spell's saving throw(s). Defaults omitted.
 +
  | ''SR''          = "yes" or "no" to whether SR applies. Defaults omitted.
 +
  | ''flavor''      = The spell's flavor text, formatted in italics. Defaults omitted.
 +
  | ''rules''      = The spell's rules text. Defaults omitted.
 +
  | ''eternal''    = The spell's ''Eternal'' effect. Defaults omitted.
 +
  | ''class1''      = The first class that can use the spell. Defaults omitted,
 +
                  and omits all classes and levels below.
 +
  | ''class1level'' = The spell's level for the first class
 +
  | ''class2''      = Second class
 +
  | ''class2level'' = Second class's spell level
 +
  ...
 +
  | ''class9''      = Ninth class
 +
  | ''class9level'' = Ninth class's spell level
 +
  | ''classX''      = Tenth class; template only supports 10 classes
 +
  | ''classXlevel'' = Tenth class's spell level
 +
  | ''level''      = Spell level, not tied to a class.
 +
                  Used only if no classes are used.
 +
  | ''nocat''      = If set at all, page with this template is
 +
                  not categorized at all.
 +
  | ''noclasscat''  = If set at all, page with this template is
 +
                  not added to each class's categories.
 +
  | ''nolevelcat''  = If set at all, page with this template is
 +
                  not added to each level's categories.
 +
}}
 +
 
 +
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). Templates are never categorized in this manner.
 +
 
 +
== Example ==
 +
<pre>{{D20rSpell
 +
  | name = Magic Missile
 +
  | desc = Eternal, Force
 +
  | class1 = Sorcerer
 +
  | class1level = 1
 +
  | class2 = Wizard
 +
  | class2level = 1
 +
  | time = 1 standard action
 +
  | range = Medium (100 ft. + 10 ft./level)
 +
  | target = Up to five creatures, no two of which can be more than 15 ft. apart
 +
  | dur = Instantaneous
 +
  | save = None
 +
  | SR = Yes
 +
  | flavor = With a wave of her arm, the wizard sends a barrage of arcane energy to home in on her target.
 +
  | rules =
 +
A missile of magical energy darts forth from your fingertip and strikes its target, dealing 1d4+1 points of force damage.
 +
 
 +
The missile strikes unerringly, even if the target is in melee combat or has less than total cover or total concealment. Specific parts of a creature can’t be singled out. Inanimate objects are not damaged by the spell.
 +
 
 +
For every two caster levels beyond 1st, you gain an additional missile—two at 3rd level, three at 5th, four at 7th, and the maximum of five missiles at 9th level or higher. If you shoot multiple missiles, you can have them strike a single creature or several creatures. A single missile can strike only one creature. You must designate targets before you check for spell resistance or roll damage.
 +
  | eternal = Shoot a single missile as above.
 +
}}</pre>
 +
 
 +
{{D20rSpell
 +
  | name = Magic Missile
 +
  | desc = Eternal, Force
 +
  | class1 = Sorcerer
 +
  | class1level = 1
 +
  | class2 = Wizard
 +
  | class2level = 1
 +
  | time = 1 standard action
 +
  | range = Medium (100 ft. + 10 ft./level)
 +
  | target = Up to five creatures, no two of which can be more than 15 ft. apart
 +
  | dur = Instantaneous
 +
  | save = None
 +
  | SR = Yes
 +
  | flavor = With a wave of her arm, the wizard sends a barrage of arcane energy to home in on her target.
 +
  | rules =
 +
A missile of magical energy darts forth from your fingertip and strikes its target, dealing 1d4+1 points of force damage.
 +
 
 +
The missile strikes unerringly, even if the target is in melee combat or has less than total cover or total concealment. Specific parts of a creature can’t be singled out. Inanimate objects are not damaged by the spell.
 +
 
 +
For every two caster levels beyond 1st, you gain an additional missile—two at 3rd level, three at 5th, four at 7th, and the maximum of five missiles at 9th level or higher. If you shoot multiple missiles, you can have them strike a single creature or several creatures. A single missile can strike only one creature. You must designate targets before you check for spell resistance or roll damage.
 +
  | eternal = Shoot a single missile as above.
 +
}}
 +
 
 +
== See Also ==
 +
 
 +
* {{[[:Template:Spell|Spell]]}}
 +
* {{[[:Template:Power|Power]]}}
 +
* {{[[:Template:Maneuver|Maneuver]]}}
 +
 
 +
[[Category:Wiki Templates]]
 +
</noinclude>

Current revision as of 04:41, 4 March 2011

Personal tools
Google AdSense