Difference between revisions of "Template:Ability"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 22: | Line 22: | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:Ability||[[Category:Items with Bonuses to {{{1}}}]]}}'''[[Abilities#{{{1}}}|{{#if: {{{4|}}}|{{{4}}}|{{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|}}}|True}}}} {{{1}}} {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}}}}:]]''' Passive: {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}} {{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|Enhancement}}}}}}} {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to {{#switch: {{{1|}}} | <onlyinclude>{{#ifeq: {{#dplvar:enhview}}|titleonly|'''[[Abilities#{{{1}}}|{{#if: {{{4|}}}|{{{4}}}|{{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|}}}|True}}}} {{{1}}} {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}}}}]]'''|{{#ifeq: {{FULLPAGENAME}} |Template:Ability||[[Category:Items with Bonuses to {{{1}}}]]}}'''[[Abilities#{{{1}}}|{{#if: {{{4|}}}|{{{4}}}|{{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|}}}|True}}}} {{{1}}} {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}}}}:]]''' Passive: {{#ifexpr: {{{2}}} < 0 ||+}}{{{2}}} {{#ifexpr: {{{2}}} < 0 ||{{BonusTypeNameConversion|{{{3|Enhancement}}}}}}} {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to {{#switch: {{{1|}}} | ||
|Well Rounded=All Abilities. | |Well Rounded=All Abilities. | ||
|#default={{{1}}}. | |#default={{{1}}}. | ||
}}</onlyinclude> | }}}}</onlyinclude> |
Revision as of 15:47, 4 December 2019
Ability[edit]
This template is used on equipment for the ability enchantment. It shows the text of the ability as close as possible to the way it looks on an items examine window.
Example Usage | |
{{Ability|Constitution|10|Insight}} | Insightful Constitution +10: Passive: +10 Insight bonus to Constitution. |
{{Ability|Dexterity|-1||Curse of Clumsiness}} | Curse of Clumsiness: Passive: -1 penalty to Dexterity. |
Usage[edit]
{{Ability|(Ability)|(Enhancement Amount)|(Bonus Type)|(Title)}}
Parameter Documentation | |
Ability | This specifies when Ability that is being added. |
Enhancement Amount | This is the amount the ability is increased or decreased. A negative value here will produce "penalty" instead of "bonus". |
Bonus Type | This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement. |
Title | A specific title to this enchantment |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[Abilities#{{{1}}}|Expression error: Unrecognized punctuation character "{". {{{1}}} Expression error: Unrecognized punctuation character "{".{{{2}}}:]] Passive: Expression error: Unrecognized punctuation character "{".{{{2}}} Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". to {{{1}}}.