Template:Set stats/doc

This template is mostly used in item infoboxes of armor and vanity sets. It calculates the total amount of defense or the total sell value of the set by adding the values of the individual pieces, based on iteminfo. It is part of the effort to make item data display in the wiki dynamic.

Usage
Stat to display: defense, sell value, or purchase price.
 * First unnamed parameter

"Invariable" set pieces, i.e., pieces which cannot be replaced by another one of the same slot without removing the set bonus.
 * Second and third unnamed parameters

Third set piece, for sets without variable pieces.
 * Fourth unnamed parameter (optional)

Variable pieces, i.e., pieces which can be replaced with one another in the same slot without removing the set bonus.
 * var1 / var2 / var3 (optional)

Prints the passed value added to the defense value in parentheses behind the regular defense value. Only has an effect if the first unnamed parameter is defense. Only valid for sets without variable pieces.
 * setbonus (optional)

Set to n, no, or hide to prevent the "" set note from displaying. The y/yes/show options are only valid if.
 * note (optional)

Do not wrap the output in coin. Only has an effect if the first unnamed parameter is sell. Prevents the note from being displayed by default; use to re-enable display of the note.
 * raw (optional)