- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Template:ShipBattleCardKai
This template displays the battle card image for the requested ship.
Examples
{{ShipBattleCardKai|Aircraft Carrier Princess}} {{ShipBattleCardKai|Standard Carrier Wo-Class/Flagship II|flagship=true}} {{ShipBattleCardKai|Akitsushima/|grayscale=true|layers=status_sunk}} {{ShipBattleCardKai|Shigure/Kai Ni|layers=ring ring_glow}} {{ShipBattleCardKai|name=Ooyodo|model=Kai}} {{ShipBattleCardKai|Taihou/Kai|damaged=true|layers=smudge_medium status_medium_damage}} {{ShipBattleCardKai|Taihou/Kai|hd=true}} {{ShipBattleCardKai|Taihou/Kai|damaged=true|hd=true}}
becomes
Parameters
The following are the parameters that can be passed.
[1]
The key of the ship, which consists of: The name of the ship, followed by a slash (/), optionally followed by the suffix of the ship.
This method is included as a shortcut and for convenience. name and model will take precedence over this.
name
The name of the ship, without any suffixes.
model
The model of the ship, ie. the suffix. For example, Kai or Kai Ni.
To specify the base model you can omit model or leave model empty.
flagship
Set to true
to display the flagship icon in the top right of the battle card.
damaged
Boolean. Set to true
to show the damaged card. Defaults to false
.
layers
A list of strings separated by spaces. Adds the specified layers on top of the card.
Available layers are:
status_light_damage
status_medium_damage
status_heavy_damage
status_sunk
status_repair
status_expedition
status_light_damage_installation
status_medium_damage_installation
status_heavy_damage_installation
status_sunk_installation
smudge_light
smudge_medium
smudge_heavy
flagship
- This does the same thing as setting the flagship parameter to true.
ring
ring_glow
link
String. If set, the image (and any layer images) becomes a link to the parameter's value. Set to nil
to have images to link to themselves (like plain wikitext images). Set to false
to force images to be unlinked.
String. If set, hovering over the image will show the parameter's value as a tooltip. Will default to the ship's full name (base name with suffix).
size
String. If set, the card is resized to the specified size. The format of the string is the same as for normal wikitext images. 160x40px
by default (pre-HTML5 size).
hd
Boolean. Set to true
to use HD (HTML5) card size (HD assets are always used, downscaled to pre-HTML5 size when this parameter is not set). Same as setting size
to 240x60px
.
grayscale
Boolean. Set to true
to grayscale the image. Only works in browsers that support the CSS grayscale filter, unprefixed or with -webkit
prefix (no IE).
mode
String. Changes the mode of the template. The default mode returns a fully formatted image.
Set to source
to return the image's filename. All image formatting parameters are ignored in this mode. This mode is intended for use in conjunction with the gallery
tag called via the #tag
parser function.
Tests
Parameters
Code | SD | HD |
---|---|---|
[1] | ||
name, model | ||
damaged | ||
link, caption | ||
grayscale |
Layers
Code | SD | HD |
---|---|---|
attack_hawk_r | ||
attack_hawk_r1 | ||
attack_hawk_r2 | ||
attack_seaplane_kai_r | ||
cat_night_r | ||
cat_night_r1 | ||
cat_night_r2 | ||
cat_r | ||
cat_r1 | ||
cat_r2 | ||
dive_night_r | 35x30px | 52x45px |
dive_night_r1 | 26x26px | 39x39px |
dive_night_r2 | 35x30px | 52x45px |
flagship | ||
fortress_ace_r1 | ||
fortress_ace_r2 | ||
fortress_heavy_ace_r1 | ||
fortress_heavy_ace_r2 | ||
fortress_heavy_r | ||
fortress_heavy_r1 | ||
fortress_heavy_r2 | ||
fortress_r | ||
fortress_r1 | ||
fortress_r2 | ||
hell | ||
hell_cat_kai_r | ||
hell_cat_kai_r1 | ||
hell_cat_kai_r2 | ||
hell_kai_l1 | ||
hell_kai_offset_l1 | ||
hell_kai_offset_r1 | ||
hell_kai_r1 | ||
hell_l1 | ||
hell_offset_l1 | ||
hell_offset_r1 | ||
hell_r | ||
hell_r1 | ||
liberation_ace_r1 | ||
liberation_ace_r2 | ||
liberation_r | ||
liberation_r1 | ||
liberation_r2 | ||
revenge_kai_l2 | ||
revenge_kai_offset_l2 | ||
revenge_kai_offset_r2 | ||
revenge_kai_r1 | ||
revenge_kai_r2 | ||
revenge_night_r | ||
revenge_night_r1 | ||
revenge_night_r2 | ||
revenge_r2 | ||
ring | ||
ring_glow | ||
smudge_heavy | ||
smudge_light | ||
smudge_medium | ||
status_expedition | ||
status_heavy_damage | ||
status_heavy_damage_installation | ||
status_heavy_fatigue | ||
status_heavy_fatigue_face | ||
status_light_damage | ||
status_light_damage_installation | ||
status_medium_damage | ||
status_medium_damage_installation | ||
status_medium_fatigue | ||
status_medium_fatigue_face | ||
status_repair | ||
status_retreat | ||
status_sea_colored_ribbon | ||
status_sunk | ||
status_sunk_installation | ||
status_white_tasuki | ||
takoyaki |