Difference between revisions of "Template:Save"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|example1 = <nowiki>{{Save|Fortitude|3|InsightFul}}</nowiki> | |example1 = <nowiki>{{Save|Fortitude|3|InsightFul}}</nowiki> | ||
|example1output = {{Save|Fortitude|3|InsightFul}} | |example1output = {{Save|Fortitude|3|InsightFul}} | ||
|example2 = <nowiki>{{Save|Fortitude|3}}</nowiki> | |||
|example2output = {{Save|Fortitude|3}} | |||
|example3 = <nowiki>{{Save|Fortitude|-3}}</nowiki> | |||
|example3output = {{Save|Fortitude|-3}} | |||
|parameter1name = Save Type | |parameter1name = Save Type | ||
|parameter1description = This is which save to give the bonus. | |parameter1description = This is which save to give the bonus. | ||
|parameter2name = Enhancement Amount | |parameter2name = Enhancement Amount | ||
|parameter2description = This is the amount that the save is increased. | |parameter2description = This is the amount that the save is increased. | ||
|parameter3name = Bonus Type | |parameter3name = Bonus Type | ||
|parameter3description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to | |parameter3description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Resistance. Put Unique to make it stack with anything except itself. | ||
| | |parameter4name = Title | ||
|parameter4description = The title of the enchantment if not the same as the default | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{# | <onlyinclude>{{EnchTitle|Saves#{{{1}}}|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{1}}} Save {{#ifexpr: {{{2}}} < 0||+}}{{{2}}}|{{{4|}}}}}{{EnchBody|This item gives a {{#ifexpr: {{{2}}} < 0||+}}{{{2}}} {{#ifexpr: {{{2}}} < 0|penalty|{{BonusTypeNameConversion|{{{3|Resistance}}}}} bonus}} to your {{{1}}} saves{{#ifeq: {{lc:{{{3|}}}}}|unique| that stacks with all other bonuses except {{#if: {{{4|}}}|{{{4}}}|{{BonusTypeNameConversion|{{{3|}}}|True}} {{{1}}} Save {{#ifexpr: {{{2}}} < 0||+}}{{{2}}}}}}}.}}{{EnchCat|Save|Items with a Bonus to {{ucfirst:{{lc:{{{1}}}}}}} Saves}}</onlyinclude> | ||
</onlyinclude> |
Latest revision as of 22:38, 14 December 2019
Save[edit]
This template is used on equipment for bonus to individual Saves.
Example Usage | |
{{Save|Fortitude|3|InsightFul}} | Insightful Fortitude Save +3: This item gives a +3 Insight bonus to your Fortitude saves. |
{{Save|Fortitude|3}} | Fortitude Save +3: This item gives a +3 Resistance bonus to your Fortitude saves. |
{{Save|Fortitude|-3}} | Fortitude Save -3: This item gives a -3 penalty to your Fortitude saves. |
Usage[edit]
{{Save|(Save Type)|(Enhancement Amount)|(Bonus Type)|(Title)}}
Parameter Documentation | |
Save Type | This is which save to give the bonus. |
Enhancement Amount | This is the amount that the save is increased. |
Bonus Type | This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Resistance. Put Unique to make it stack with anything except itself. |
Title | The title of the enchantment if not the same as the default |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[Saves#{{{1}}}|{{{1}}} Save Expression error: Unrecognized punctuation character "{".{{{2}}}:]] This item gives a Expression error: Unrecognized punctuation character "{".{{{2}}} Expression error: Unrecognized punctuation character "{". to your {{{1}}} saves.