Difference between revisions of "Template:SpellDPLTable"

From DDO Compendium
m
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>Usage: <code><nowiki>{{SpellDPLTable|(Category)}}</nowiki></code>
<noinclude>
 
{{TemplateDocumentation
DPL Template Used: [[Template:SpellDPL]]
|name = SpellDPLTable
</noinclude>
|description = This template is used to generate a list of spells based on the category of the spell
<includeonly>{{#dplvar:set|displaystyle|Table}}
|category=DPL Templates
|parameter1name=Category
|parameter1description=The name of the category to display.
|parameter2name=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}}{{#dplvar:set|component|{{{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:
|category={{{1|DONOTMAKETHISACATEGORY}}}
|debug=3
|category={{{1|NotACategory}}}
|uses = Template:Spell
|uses = Template:Spell
|tablesortcol = 1
|ordermethod = title
|allowcachedresults=true
|include={Spell¦SpellDPL}
|include={Spell¦SpellDPL}
|table = class="compendiumtable mw-collapsible sortable filterable",-,Name,Effect,Levels
|table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Name,Effect,Levels,Metamagics,Cost
|noresultsheader=None
|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>

Latest revision as of 23:25, 20 June 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.