Difference between revisions of "Template:SpellDPLTable"
From DDO Compendium
m |
MNDeveloper (talk | contribs) |
||
(33 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{TemplateDocumentation | |||
|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| | |debug=3 | ||
|category={{{1|NotACategory}}} | |||
|uses = Template:Spell | |uses = Template:Spell | ||
| | |ordermethod = title | ||
|allowcachedresults=true | |||
|cacheperiod=1209600 | |||
|include={Spell¦SpellDPL} | |include={Spell¦SpellDPL} | ||
|table = class="compendiumtable | |table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Name,Effect,Levels,Metamagics,Cost | ||
|noresultsheader= | |noresultsheader= | ||
|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= | |||
|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= | |||
|count= | |||
}} | |||
}} | }} | ||
}}{{#dplvar:set|displaystyle|}}{{#dplvar:set|fromdpl|}}{{#dplvar:set|component|}} | |||
</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 | |
Category | The name of the category to display. |
Component | The 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.