Template:EquipmentComparisonKai/doc

This template uses equipment data modules to construct a comparison chart for a set of equipment. It automatically merges cells, highlights cells based on customizable thresholds, and hides stat columns which contain all zeroes.

Example
becomes

Parameters
The following sections describe the parameters that can be passed to this template.

Equipment
The list of equipment to be included in the table should be passed in as unnamed parameters, like in the example. Pass a dash (-) to prevent cells in the row above from merging with cells in the row below. Pass a hash (#) to insert a header row.

Cell highlighting
Thresholds can be set to control automatic highlighting of many of the columns. The following columns can be highlighted:


 * firepower
 * bombing
 * torpedo
 * aa
 * asw
 * los
 * luck
 * armor
 * evasion
 * shelling_accuracy
 * speed
 * range

To set the threshold for the yellow highlight, pass the parameter column_name_good.

To set the threshold for the green highlight, pass the parameter column_name_outstanding.

By default, if the value of the cell > the threshold value, then the highlight is applied.

You can change the operator used by passing the parameter column_name_operator. The operators >, < are available.