Difference between revisions of "Template:Accuracy"

From DDO Compendium
Line 1: Line 1:
=== Deadly ===
<noinclude>[[Category:Template]][[Category:Item Enchantment Template]]{{TemplateDocumentation
<noinclude>This template is used for all bonuses to weapon attack rolls.[[Category:Template]]
|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.
Used in this manner:
|example1 = <nowiki>{{Accuracy|3}}</nowiki>
<br><nowiki>{{Accuracy|Modifier|ModType (opt)}}</nowiki><br>
|example1output = {{Accuracy|3}}
<br>Such that <nowiki>{{Accuracy|3}}</nowiki> results in<br>
|parameter1name = Enhancement Amount
<br>{{Accuracy|3}}<br>
|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.
|parameter2values =
}}
</noinclude>
</noinclude>
=== Template ===
<onlyinclude>[[Category: Items with {{{2|}}} Accuracy]][[Accuracy | '''{{{2|}}} Accuracy +{{{1}}}:''']] +{{{1}}} {{#if: {{{2|}}}|{{{2}}}|competence}} {{#ifexpr: {{{1}}} < 0 | penalty | bonus}} to your attack rolls.</onlyinclude>
<onlyinclude>[[Category: Items with {{{2|}}} Accuracy]][[Accuracy | '''{{{2|}}} Accuracy +{{{1}}}:''']] +{{{1}}} {{#if: {{{2|}}}|{{{2}}}|competence}} {{#ifexpr: {{{1}}} < 0 | penalty | bonus}} to your attack rolls.</onlyinclude>

Revision as of 19:51, 4 May 2018

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.

Usage[edit]

{{Accuracy|(Enhancement Amount)|(Bonus Type)}}

Parameter Documentation
Enhancement AmountThis is the amount that accuracy is increased or decreased. A negative value here will produce "penalty" instead of "bonus".
Bonus TypeThis is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to competence.

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.