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

Difference between revisions of "Template:EquipmentGraphicKai/doc"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
m
com>Ckwng
Line 33: Line 33:
  
 
String. If set, the card is resized to the specified size. The format of the string is the same as for normal wikitext images.
 
String. If set, the card is resized to the specified size. The format of the string is the same as for normal wikitext images.
 +
 +
===mode===
 +
 +
String. Changes the mode of the template. The default mode returns a fully formatted image.
 +
 +
Set to <code>source</code> 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 <code>gallery</code> tag called via the <code>#tag</code> parser function.
  
 
<includeonly>[[Category:Templates that use equipment data modules|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:Templates that use equipment data modules|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 03:53, 24 September 2015

This template uses equipment data modules to display the graphic for the requested equipment.

Example

{{EquipmentGraphicKai|Prototype 51cm Twin Gun Mount}}
{{EquipmentGraphicKai|Prototype FaT Type 95 Oxygen Torpedo Kai|fairy=only}}
{{EquipmentGraphicKai|Tenzan Model 12 (Tomonaga Squadron)|fairy=true}}

becomes

Equipment Item Prototype 51cm Twin Gun Mount.png Equipment Character Prototype FaT Type 95 Oxygen Torpedo Kai.png Equipment Full Tenzan Model 12 (Tomonaga Squadron).png

Parameters

The following are the parameters that can be passed.

{1}

The name of the equipment.

fairy

Boolean or String. Set to true to show the fairy as well as the equipment. Set to only to show the fairy by itself. Defaults to false, showing the equipment by itself.

link

String. If set, the image 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. Defaults to a link to the equipment.

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. The format of the string is the same as for normal wikitext images.

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.