Difference between revisions of "Template:AC"

From DDO Compendium
(added +/- to Deflection)
Line 1: Line 1:
<noinclude>This template is used for all bonuses to Armor Class.[[Category:Template]]
<noinclude>[[Category:Template]][[Category:Item Enchantment Template]]{{TemplateDocumentation
 
|name = AC
Used in this manner:
|description = This template is used on equipment for the Armor Class enchantment.  It shows the text of the ability as close as possible to the way it looks on an items examine window.
<br><nowiki>{{AC|Source|Modifier|ModType (opt)}}</nowiki><br>
|example1 = <nowiki>{{AC|Natural Armor|+5|Insight}}</nowiki>
<br>Such that <nowiki>{{AC|Natural Armor|+5|Insight}}</nowiki> results in<br>
|example1output = {{AC|Natural Armor|+5|Insight}}
<br>{{AC|Natural Armor|5|Insight}}
|parameter1name = Source
Options for Source
|parameter1description = This specifies the source of the Armor class change.
|parameter1values =
* Deflection
* Deflection
* Natural Armor
* Natural Armor
* Shield
* Shield
* Armor
* Armor
|parameter2name = Enhancement Amount
|parameter2description = This is the amount the Armor Class is increased or decreased.  A negative value here will produce "penalty" instead of "bonus".
|parameter2values =
|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 Enhancement.
|parameter3values =
}}
</noinclude>
</noinclude>
<onlyinclude>[[Category: Items with a Bonus to {{{1}}}]]{{#switch: {{{1}}}
<onlyinclude>[[Category: Items with a Bonus to {{{1}}}]]{{#switch: {{{1}}}
| Deflection = [[Armor Class#Deflection | '''{{{3|}}} Protection +{{{2}}}:''']] This item protects its wearer by granting a {{#ifexpr: {{{2}}} < 0 |-|+}}{{{2}}} {{{3|}}} deflection {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to AC.
| Deflection = [[Armor Class#Deflection | '''{{{3|}}} Protection +{{{2}}}:''']] This item protects its wearer by granting a {{#ifexpr: {{{2}}} < 0 |-|+}}{{{2}}} {{{3|}}} deflection {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to AC.

Revision as of 19:44, 4 May 2018

AC[edit]

This template is used on equipment for the Armor Class enchantment. It shows the text of the ability as close as possible to the way it looks on an items examine window.

Example Usage
{{AC|Natural Armor|+5|Insight}} Insight Natural Armor ++5: Passive: ++5 Insight Natural Armor bonus to Armor Class.

Usage[edit]

{{AC|(Source)|(Enhancement Amount)|(Bonus Type)}}

Parameter Documentation
SourceThis specifies the source of the Armor class change.
Possible Values:
  • Deflection
  • Natural Armor
  • Shield
  • Armor
Enhancement AmountThis is the amount the Armor Class 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 Enhancement.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


[[Category: Items with a Bonus to {{{1}}}]]