- 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:Equipment/Link"
Jump to navigation
Jump to search
com>Kenji135 m |
m |
||
Line 11: | Line 11: | ||
Link target, default to <code>[1]</code>. | Link target, default to <code>[1]</code>. | ||
===image=== | ===image=== | ||
− | Set to show equipment card image (using <code>[1]</code>) instead of text link, e.g., <code>image= | + | Set to show equipment card image (using <code>[1]</code>) instead of text link, e.g., <code>image=true</code> to show a 50px equipment card image or <code>image=60px</code> for a 50px image (other parameters are still applicable). |
===icon=== | ===icon=== | ||
Set to show equipment icon before text or image link. | Set to show equipment icon before text or image link. | ||
Line 24: | Line 24: | ||
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}}</pre> | <pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}}</pre> | ||
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}} | {{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}} | ||
− | <pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image= | + | <pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=true}}</pre> |
− | {{EquipmentLink|Prototype 51cm Twin Gun Mount|image= | + | {{EquipmentLink|Prototype 51cm Twin Gun Mount|image=true}} |
+ | <pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=60px}}</pre> | ||
+ | {{EquipmentLink|Prototype 51cm Twin Gun Mount|image=60px}} | ||
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}}</pre> | <pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}}</pre> | ||
{{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}} | {{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}} |
Revision as of 07:16, 20 December 2019
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=true
to show a 50px equipment card image or image=60px
for a 50px 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}}
{{EquipmentLink|Type 4 Passive Sonar|link=Sonar}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=true}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=60px}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px|icon=x}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=true|image=50px}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51|image=50px|icon=x}}
{{EquipmentLink|Type 4 Passive Sonar|link=Sonar|text=T4|icon=true}}
{{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}}
{{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 }}
Tests
{{EquipmentLink|?}}
{{EquipmentLink}}
????
{{EquipmentLink|icon=x}}