Difference between revisions of "Template:SaveDC"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 5: | Line 5: | ||
|example1=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}}</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|color}} | |example1output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|color}} | ||
|example2=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder| | |example2=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}}</nowiki> | ||
|example2output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}} | |example2output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|color}} | ||
|example3=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}}</nowiki> | |example3=<nowiki>{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|tooltip}}</nowiki> | ||
|example3output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun}} | |example3output={{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|tooltip}} | ||
|example4=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}}</nowiki> | |example4=<nowiki>{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}}</nowiki> | ||
|example4output={{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder}} | |example4output={{EnhDC|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 29: | Line 29: | ||
|color=<span style="Color: #00eeef">{{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}| + }}}} | |color=<span style="Color: #00eeef">{{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}| + }}}} | ||
{{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}| + }}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}| + }}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}</span> | {{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}| + }}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}| + }}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}</span> | ||
|tooltip={{#bootstrap_tooltip: {{{1}}} Save|text={{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}| + }}}} | |tooltip={{#bootstrap_tooltip: {{{1}}} Save | text = {{{1}}} DC: {{#if: {{{2|}}}|{{{2}}}{{#if: {{{3|}}}{{{4|}}}{{{5|}}}| + }}}} | ||
{{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}| + }}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}| + }}}}{{#if: {{{5|}}}|{{{5}}} Bonus}}|placement=bottom}} | {{#if: {{{3|}}}|{{{3}}} Level{{#if: {{{4|}}}{{{5|}}}| + }}}}{{#if: {{{4|}}}|{{{4}}} Mod{{#if: {{{5|}}}| + }}}}{{#if: {{{5|}}}|{{{5}}} Bonus}} | placement=bottom}} | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 16:10, 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|color}} | Template:EnhDC |
{{EnhDC|Fortitude|10|Druid|Highest of Wisdom or Strength|Stun|tooltip}} | Template:EnhDC |
{{EnhDC|Fortitude|10|1/2 Artificer|Intelligence|Sunder|tooltip}} | Template:EnhDC |
Usage[edit]
{{EnhDC|(save)|(constant)|(level)|(Ability Mod)|(bonuses)|(type)}}
Parameter Documentation | |
save | Which SAVE is being used |
constant | Any constant added to the DC |
level | Any full or partial levels, include the amount of partial (i.e. 1/2 Artificer) |
Ability Mod | Any ability mod added |
bonuses | Any bonuses (i.e. stun) |
type | Which type of display do you want Possible Values:
|
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.