Template:ShipBattleCardKai

Revision as of 08:53, 5 May 2022 by Chocolatecravinghobo (talk | contribs) (→‎Layers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Enemy Banner Aircraft Carrier Princess.png Enemy Banner Standard Carrier Wo-Class Flagship.pngHell plane 2.pngBattle Card Flagship Icon.png Ship Banner Akitsushima.pngBattle Card Status Sunk.png Ship Banner Shigure Kai Ni.pngBattle Card Marriage Ring.pngBattle Card Marriage Ring Glow.png Ship Banner Ooyodo Kai.png Ship Banner Taihou Kai Damaged.pngBattle Card Smudge Medium.pngBattle Card Status Medium Damage.png Ship Banner Taihou Kai.png Ship Banner Taihou Kai Damaged.png

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.

caption

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] Ship Banner Taihou Kai.png Ship Banner Taihou Kai.png
name, model Ship Banner Taihou Kai.png Ship Banner Taihou Kai.png
damaged Ship Banner Taihou Kai Damaged.png Ship Banner Taihou Kai Damaged.png
link, caption Taihou Kai (BBV) Taihou Kai (BBV)
grayscale Ship Banner Taihou Kai.png Ship Banner Taihou Kai.png

Layers

Code SD HD
attack_hawk_r Ship Banner Taihou Kai.pngAbyssal Patrolling Attack Hawk 574 Equipment.png Ship Banner Taihou Kai.pngAbyssal Patrolling Attack Hawk 574 Equipment.png
attack_hawk_r1 Ship Banner Taihou Kai.pngAbyssal Patrolling Attack Hawk 574 Equipment.png Ship Banner Taihou Kai.pngAbyssal Patrolling Attack Hawk 574 Equipment.png
attack_hawk_r2 Ship Banner Taihou Kai.pngAbyssal Patrolling Attack Hawk 574 Equipment.png Ship Banner Taihou Kai.pngAbyssal Patrolling Attack Hawk 574 Equipment.png
attack_seaplane_kai_r Ship Banner Taihou Kai.pngAbyssal Attack Seaplane Kai.png Ship Banner Taihou Kai.pngAbyssal Attack Seaplane Kai.png
cat_night_r Ship Banner Taihou Kai.pngAbyssal Night Cat Fighter 581 Equipment.png Ship Banner Taihou Kai.pngAbyssal Night Cat Fighter 581 Equipment.png
cat_night_r1 Ship Banner Taihou Kai.pngAbyssal Night Cat Fighter 581 Equipment.png Ship Banner Taihou Kai.pngAbyssal Night Cat Fighter 581 Equipment.png
cat_night_r2 Ship Banner Taihou Kai.pngAbyssal Night Cat Fighter 581 Equipment.png Ship Banner Taihou Kai.pngAbyssal Night Cat Fighter 581 Equipment.png
cat_r Ship Banner Taihou Kai.pngHell plane 1.png Ship Banner Taihou Kai.pngHell plane 1.png
cat_r1 Ship Banner Taihou Kai.pngHell plane 1.png Ship Banner Taihou Kai.pngHell plane 1.png
cat_r2 Ship Banner Taihou Kai.pngHell plane 1.png Ship Banner Taihou Kai.pngHell plane 1.png
dive_night_r Ship Banner Taihou Kai.png35x30px Ship Banner Taihou Kai.png52x45px
dive_night_r1 Ship Banner Taihou Kai.png26x26px Ship Banner Taihou Kai.png39x39px
dive_night_r2 Ship Banner Taihou Kai.png35x30px Ship Banner Taihou Kai.png52x45px
flagship Ship Banner Taihou Kai.pngBattle Card Flagship Icon.png Ship Banner Taihou Kai.pngBattle Card Flagship Icon.png
fortress_ace_r1 Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Reconnaissance Model) 595 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Reconnaissance Model) 595 Equipment.png
fortress_ace_r2 Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Reconnaissance Model) 595 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Reconnaissance Model) 595 Equipment.png
fortress_heavy_ace_r1 Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Heavy Bomber Model) 598 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Heavy Bomber Model) 598 Equipment.png
fortress_heavy_ace_r2 Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Heavy Bomber Model) 598 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress Ace (Heavy Bomber Model) 598 Equipment.png
fortress_heavy_r Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Heavy Bomber Model) 597 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Heavy Bomber Model) 597 Equipment.png
fortress_heavy_r1 Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Heavy Bomber Model) 597 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Heavy Bomber Model) 597 Equipment.png
fortress_heavy_r2 Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Heavy Bomber Model) 597 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Heavy Bomber Model) 597 Equipment.png
fortress_r Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Reconnaissance Model) 594 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Reconnaissance Model) 594 Equipment.png
fortress_r1 Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Reconnaissance Model) 594 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Reconnaissance Model) 594 Equipment.png
fortress_r2 Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Reconnaissance Model) 594 Equipment.png Ship Banner Taihou Kai.pngAbyssal Sky Fortress (Reconnaissance Model) 594 Equipment.png
hell Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png
hell_cat_kai_r Ship Banner Taihou Kai.pngAbyssal Cat Fighter Kai 556 Equipment.png Ship Banner Taihou Kai.pngAbyssal Cat Fighter Kai 556 Equipment.png
hell_cat_kai_r1 Ship Banner Taihou Kai.pngAbyssal Cat Fighter Kai 556 Equipment.png Ship Banner Taihou Kai.pngAbyssal Cat Fighter Kai 556 Equipment.png
hell_cat_kai_r2 Ship Banner Taihou Kai.pngAbyssal Cat Fighter Kai 556 Equipment.png Ship Banner Taihou Kai.pngAbyssal Cat Fighter Kai 556 Equipment.png
hell_kai_l1 Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png
hell_kai_offset_l1 Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png
hell_kai_offset_r1 Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png
hell_kai_r1 Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Hell Dive Bomber Kai.png
hell_l1 Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png
hell_offset_l1 Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png
hell_offset_r1 Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png
hell_r Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png
hell_r1 Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png
liberation_ace_r1 Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber Ace 562 Equipment.png Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber Ace 562 Equipment.png
liberation_ace_r2 Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber Ace 562 Equipment.png Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber Ace 562 Equipment.png
liberation_r Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber 561 Equipment.png Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber 561 Equipment.png
liberation_r1 Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber 561 Equipment.png Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber 561 Equipment.png
liberation_r2 Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber 561 Equipment.png Ship Banner Taihou Kai.pngAbyssal Liberation Land-based Dive Bomber 561 Equipment.png
revenge_kai_l2 Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png
revenge_kai_offset_l2 Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png
revenge_kai_offset_r2 Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png
revenge_kai_r1 Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png
revenge_kai_r2 Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png Ship Banner Taihou Kai.pngAbyssal Revenge Torpedo Bomber Kai.png
revenge_night_r Ship Banner Taihou Kai.pngAbyssal Night Revenge Torpedo Bomber 583 Equipment.png Ship Banner Taihou Kai.pngAbyssal Night Revenge Torpedo Bomber 583 Equipment.png
revenge_night_r1 Ship Banner Taihou Kai.pngAbyssal Night Revenge Torpedo Bomber 583 Equipment.png Ship Banner Taihou Kai.pngAbyssal Night Revenge Torpedo Bomber 583 Equipment.png
revenge_night_r2 Ship Banner Taihou Kai.pngAbyssal Night Revenge Torpedo Bomber 583 Equipment.png Ship Banner Taihou Kai.pngAbyssal Night Revenge Torpedo Bomber 583 Equipment.png
revenge_r2 Ship Banner Taihou Kai.pngHell plane 3.png Ship Banner Taihou Kai.pngHell plane 3.png
ring Ship Banner Taihou Kai.pngBattle Card Marriage Ring.png Ship Banner Taihou Kai.pngBattle Card Marriage Ring.png
ring_glow Ship Banner Taihou Kai.pngBattle Card Marriage Ring Glow.png Ship Banner Taihou Kai.pngBattle Card Marriage Ring Glow.png
smudge_heavy Ship Banner Taihou Kai.pngBattle Card Smudge Heavy.png Ship Banner Taihou Kai.pngBattle Card Smudge Heavy.png
smudge_light Ship Banner Taihou Kai.pngBattle Card Smudge Light.png Ship Banner Taihou Kai.pngBattle Card Smudge Light.png
smudge_medium Ship Banner Taihou Kai.pngBattle Card Smudge Medium.png Ship Banner Taihou Kai.pngBattle Card Smudge Medium.png
status_expedition Ship Banner Taihou Kai.pngBattle Card Status Expedition.png Ship Banner Taihou Kai.pngBattle Card Status Expedition.png
status_heavy_damage Ship Banner Taihou Kai.pngBattle Card Status Heavy Damage.png Ship Banner Taihou Kai.pngBattle Card Status Heavy Damage.png
status_heavy_damage_installation Ship Banner Taihou Kai.pngBattle Card Status Heavy Damage Installation.png Ship Banner Taihou Kai.pngBattle Card Status Heavy Damage Installation.png
status_heavy_fatigue Ship Banner Taihou Kai.pngBattle Card Status Heavy Fatigue.png Ship Banner Taihou Kai.pngBattle Card Status Heavy Fatigue.png
status_heavy_fatigue_face Ship Banner Taihou Kai.pngBattle Card Status Heavy Fatigue Face.png Ship Banner Taihou Kai.pngBattle Card Status Heavy Fatigue Face.png
status_light_damage Ship Banner Taihou Kai.pngBattle Card Status Light Damage.png Ship Banner Taihou Kai.pngBattle Card Status Light Damage.png
status_light_damage_installation Ship Banner Taihou Kai.pngBattle Card Status Light Damage Installation.png Ship Banner Taihou Kai.pngBattle Card Status Light Damage Installation.png
status_medium_damage Ship Banner Taihou Kai.pngBattle Card Status Medium Damage.png Ship Banner Taihou Kai.pngBattle Card Status Medium Damage.png
status_medium_damage_installation Ship Banner Taihou Kai.pngBattle Card Status Medium Damage Installation.png Ship Banner Taihou Kai.pngBattle Card Status Medium Damage Installation.png
status_medium_fatigue Ship Banner Taihou Kai.pngBattle Card Status Medium Fatigue.png Ship Banner Taihou Kai.pngBattle Card Status Medium Fatigue.png
status_medium_fatigue_face Ship Banner Taihou Kai.pngBattle Card Status Medium Fatigue Face.png Ship Banner Taihou Kai.pngBattle Card Status Medium Fatigue Face.png
status_repair Ship Banner Taihou Kai.pngBattle Card Status Repair.png Ship Banner Taihou Kai.pngBattle Card Status Repair.png
status_retreat Ship Banner Taihou Kai.pngBattle Card Status Retreat.png Ship Banner Taihou Kai.pngBattle Card Status Retreat.png
status_sea_colored_ribbon Ship Banner Taihou Kai.pngBattle Card Sea-colored Ribbon.png Ship Banner Taihou Kai.pngBattle Card Sea-colored Ribbon.png
status_sunk Ship Banner Taihou Kai.pngBattle Card Status Sunk.png Ship Banner Taihou Kai.pngBattle Card Status Sunk.png
status_sunk_installation Ship Banner Taihou Kai.pngBattle Card Status Sunk Installation.png Ship Banner Taihou Kai.pngBattle Card Status Sunk Installation.png
status_white_tasuki Ship Banner Taihou Kai.pngBattle Card White Tasuki.png Ship Banner Taihou Kai.pngBattle Card White Tasuki.png
takoyaki Ship Banner Taihou Kai.pngHell plane 2.png Ship Banner Taihou Kai.pngHell plane 2.png

Scale

Ship Banner Taihou Kai.pngBattle Card Status Expedition.png Ship Banner Taihou Kai.pngBattle Card Status Expedition.png Ship Banner Taihou Kai.pngBattle Card Status Expedition.png
Ship Banner Taihou Kai.pngBattle Card Flagship Icon.png Ship Banner Taihou Kai.pngBattle Card Flagship Icon.png Ship Banner Taihou Kai.pngBattle Card Flagship Icon.png