Difference between revisions of "Template:SpellComponent"

From DDO Compendium
Line 20: Line 20:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{2}}}}}
<onlyinclude>
{{#ifeq: {{#dplvar: fromdpl}} |true|
{{#switch: {{lc:{{{2}}}}}
| m = {{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v =
| s =
}}{{#switch: {{lc:{{{3}}}}}
| m =<br>{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v =
| s =
}}{{#switch: {{lc:{{{4}}}}}
| m =<br>{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v =
| s =
}}{{#if:{{{1|}}}|<br>[[{{{1}}}]]}}|{{#switch: {{lc:{{{2}}}}}
| m = [[Material Component|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| m = [[Material Component|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v = [[Verbal Component|Verbal]]
| v = [[Verbal Component|Verbal]]
| s = [[Somatic Component|Somatic]]
| s = [[Somatic Component|Somatic]]
}}{{#switch: {{lc:{{{3}}}}}
}}{{#switch: {{lc:{{{3}}}}}
| m ={{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,}} [[Material Component|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| m =, [[Material Component|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v ={{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,}} [[Verbal Component|Verbal]]
| v =, [[Verbal Component|Verbal]]
| s ={{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,}} [[Somatic Component|Somatic]]
| s =, [[Somatic Component|Somatic]]
}}{{#switch: {{lc:{{{4}}}}}
}}{{#switch: {{lc:{{{4}}}}}
| m ={{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,}} [[Material Component|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| m =, [[Material Component|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v ={{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,}} [[Verbal Component|Verbal]]
| v =, [[Verbal Component|Verbal]]
| s ={{#ifeq: {{#dplvar: fromdpl}} |true|<br>|,}} [[Somatic Component|Somatic]]
| s =, [[Somatic Component|Somatic]]
}} {{#if:{{{1|}}}|([[{{{1}}}]])}}</onlyinclude>
}} {{#if:{{{1|}}}|([[{{{1}}}]])}}</onlyinclude>

Revision as of 19:53, 30 June 2019

SpellComponent[edit]

This template is used to nicely format the components necessary for a spell.

Example Usage
{{SpellComponent||M|S|V}}{{#ifeq: |true| |Material, Somatic, Verbal
{{SpellComponent|Potion of Cure Light Wounds|M|S|V}}{{#ifeq: |true|
Potion of Cure Light Wounds|Material, Somatic, Verbal (Potion of Cure Light Wounds)
{{SpellComponent||S}}{{#ifeq: |true| |Somatic

Usage[edit]

{{SpellComponent|(special)|(component)}}

Parameter Documentation
specialAny special component required for this spell - not material components. So this would not include any of the regular components that are used during the "Material" type, such as "Two-Headed Coin", "Pinch of Fine Sand" or "Licorice Root". This is because a spell may use different material components for the classes it is in.
componentThe spell component needed, repeat up to 3 times.

Template

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



{{#ifeq: |true| |