• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Template:EquipmentComparisonKai

From Kancolle Wiki
Revision as of 18:22, 12 May 2021 by Botkaze (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No. Rarity Name Equipment Type Refittable Types Craftable Improvable Notes
No. Rarity Name Equipment Type Refittable Types Craftable Improvable Notes

Template-info.png Template documentation [view] [edit] [history] [purge]

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

{{EquipmentComparisonKai
 |14cm Single Gun Mount
 |15.5cm Triple Gun Mount
 |20.3cm Twin Gun Mount
 |20.3cm (No.2) Twin Gun Mount
 |20.3cm (No.3) Twin Gun Mount
 |15.2cm Twin Gun Mount
 |14cm Twin Gun Mount
 |SKC34 20.3cm Twin Gun Mount
 |firepower_outstanding = 9
 |firepower_good = 7
 |aa_outstanding = 3
 |aa_good = 2
 |shelling_accuracy_outstanding = 2
 |shelling_accuracy_good = 1
 }}

becomes

No. Rarity Name Equipment Type Firepower AA Accuracy Range Refittable Types Craftable Improvable Notes
4
14cm Single Gun MountEquipment Card 14cm Single Gun Mount.png
RedGunMedium.png 14cm単装砲
Medium Caliber Main Gun 2 0 1 Medium CL, CLT, CA, CAV, FBB (Only: Yamato Kai Ni), BB (Except: Conte di Cavour), BBV, AV (Only: Commandant Teste, Commandant Teste Kai, Mikuma Kai Ni Toku, Nisshin, Nisshin A, Nisshin Kai), AS (Except: Heian Maru, Heian Maru Kai, Taigei), CT, AO (Only: Kamoi Kai Bo) ✔️ ✔️
5

15.5cm Triple Gun MountEquipment Card 15.5cm Triple Gun Mount.png
RedGunMedium.png 15.5cm三連装砲
7 4
6 20.3cm Twin Gun MountEquipment Card 20.3cm Twin Gun Mount.png
RedGunMedium.png 20.3cm連装砲
8 3 0
90

20.3cm (No.2) Twin Gun MountEquipment Card 20.3cm (No.2) Twin Gun Mount.png
RedGunMedium.png 20.3cm(2号)連装砲
9 1
50


20.3cm (No.3) Twin Gun MountEquipment Card 20.3cm (No.3) Twin Gun Mount.png
RedGunMedium.png 20.3cm(3号)連装砲
10 4
65

15.2cm Twin Gun MountEquipment Card 15.2cm Twin Gun Mount.png
RedGunMedium.png 15.2cm連装砲
5 3 3 ✔️
119
14cm Twin Gun MountEquipment Card 14cm Twin Gun Mount.png
RedGunMedium.png 14cm連装砲
4 0 2
123


SKC34 20.3cm Twin Gun MountEquipment Card SKC34 20.3cm Twin Gun Mount.png
RedGunMedium.png SKC34 20.3cm連装砲
10 2 3
No. Rarity Name Equipment Type Firepower AA Accuracy Range Refittable Types Craftable Improvable Notes

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. Pass an exclamation mark (!) followed by a string key to specify a custom 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.

Notes

You can specify custom notes in the notes column for each ship by passing the parameter equipmentname_notes.

Custom Rows

You can specify custom rows by passing in an exclamation mark followed by a string key as described in #Equipment.

You can then set the properties of that custom row using the following parameters:

custom_row_key_content

Pass this parameter to set the content of the custom row. You can use wikitext. Be careful with = and |, for they may interfere with template parsing.

custom_row_key_text_align

Pass this parameter to set the text_align of the custom row. Defaults to "start".