Difference between revisions of "Template:EnhancementSLA"

From DDO Compendium
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:Template]]{{TemplateDocumentation
<noinclude>{{TemplateDocumentation
|name = EnhancementSLA
|name = EnhancementSLA
|description = This template is used on equipment for the SLA enhancement benefit.   
|description = This template is used on enhancement tress for the SLA benefit.   
|example1 = <nowiki>{{EnhancementSLA|Bless}}</nowiki>
|category=Enhancement Templates
|example1output = {{EnhancementSLA|Bless}}
|example1 = <nowiki>{{EnhancementSLA|Bless (Spell)}}</nowiki>
|example1output = {{EnhancementSLA|Bless (Spell)}}
|example2 = <nowiki>{{EnhancementSLA|Bless||True}}</nowiki>
|example2 = <nowiki>{{EnhancementSLA|Bless||True}}</nowiki>
|example2output = {{EnhancementSLA|Bless||True}}
|example2output = {{EnhancementSLA|Bless||True}}
|example3=<nowiki>{{EnhancementSLA|Devour the Soul|Spell Trap the Soul}}</nowiki>
|example3=<nowiki>{{EnhancementSLA|Devour the Soul|Spell Trap the Soul}}</nowiki>
|example3output={{EnhancementSLA|Devour the Soul|Spell Trap the Soul}}
|example3output={{EnhancementSLA|Devour the Soul|Spell Trap the Soul}}
|example4=<nowiki>{{EnhancementSLA|Bless||True|6 Seconds}}</nowiki>
|example4=<nowiki>{{EnhancementSLA|Bless||True|6 Seconds|2 Spell Points}}</nowiki>
|example4output={{EnhancementSLA|Bless||True|6 Seconds}}
|example4output={{EnhancementSLA|Bless||True|6 Seconds|2 Spell Points}}
|parameter1name = Spell
|parameter1name = Spell
|parameter1description = This is the spell that will be cast.
|parameter1description = This is the spell that will be cast.
|parameter1values =
|parameter2name = Icon
|parameter2name = Icon
|parameter2description = This is the icon to use, in case the spell has a name that won't work in the icon name.
|parameter2description = This is the icon to use, in case the spell has a name that won't work in the icon name.
|parameter2values =
|parameter3name = Hide metamagic line
|parameter3name = Hide metamagic line
|parameter3description = If this is true, the metamagic line will be hidden.
|parameter3description = If this is true, the metamagic line will be hidden.
|parameter3values =
|parameter4name = Cooldown
|parameter4name = Cooldown
|parameter4description = The cooldown, renders nothing if not specified
|parameter4description = The cooldown, renders nothing if not specified
|parameter4values =
|parameter5name = Cost
|parameter5name = Cost
|parameter5description = Cost to cast the SLA, renders nothing if not specified
|parameter5description = Cost to cast the SLA, renders nothing if not specified
|parameter5values =  
|parameter6name = Include Description
}}</noinclude><onlyinclude>{{#dplvar:set|customicon|{{{2|}}}|customcooldown|{{{4|}}}|customcost|{{{5|}}}}}<table class="{{#ifeq: {{lc:{{#dplvar:displaystyle}}}}|table|compendiumtablecolor|background-color}}" style="width:100%">{{#DPL:
|parameter6description = If this is true, the description from the spell will be shown
|parameter7name = Include Metamagic
|parameter7description = If this is true, the metamagic line from the spell will be shown
|parameter8name = Include Primer
|parameter8description = If this is true, the primer line from the spell will be shown
}}</noinclude><onlyinclude>{{#dplvar:set|customicon|{{{2|}}}|customcooldown|{{{4|}}}|customcost|{{{5|}}}|showdesc|{{{6|}}}|showmeta|{{{7|}}}|showprimer|{{{8|}}}|fromdpl|}}<table class="{{#ifeq: {{lc:{{#dplvar:displaystyle}}}}|table|compendiumtablecolor|background-color}}" style="width:100%">{{#ifeq: {{FULLPAGENAME}} |Template:EnhancementSLA||{{#DPL:
|title={{{1}}}
|title={{{1}}}
|uses=Template:Spell
|uses=Template:Spell
|mode=userformat
|mode=userformat
|format=,<tr style="vertical-align:top">,</tr>,
|format=,<tr style="vertical-align:top">,</tr>,
|noresultsheader={{IconImage|Spell {{{1}}}|{{{2|}}}}} Spell-Like Ability: '''[[{{{1}}}]]'''{{#if: {{{4|}}}|<br>'''Cooldown:''' {{{4}}}}}{{#if: {{{5|}}}|<br>'''Activation Cost:''' {{{5}}}}}
|noresultsheader={{IconImageWithLink|Spell {{{1}}}|{{{2|}}}}} Spell-Like Ability: '''[[{{{1}}}]]'''{{#if: {{{4|}}}|<br>'''Cooldown:''' {{{4}}}}}{{#if: {{{5|}}}|<br>'''Activation Cost:''' {{{5}}}}}
|include={Spell¦SpellSLADPL}
|include={Spell¦SpellSLADPL}
}}</table>{{#if: {{{3|}}}||
}}}}{{#if: {{{3|}}}||</tr><tr><td></td><td style="width:100%;padding-left:5px;padding-top:10px">Metamagic Feats may be used when casting Spell-Like Abilities at no additional cost.</td>}}</table>{{#dplvar:set|customicon||customcooldown||customcost||showdesc||showmeta||showprimer|}}</onlyinclude>
You may use Metamagic Feats when casting Spell-Like Abilities at no additional cost.}}</onlyinclude>

Latest revision as of 18:14, 22 July 2023

EnhancementSLA[edit]

This template is used on enhancement tress for the SLA benefit.

Example Usage
{{EnhancementSLA|Bless (Spell)}}
Metamagic Feats may be used when casting Spell-Like Abilities at no additional cost.
{{EnhancementSLA|Bless||True}}
{{EnhancementSLA|Devour the Soul|Spell Trap the Soul}}
Metamagic Feats may be used when casting Spell-Like Abilities at no additional cost.
{{EnhancementSLA|Bless||True|6 Seconds|2 Spell Points}}

Usage[edit]

{{EnhancementSLA|(Spell)|(Icon)|(Hide metamagic line)|(Cooldown)|(Cost)|(Include Description)|(Include Metamagic)|(Include Primer)}}

Parameter Documentation
SpellThis is the spell that will be cast.
IconThis is the icon to use, in case the spell has a name that won't work in the icon name.
Hide metamagic lineIf this is true, the metamagic line will be hidden.
CooldownThe cooldown, renders nothing if not specified
CostCost to cast the SLA, renders nothing if not specified
Include DescriptionIf this is true, the description from the spell will be shown
Include MetamagicIf this is true, the metamagic line from the spell will be shown
Include PrimerIf this is true, the primer line from the spell will be shown

Template

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


Metamagic Feats may be used when casting Spell-Like Abilities at no additional cost.