Difference between revisions of "Template:SaveDC"

From DDO Compendium
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{TemplateDocumentation
{{TemplateDocumentation
|name=EnhDC
|name=SaveDC
|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|color}}</nowiki>
|category=Shared Templates
|example1output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}
|example1=<nowiki>{{SaveDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}</nowiki>
|example2=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}</nowiki>
|example1output={{SaveDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}
|example2output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}}
|example2=<nowiki>{{SaveDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}}</nowiki>
|example3=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}</nowiki>
|example2output={{SaveDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}}
|example3output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}
|example3=<nowiki>{{SaveDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|tooltip}}</nowiki>
|example4=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}</nowiki>
|example3output={{SaveDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|tooltip}}
|example4output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}
|example4=<nowiki>{{SaveDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}</nowiki>
|example4output={{SaveDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}
|parameter1name = save
|parameter1name = save
|parameter1description = Which SAVE is being used
|parameter1description = Which SAVE is being used
Line 27: Line 28:
* tooltip
* tooltip
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{6}}}}}
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{6}}}}}
|color=<span style="Color: #00eeef">{{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}|&nbsp;+&nbsp;}}}}
|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}}} Modifier{{#if: {{{5|}}}|&nbsp;+&nbsp;}}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}</span>
{{#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 = DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}|+}}}}{{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}|+}}}}{{#if: {{{4|}}}|{{{4}}} Modifier{{#if: {{{5|}}}|+}}}}{{#if: {{{5|}}}|{{{5}}} Bonus}} | placement=bottom}}
|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}}
}}</onlyinclude>
}}</onlyinclude>

Latest revision as of 01:05, 5 September 2018


SaveDC[edit]

Template is used to render the DC display within enhancements

Example Usage
{{SaveDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}Fortitude DC: 10 + Druid Level + Highest of Wisdom or Strength Modifier + Stun Bonus
{{SaveDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}}Fortitude DC: 10 + 1/2 Artificer Level + Intelligence Modifier + Sunder Bonus
{{SaveDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|tooltip}}Fortitude Save
{{SaveDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}Fortitude Save

Usage[edit]

{{SaveDC|(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.