KanColle вики
Advertisement

This template uses ship data modules to display the card image for the requested ship.

Example[]

{{ShipCardKai|U-511}}
{{ShipCardKai|Akitsushima/|grayscale=true|layers=status_sunk}}
{{ShipCardKai|Shigure/Kai Ni Valentine|layers=ring ring_glow}}
{{ShipCardKai|name=Ooyodo|model=Kai}}
{{ShipCardKai|Taihou/Kai|damaged=true|layers=status_medium_damage}}

becomes

Catbomb Файл:Akitsushima Card.pngФайл:Card Status Sunk.png Файл:Shigure Kai Ni Valentine Card.pngФайл:Card Marriage Ring.pngФайл:Card Marriage Ring Glow.png Файл:Ooyodo Kai Card.png Файл:CVB Taihou Kai 156 Card Damaged.pngФайл:Card Status Medium Damage.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.

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
  • 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 link like normal wikitext image behaviour.

size[]

String. If set, the card is resized to the specified size. Not recommended for use with layers. The format of the string is the same as for normal wikitext images.

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.

Advertisement