Difference between revisions of "Template:Accuracy"

From DDO Compendium
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Deadly ===
<noinclude>{{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:
|category=Item Enchantment Template
<br><nowiki>{{Accuracy|Modifier|ModType (opt)}}</nowiki><br>
|example1 = <nowiki>{{Accuracy|3}}</nowiki>
<br>Such that <nowiki>{{Accuracy|3}}</nowiki> results in<br>
|example1output = {{Accuracy|3}}
<br>{{Accuracy|3}}<br>
|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|}}}|&nbsp;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|}}}|&nbsp;when {{{5}}}}}.}}}}{{EnchCat|Accuracy|Items with Accuracy{{#if: {{{3|}}}|&nbsp;vs. {{{3}}}}}|+{{{1}}} {{BonusTypeNameConversion|{{{2|Competence}}}}} {{#ifexpr: {{{1}}} < 0 |Penalty|Bonus}} to Attack Rolls}}{{#if: {{{3|}}}|&nbsp;vs. {{{3}}}}}</onlyinclude>
=== 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>

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 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.
Creature TypesThis is the specific type of creature that the bonus applies to (i.e. Evil, Undead, etc).
TitleThe title for this enchantment if it doesn't match the default.
Specific timeA 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.