Difference between revisions of "Template:3.5e Spell"
From Dungeons and Dragons Wiki
m (let's hold off on this for a little bit -- because I think if we do this it's better treated like casting time, with keywords you can enter) |
Luigifan18 (talk | contribs) m (Link-making) |
||
(25 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="blank"> | <includeonly><div class="blank"> | ||
− | {{#if: {{{summary|}}} | | + | {{#if: {{{summary|}}} | [[Summary::{{{summary}}}| ]] }} |
− | + | [[School::{{{school}}}| ]] | |
</div> | </div> | ||
− | {| class=" | + | {| class="dragon monstats" cellspacing="0" cellpadding="0" |
|+ style="font-size: larger; white-space: nowrap;" | {{{name}}} | |+ style="font-size: larger; white-space: nowrap;" | {{{name}}} | ||
|- | |- | ||
| colspan="2" | [[SRD:{{{school}}} School|{{{school}}}]]<!-- | | colspan="2" | [[SRD:{{{school}}} School|{{{school}}}]]<!-- | ||
− | --> {{#if: {{{subschool|}}}|({{#arraymap: {{{subschool}}}|, |x|{{# | + | --> {{#if: {{{subschool|}}}|({{#arraymap: {{{subschool}}}|, |x|[[Subschool::x| ]][[SRD:x Subschool|x]]}})}} <!-- |
− | --> {{#if: {{{desc|}}}|[{{#arraymap: {{{desc}}}|, | | + | --> {{#if: {{{school2|}}}| / [[SRD:{{{school2}}} School|{{{school2}}}]][[School::{{{school2}}}| ]]}} <!-- |
+ | --> {{#if: {{{subschool2|}}}|({{#arraymap: {{{subschool2}}}|, |x|[[Subschool::x| ]][[SRD:x Subschool|x]]}})}} <!-- | ||
+ | --> {{#if: {{{desc|}}} |[{{#arraymap:{{{desc}}}|,|z|{{#if: {{#pos: z|or <nowiki></nowiki>}}|{{#ifeq: {{#pos: z|or <nowiki></nowiki>}}|0|or {{3.5e Spell/Desc Link|{{#sub: z|3|0}}}}[[Descriptor::{{#sub: z|3|0}}| ]]|{{3.5e Spell/Desc Link|{{#sub: z|0|{{#expr: {{#pos: z|or <nowiki></nowiki>}}-1}}}}}}[[Descriptor::{{#sub: z|0|{{#expr: {{#pos: z|or <nowiki></nowiki>}}-1}}}}| ]] or {{3.5e Spell/Desc Link|{{#sub: z|{{#expr: {{#pos: z|or <nowiki></nowiki>}}+3}}|0}}}}[[Descriptor::{{#sub: z|{{#expr: {{#pos: z|or <nowiki></nowiki>}}+3}}|0}}| ]]}}|{{3.5e Spell/Desc Link|z}}[[Descriptor::z| ]]}}}}]}} | ||
|- | |- | ||
! [[SRD:Level (Spell Descriptor)|Level]]: | ! [[SRD:Level (Spell Descriptor)|Level]]: | ||
Line 14: | Line 16: | ||
|- | |- | ||
! [[SRD:Components (Spell Descriptor)|Components]]: | ! [[SRD:Components (Spell Descriptor)|Components]]: | ||
− | | {{#arraymap: {{{comp}}}|,|z|[[Component::z]]}} | + | | {{#arraymap: {{{comp}}}|, |x|{{#arraymap: x|; |z|[[Component::z]]|; }}}} |
|- | |- | ||
! [[SRD:Casting Time (Spell Descriptor)|Casting time]]: | ! [[SRD:Casting Time (Spell Descriptor)|Casting time]]: | ||
Line 21: | Line 23: | ||
|immediate = 1 [[SRD:Immediate Actions|immediate action]] | |immediate = 1 [[SRD:Immediate Actions|immediate action]] | ||
|standard = 1 [[SRD:Standard Actions|standard action]] | |standard = 1 [[SRD:Standard Actions|standard action]] | ||
− | |full = 1 full round | + | |full = 1 [[SRD:Full-Round Actions|full round]] |
|fra = 1 [[SRD:Full-Round Actions|full-round action]] | |fra = 1 [[SRD:Full-Round Actions|full-round action]] | ||
|{{{casttime}}} | |{{{casttime}}} | ||
Line 38: | Line 40: | ||
|long = [[Range::Long]] (400 ft. + 40 ft./level) | |long = [[Range::Long]] (400 ft. + 40 ft./level) | ||
|Long = [[Range::Long]] (400 ft. + 40 ft./level) | |Long = [[Range::Long]] (400 ft. + 40 ft./level) | ||
− | |{{{range}}} | + | |{{{range}}}[[Range::Other| ]] |
}} | }} | ||
|- | |- | ||
Line 48: | Line 50: | ||
|ts = Targets | |ts = Targets | ||
|te|es = Target or Effect | |te|es = Target or Effect | ||
− | |tse|ets = Targets | + | |tse|ets = Targets or Effect |
|ta|at = Target or Area | |ta|at = Target or Area | ||
|tsa|ats = Targets or Area | |tsa|ats = Targets or Area | ||
Line 67: | Line 69: | ||
{{!}} {{{sr}}} | {{!}} {{{sr}}} | ||
}} | }} | ||
− | |} | + | |}{{#if: {{{fluff|}}}| |
− | </includeonly><noinclude> | + | |
+ | ''{{{fluff}}}''|}}{{#if: {{{rules|}}}| | ||
+ | |||
+ | {{{rules}}}|}}{{#if: {{{material|}}}| | ||
+ | |||
+ | '''Material Component:''' {{{material}}}|}}{{#if: {{{focus|}}}| | ||
+ | |||
+ | '''Focus:''' {{{focus}}}|}}{{#if: {{{xp|}}}| | ||
+ | |||
+ | '''XP Cost:''' {{{xp}}}|}}</includeonly><noinclude> | ||
<!-- Tech note: | <!-- Tech note: | ||
[ and ] display as [ and ] , respectively, but won't get parsed as wiki links. | [ and ] display as [ and ] , respectively, but won't get parsed as wiki links. | ||
--> | --> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 18:11, 30 November 2015
Template documentation (for the above template, sometimes hidden or invisible)
Contents
This template creates a formatted table for 3.5 edition spell.
Parameters[edit]
Parameter | Required | Description |
---|---|---|
name | Yes | The name of your spell. |
school | Yes | The school your spell belongs to; ex: "Necromancy". |
subschool | No | The subschools of your spell, if any; ex: "Summoning". |
desc | No | The spell's descriptors, separated by commas, if any; ex: "Fire, Ice". |
lvl | Yes | The spell's level for the various classes that can cast it, comma separated. Make sure you spell out the classes in full. Ex: "Cleric 6, Death 5, Sorcerer/Wizard 6". |
comp | Yes | The spell's components, separated by commas. The only values you can put here are V for verbal, S for somatic, M for material, F for focus, DF for divine focus, M/DF for material or divine focus, and X for XP cost. Ex: "V, S, M/DF" |
casttime | Yes | The type of action it takes to cast the spell. You can either write out the action in full, or use short keywords instead: swift, immediate, standard, and full. |
range | Yes | The spell's range. What you put here is going to be affected by your choice of the next parameter. You can either write out the action in full, or use short keywords instead: personal, touch, close, medium, long. Non-keyword examples: "30 ft.", "Medium (100 ft. + 10 ft./level)". |
tsea | Yes | Targeting information part 1. Put t to get "Target", ts to get "Targets", e to get "Effect", and a to get "Area". These can be combined; te and et become "Target or Effect"; tea becomes "Target, Effect, or Area", etc. |
subj | Yes | Targeting information part 2, what comes after the the above tsea parameter in the spell description. What you put here is going to depend on what you put in tsea: an appropriate subj for Area would be "Cone"; an appropriate subj for Target would be "Five creatures, no two of which can be more than 30 ft. apart". |
dur | Yes | The duration of the spell. If you put (D) on the end, the spell is dismissible. Examples: "1 min./level (D)", "5 rounds", "24 hours". |
save | No | The spell's saving throw, if any. |
sr | Yes | Whether or not the spell allows for spell resistance checks. |
summary | No | The short spell description that will appear on the spell list pages. If you don't include this parameter, make sure you set the "Summary" property in the text. |
Examples[edit]
The spell Age Other, taken from the Dread Codex, is defined in wiki-text as follows:
{{3.5e Spell |name=Age Other |school=Necromancy |lvl=Druid 6, Sorcerer/Wizard 6 |comp=V, S, M |casttime=Standard action |range=Touch |tsea=t |subj=1 creature |dur=Instantaneous |save=Fortitude negates |sr=Yes |summary=Ages a creature 1d10 years. }}
This text becomes:
Necromancy | |
Level: | Druid 6, Sorcerer/Wizard 6 |
---|---|
Components: | V, S, M |
Casting time: | Standard action |
Range: | Touch |
Target: | 1 creature |
Duration: | Instantaneous |
Saving Throw: | Fortitude negates |
Spell Resistance: | Yes |
Visit Template:3.5e Spell/doc to edit this text! (How does this work?)