Difference between revisions of "Template:Spell"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(55 intermediate revisions by 2 users not shown) | |||
Line 19: | Line 19: | ||
|icon= | |icon= | ||
|link= | |link= | ||
|dice= | |||
|forms= | |||
|parent= | |||
|children= | |||
|primer= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 74: | Line 79: | ||
|parameter17name = link | |parameter17name = link | ||
|parameter17description = The name of the page that this is on. Used by DPL | |parameter17description = The name of the page that this is on. Used by DPL | ||
|parameter18name = dice | |||
|parameter18description = The information about the D&D Dice damage/healing. | |||
|parameter19name = forms | |||
|parameter19description = This is the list of valid forms for the spell. Use [[Template:SpellForm]] | |||
|parameter20name = parent | |||
|parameter20description = Set this to the spell that is the parent of this one. I.E. [[Resist Energy]] is the parent of [[Resist Energy: Fire]]. Use [[Template:PageLink]] | |||
|parameter21name = children | |||
|parameter21description = This should contain a bullited list of spells that are children of this one. Use [[Template:SpellChild]] | |||
|parameter22name = primer | |||
|parameter22description = Which primer element is this spell in | |||
|parameter22values= | |||
* Crimsonite | |||
* Gildleaf | |||
* Ceruleite | |||
}} | }} | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#dplvar:set|spellischild|{{{parent|}}}}} | ||
{{SpellsHeader}}<br> | {{SpellsHeader}}<br> | ||
<table class="item-table background-color"> | <table class="item-table background-color"> | ||
Line 89: | Line 108: | ||
{{IconImage|Spell_{{{name}}}|{{{icon|}}}}} | {{IconImage|Spell_{{{name}}}|{{{icon|}}}}} | ||
</td> | </td> | ||
<td class="title"> | <td class="title">'''{{{name}}}'''<br>{{{school}}}</td> | ||
'''{{{name}}}'''<br>{{{school}}}</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
Line 96: | Line 114: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td style="margin-top:5px">{{#if: {{{level|}}}|'''Level:''' {{{level|}}}<br>}}{{#if: {{{cost|}}}|{{{cost|}}}<br>}}{{#if: {{{components|}}}|'''Components:''' {{{components|}}}<br>}}{{#if: {{{metamagic|}}}|'''Metamagic:''' {{{metamagic|}}}<br>}}{{#if: {{{range|}}}|'''Range:''' {{{range|}}}<br>}}{{#if: {{{target|}}}|'''Target:''' {{{target|}}}<br>}}{{#if: {{{ | <td style="margin-top:5px">{{#if: {{{level|}}}|'''Level:''' {{{level|}}}<br>}}{{#if: {{{cost|}}}|{{{cost|}}}<br>}}{{#if: {{{components|}}}|'''Components:''' {{{components|}}}<br>}}{{#if: {{{metamagic|}}}|'''Metamagic:''' {{{metamagic|}}}<br>}}{{#if: {{{range|}}}|'''Range:''' {{{range|}}}<br>}}{{#if: {{{target|}}}|'''Target:''' {{{target|}}}<br>}}{{#if: {{{forms|}}}|'''Valid Forms:''' {{{forms|}}}<br>}}{{#if: {{{primer|}}}|'''Primer Element:''' {{#switch: {{lc:{{{primer|}}}}} | ||
'''Spell Resistance:''' {{#if: {{{sr|}}}|{{{sr}}}|No}}<br></td> | |crimsonite={{ColorText|Red|Crimsonite}} | ||
|gildleaf={{ColorText|Yellow|Gildleaf}} | |||
|ceruleite ={{ColorText|Blue|Ceruleite}}}}<br>}}{{#if: {{{duration|}}}|'''Duration:''' {{{duration|}}}<br>}}{{#if: {{{cooldown|}}}|{{{cooldown|}}}<br>}}'''Save:''' {{#if: {{{save|}}}|{{{save}}}|None}}<br>{{#if: {{{school|}}}|'''School:''' {{{school}}}<br>|}}'''Spell Resistance:''' {{#if: {{{sr|}}}|{{{sr}}}|No}}{{#if: {{{dice|}}}|<br><br>'''D&D Dice:''' {{{dice}}}}}</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
Line 105: | Line 125: | ||
<tr> | <tr> | ||
<td class="extra-details"> | <td class="extra-details"> | ||
'''Description:''' {{{description|}}} | '''Description:''' {{{description|}}}{{#if: {{{notes|}}}|<br><br>'''Notes:''' | ||
{{#if: {{{notes|}}}|<br>'''Notes:''' | {{{notes|}}}}} | ||
{{{notes|}}}<br> | {{#if: {{{children|}}}|<br><br>'''Spells Granted by this Spell:''' | ||
{{#if: {{{soldby|}}}|''' | {{{children}}}}} | ||
{{{soldby}}}}} | {{#if: {{{soldby|}}}| | ||
<br>'''Vendors:''' | |||
{{{soldby}}}}}{{#if: {{{parent|}}}| | |||
<br>'''Parent:''' {{{parent}}}<br>''This spell is only available from the parent''}}</td> | |||
</tr>{{#dpl: | |||
|resultsheader=<tr><td class="extra-details">'''Spell-Like Ability Enhancements:'''<div style="-webkit-column-count:2;column-count:2;"> | |||
|resultsfooter=</div></td></tr> | |||
|noresultsheader= | |||
|linksto={{ARTICLEPAGENAME}} | |||
|uses=Template:EnhItem¦Template:EnhItemSelectorOption | |||
}}{{#dpl: | |||
|resultsheader=<tr><td class="extra-details">'''Found on:'''<div style="-webkit-column-count:2;column-count:2;"> | |||
|resultsfooter=</div></td></tr> | |||
|noresultsheader= | |||
|linksto={{ARTICLEPAGENAME}} | |||
|category=Clickie Items | |||
}}{{#dpl: | |||
|resultsheader=<tr><td class="extra-details">'''Found on:'''<div style="-webkit-column-count:2;column-count:2;"> | |||
|resultsfooter=</div></td></tr> | |||
|noresultsheader= | |||
|linksto={{ARTICLEPAGENAME}} | |||
|uses=Template:RuneArm | |||
}}{{#dpl: | |||
|resultsheader=<tr><td class="extra-details">'''Hirelings:'''<div style="-webkit-column-count:2;column-count:2;"> | |||
|resultsfooter=</div></td></tr> | |||
|noresultsheader= | |||
|linksto={{ARTICLEPAGENAME}} | |||
|uses=Template:Hireling | |||
}}</table> | |||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table>{{#ifeq:{{#pos:{{lc:{{{description}}}}}|light and alignment spell power}}|||[[Category:Spells that boost Light and Alignment Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|alignment and light spell power}}|||[[Category:Spells that boost Light and Alignment Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|universal spell power}}|||[[Category:Spells that boost Universal Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|cold spell power}}|||[[Category:Spells that boost Cold Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|fire spell power}}|||[[Category:Spells that boost Fire Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|repair and rust spell power}}|||[[Category:Spells that boost Repair and Rust Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|rust and repair spell power}}|||[[Category:Spells that boost Repair and Rust Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|electric spell power}}|||[[Category:Spells that boost Electric Spell Power]]|}}{{#ifeq:{{#pos:{{lc:{{{description}}}}}|force spell power}}|||[[Category:Spells that boost Force Spell Power]][[Category:Spells that boost Physical and Untyped Spell Damage]]|}}</includeonly> | ||
</includeonly> |
Latest revision as of 12:49, 1 November 2022
{{Template:Spell |name = |school= |level = |cost= |components= |metamagic = |range = |target = |duration= |save = |sr = |cooldown= |description = |notes= |soldby= |icon= |link= |dice= |forms= |parent= |children= |primer= }}
Spell[edit]
This template is used to render information about a spell. Example of the Template in Use: Ablative Armor.
Usage[edit]
Parameter Documentation | |
name | The name of the spell. |
school | Enter the school this spell is in, using Template:SpellSchool |
level | Enter the class levels needed, using Template:SpellLevel |
cost | The cost, whether in Spell Points, Hit Points, or some other. Use Template:SpellCost |
components | The components that are needed to cast this spell. Use Template:SpellComponent |
metamagic | Which metamagics work on this spell. Use Template:SpellMeta |
range | What is the range for this spell. Use Template:SpellRange |
target | What targets are used by the spell. Use Template:SpellTarget |
duration | How long the spell lasts. Use Template:SpellDuration |
save | Describe a save that could be done |
sr | Describe any spell resistanace |
cooldown | How long before the next time you can cast the spell. . Use Template:SpellCooldown |
description | Enter the description of what this spell does, |
notes | Optional, adds notes to the spell, put bugs if any in here |
soldby | A bulleted list of vendors that sell this. Use Template:PageLink |
icon | The name of the image to use. There is a default, so this should only be used if the default doesn't make sense |
link | The name of the page that this is on. Used by DPL |
dice | The information about the D&D Dice damage/healing. |
forms | This is the list of valid forms for the spell. Use Template:SpellForm |
parent | Set this to the spell that is the parent of this one. I.E. Resist Energy is the parent of Resist Energy: Fire. Use Template:PageLink |
children | This should contain a bullited list of spells that are children of this one. Use Template:SpellChild |
primer | Which primer element is this spell in Possible Values:
|
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.