Difference between revisions of "Template:SpellComponent"

From DDO Compendium
 
(12 intermediate revisions by the same user not shown)
Line 20: Line 20:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{2}}}}}
<onlyinclude>{{#ifeq: {{#dplvar: fromdpl}} |true|{{#switch: {{lc:{{{2}}}}}
| m = [[Material Component|Material]]
| m = {{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}<br>[[{{#dplvar: component}}]]}}
| v = [[Verbal Component|Verbal]]
| v =  
| s = [[Somatic Component|Somatic]]
| s =  
}}{{#switch: {{lc:{{{3}}}}}
}}{{#switch: {{lc:{{{3}}}}}
| m =, [[Material Component|Material]]
| m ={{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}<br>[[{{#dplvar: component}}]]}}
| v =, [[Verbal Component|Verbal]]
| v =
| s =, [[Somatic Component|Somatic]]
| s =
}}{{#switch: {{lc:{{{4}}}}}
}}{{#switch: {{lc:{{{4}}}}}
| m =, [[Material Component|Material]]
| m ={{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}<br>[[{{#dplvar: component}}]]}}
| v =, [[Verbal Component|Verbal]]
| v =
| s =, [[Somatic Component|Somatic]]
| s =
}} {{#if:{{{1|}}}|([[{{{1}}}]])}}</onlyinclude>
}}{{#if:{{{1|}}}|<br>{{RenderIngredient|{{{1}}}}}<br>[[{{{1}}}]]}}|{{#switch: {{lc:{{{2}}}}}
| f = [[Spell Component#Focus|Focus]]
| m = [[Spell Component#Material|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v = [[Spell Component#Verbal|Verbal]]
| s = [[Spell Component#Somatic|Somatic]]
}}{{#switch: {{lc:{{{3}}}}}
| f = , [[Spell Component#Focus|Focus]]
| m = , [[Spell Component#Material|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v = , [[Spell Component#Verbal|Verbal]]
| s = , [[Spell Component#Somatic|Somatic]]
}}{{#switch: {{lc:{{{4}}}}}
| f = , [[Spell Component#Focus|Focus]]
| m = , [[Spell Component#Material|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v = , [[Spell Component#Verbal|Verbal]]
| s = , [[Spell Component#Somatic|Somatic]]
}}{{#switch: {{lc:{{{5}}}}}
| f = , [[Spell Component#Focus|Focus]]
| m = , [[Spell Component#Material|Material]]{{#if: {{#dplvar: component}}|{{IconImage|{{#dplvar: component}}}}[[{{#dplvar: component}}]]}}
| v = , [[Spell Component#Verbal|Verbal]]
| s = , [[Spell Component#Somatic|Somatic]]
}} {{#if:{{{1|}}}|([[{{{1}}}]])}}}}</onlyinclude>

Latest revision as of 23:35, 11 November 2022

SpellComponent[edit]

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

Example Usage
{{SpellComponent||M|S|V}}Material, Somatic, Verbal
{{SpellComponent|Potion of Cure Light Wounds|M|S|V}}Material, Somatic, Verbal (Potion of Cure Light Wounds)
{{SpellComponent||S}}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.