• 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:EquipmentLink"

From Kancolle Wiki
Jump to navigation Jump to search
com>Kenji135
(Added more examples)
com>Kenji135
m
Line 30: Line 30:
 
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x}}</pre>
 
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x}}</pre>
 
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x}}
 
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x}}
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|text=true}}</pre>
+
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=true|image=50px}}</pre>
 
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=true|image=50px}}
 
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=true|image=50px}}
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x|text=P51}}</pre>
+
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51|image=50px|icon=x}}</pre>
 
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51|image=50px|icon=x}}
 
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51|image=50px|icon=x}}
 
<pre>{{EquipmentLink|Type 4 Passive Sonar|link=Sonar|text=T4|icon=true}}</pre>
 
<pre>{{EquipmentLink|Type 4 Passive Sonar|link=Sonar|text=T4|icon=true}}</pre>

Revision as of 03:55, 1 January 2018

Template:Lua warning Links with equipment card tooltips.

Parameters

[1], [2], ...

Equipment to show in tooltips. If -, inserts <br /> in tooltip.

text

Link text, default to [1].

link

Link target, default to [1].

image

Set to show equipment card image (using [1]) instead of text link, e.g., image=50px to show a 50px equipment card image (other parameters are still applicable).

icon

Set to show equipment icon before text or image link.

size

Size of equipment card images in tooltip, defaults to full size.

Examples

{{EquipmentLink|Prototype 51cm Twin Gun Mount}}

Prototype 51cm Twin Gun MountEquipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Type 4 Passive Sonar|link=Sonar}}

Type 4 Passive SonarEquipment Card Type 4 Passive Sonar.png

{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}}

P51cmEquipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px}}

Equipment Card Prototype 51cm Twin Gun Mount.pngEquipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}}

RedGunHeavy.pngPrototype 51cm Twin Gun MountEquipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x}}

RedGunHeavy.pngEquipment Card Prototype 51cm Twin Gun Mount.pngEquipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=true|image=50px}}

Equipment Card Prototype 51cm Twin Gun Mount.pngPrototype 51cm Twin Gun MountEquipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51|image=50px|icon=x}}

RedGunHeavy.pngEquipment Card Prototype 51cm Twin Gun Mount.pngP51Equipment Card Prototype 51cm Twin Gun Mount.png

{{EquipmentLink|Type 4 Passive Sonar|link=Sonar|text=T4|icon=true}}

Sonar.pngT4Equipment Card Type 4 Passive Sonar.png

{{EquipmentLink|text=Sonars|link=sonar|icon=x|size=100px|Type 93 Passive Sonar|Type 3 Active Sonar|Type 0 Passive Sonar|Type 4 Passive Sonar}}

Sonar.pngSonarsEquipment Card Type 93 Passive Sonar.pngEquipment Card Type 3 Active Sonar.pngEquipment Card Type 0 Passive Sonar.pngEquipment Card Type 4 Passive Sonar.png

{{EquipmentLink
|text=Sonars
|link=sonar
|icon=x
|size=100px
|Type 93 Passive Sonar
|Type 3 Active Sonar
|-
|Type 0 Passive Sonar
|Type 4 Passive Sonar
}}

Sonar.pngSonarsEquipment Card Type 93 Passive Sonar.pngEquipment Card Type 3 Active Sonar.png
Equipment Card Type 0 Passive Sonar.pngEquipment Card Type 4 Passive Sonar.png

Tests

{{EquipmentLink|?}}

?Catbomb.png

{{EquipmentLink}}

????

{{EquipmentLink|icon=x}}

File:Equipment Icon ??.png????