Difference between revisions of "Template:Accuracy"
From DDO Compendium
MNDeveloper (talk | contribs) |
|||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{TemplateDocumentation | |||
<noinclude>This template is used for | |name = Accuracy | ||
|description = This template is used on equipment for the Accuracy enchantment. It shows the text of the enchantment as close as possible to the way it looks on an items examine window. | |||
|category=Item Enchantment Template | |||
|example1 = <nowiki>{{Accuracy|3}}</nowiki> | |||
|example1output = {{Accuracy|3}} | |||
< | |example2 = <nowiki>{{Accuracy|3|Enhancement|Evil}}</nowiki> | ||
|example2output = {{Accuracy|3|Enhancement|Evil}} | |||
|example3 = <nowiki>{{Accuracy|3|Competence||Attack Bonus +3}}</nowiki> | |||
|example3output = {{Accuracy|3|Competence||Attack Bonus +3}} | |||
|parameter1name = Enhancement Amount | |||
|parameter1description = This is the amount that accuracy is increased or decreased. A negative value here will produce "penalty" instead of "bonus". | |||
|parameter1values = | |||
|parameter2name = Bonus Type | |||
|parameter2description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to competence. | |||
|parameter3name = Creature Types | |||
|parameter3description = This is the specific type of creature that the bonus applies to (i.e. Evil, Undead, etc). | |||
|parameter4name = Title | |||
|parameter4description = The title for this enchantment if it doesn't match the default. | |||
|parameter5name = Specific time | |||
|parameter5description = A specific time this happens, i.e. Flanking | |||
}} | |||
</noinclude> | </noinclude> | ||
<onlyinclude>{{EnchTitle|Accuracy|{{BonusTypeNameConversion|{{{2|}}}|True}} Accuracy +{{{1}}}{{#if: {{{3|}}}| vs. {{{3}}}}}|{{{4|}}}}}{{EnchBody|{{#if: {{{3|}}}|Grants an additional +{{{1}}} {{BonusTypeNameConversion|{{{2|Competence}}}}} {{#ifexpr: {{{1}}} < 0 | penalty | bonus}} to attack chance against {{lc:{{{3}}}}} creatures.|+{{{1}}} {{BonusTypeNameConversion|{{{2|Competence}}}}} {{#ifexpr: {{{1}}} < 0 | penalty | bonus}} to your attack rolls{{#if: {{{5|}}}| when {{{5}}}}}.}}}}{{EnchCat|Accuracy|Items with Accuracy{{#if: {{{3|}}}| vs. {{{3}}}}}|+{{{1}}} {{BonusTypeNameConversion|{{{2|Competence}}}}} {{#ifexpr: {{{1}}} < 0 |Penalty|Bonus}} to Attack Rolls}}{{#if: {{{3|}}}| vs. {{{3}}}}}</onlyinclude> | |||
<onlyinclude> |
Latest revision as of 17:03, 19 November 2021
Accuracy[edit]
This template is used on equipment for the Accuracy enchantment. It shows the text of the enchantment as close as possible to the way it looks on an items examine window.
Example Usage | |
{{Accuracy|3}} | Accuracy +3: +3 Competence bonus to your attack rolls. |
{{Accuracy|3|Enhancement|Evil}} | Enhanced Accuracy +3 vs. Evil: Grants an additional +3 Enhancement bonus to attack chance against evil creatures. vs. Evil |
{{Accuracy|3|Competence||Attack Bonus +3}} | Attack Bonus +3: +3 Competence bonus to your attack rolls. |
Usage[edit]
{{Accuracy|(Enhancement Amount)|(Bonus Type)|(Creature Types)|(Title)|(Specific time)}}
Parameter Documentation | |
Enhancement Amount | This is the amount that accuracy 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 competence. |
Creature Types | This is the specific type of creature that the bonus applies to (i.e. Evil, Undead, etc). |
Title | The title for this enchantment if it doesn't match the default. |
Specific time | A specific time this happens, i.e. Flanking |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Accuracy +{{{1}}}: +{{{1}}} Competence Expression error: Unrecognized punctuation character "{". to your attack rolls.