Difference between revisions of "Template:SaveDC"

From DDO Compendium
Line 3: Line 3:
|name=EnhDC
|name=EnhDC
|description= Template is used to render the DC display within enhancements
|description= Template is used to render the DC display within enhancements
|example1=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}</nowiki>
|example1=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}</nowiki>
|example1output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}
|example1output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}
|example2=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}</nowiki>
|example2=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}</nowiki>
|example2output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}
|example2output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}}
|example3=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}</nowiki>
|example3output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}
|example4=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}</nowiki>
|example4output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}
|parameter1name = save
|parameter1name = save
|parameter1description = Which SAVE is being used
|parameter1description = Which SAVE is being used
Line 17: Line 21:
|parameter5name = bonuses
|parameter5name = bonuses
|parameter5description = Any bonuses (i.e. stun)
|parameter5description = Any bonuses (i.e. stun)
}}</noinclude><onlyinclude><span style="Color: #00eeef">{{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}
|parameter6name = type
{{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}</span></onlyinclude>
|parameter6description = Which type of display do you want
|parameter6values=
* color
* tooltip
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{6}}}}}
|color=<span style="Color: #00eeef">{{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}
{{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}</span>
|tooltip={{#bootstrap_tooltip: {{{1}}} Save|text={{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}
{{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}
 
</span></onlyinclude>

Revision as of 16:06, 19 July 2018


EnhDC[edit]

Template is used to render the DC display within enhancements

Example Usage
{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}Template:EnhDC
{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}Template:EnhDC
{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}Template:EnhDC
{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}Template:EnhDC

Usage[edit]

{{EnhDC|(save)|(constant)|(level)|(Ability Mod)|(bonuses)|(type)}}

Parameter Documentation
saveWhich SAVE is being used
constantAny constant added to the DC
levelAny full or partial levels, include the amount of partial (i.e. 1/2 Artificer)
Ability ModAny ability mod added
bonusesAny bonuses (i.e. stun)
typeWhich type of display do you want
Possible Values:
  • color
  • tooltip

Template

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


{{#switch: {{{6}}}

|color={{{1}}} DC: |tooltip={{#bootstrap_tooltip: {{{1}}} Save|text={{{1}}} DC: