Difference between revisions of "Template:SpellDPLTable"

From DDO Compendium
 
(16 intermediate revisions by 2 users not shown)
Line 9: Line 9:
|parameter2description=The name of the component that is required if the spells have a material component.
|parameter2description=The name of the component that is required if the spells have a material component.
}}
}}
</noinclude><includeonly>{{#dplvar:set|displaystyle|Table}}{{#dplvar:set|fromdpl|true}}
</noinclude><includeonly>{{#dplvar:set|displaystyle|Table}}{{#dplvar:set|fromdpl|true}}{{#dplvar:set|component|{{{2}}}}}
{{#if: {{{2|}}}|Spells at this level that have a material component require either [[Omnispell Dust]] or {{IconImage|{{{2}}}}}[[{{{2}}}]]}}
{{#if: {{{2|}}}|Most spells at this level that have a material component require either [[Omnispell Dust]] or {{IconImage|{{{2}}}}}[[{{{2}}}]]}}
{{#ifeq: {{{1}}}|All Spells|
{{#DPL:
{{#DPL:
|debug=3
|category={{{1|NotACategory}}}
|category={{{1|NotACategory}}}
|uses = Template:Spell
|uses = Template:Spell
|tablesortcol = 1
|ordermethod = title
|allowcachedresults=true
|cacheperiod=1209600
|include={Spell¦SpellDPL}
|include={Spell¦SpellDPL}
|table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Name,Effect,Levels,Metamagics,Cost,Components
|table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Name,Effect,Levels,Metamagics,Cost
|noresultsheader=&nbsp;
|noresultsheader=&nbsp;
|count=
}}|{{#if: {{{2|}}}|{{#DPL:
|debug=3
|category={{{1|NotACategory}}}
|uses = Template:Spell
|ordermethod = title
|allowcachedresults=true
|cacheperiod=1209600
|include={Spell¦SpellDPLClass}
|table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Name,Effect,Metamagics,Cost,Components
|noresultsheader=&nbsp;
|count=
}}|{{#DPL:
|debug=3
|category={{{1|NotACategory}}}
|uses = Template:Spell
|ordermethod = title
|include={Spell¦SpellDPL}
|allowcachedresults=true
|cacheperiod=1209600
|table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Name,Effect,Levels,Metamagics,Cost
|noresultsheader=&nbsp;
|count=
}}
}}
}}
}}{{#dplvar:set|displaystyle|}}{{#dplvar:set|fromdpl|}}{{#dplvar:set|component|}}
</includeonly>
</includeonly>

Latest revision as of 12:51, 2 August 2024


SpellDPLTable[edit]

This template is used to generate a list of spells based on the category of the spell

Usage[edit]

{{SpellDPLTable|(Category)|(Component)}}

Parameter Documentation
CategoryThe name of the category to display.
ComponentThe name of the component that is required if the spells have a material component.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.