- 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
m (→Parameters) |
|||
Line 7: | Line 7: | ||
Equipment to show in tooltips. <code>[1]</code> is used for link text when there is no <code>text</code> and <code>image</code> is not set. | Equipment to show in tooltips. <code>[1]</code> is used for link text when there is no <code>text</code> and <code>image</code> is not set. | ||
− | If <code>-</code>, inserts a <code><nowiki><br /></nowiki></code>. | + | If <code>-</code>, inserts a <code><nowiki><br /></nowiki></code> in tooltip. |
===text=== | ===text=== | ||
Link text. | Link text. |
Revision as of 09:50, 15 September 2017
Template:Lua warning Links with equipment card tooltips.
Parameters
[1], [2], ...
Equipment to show in tooltips. [1]
is used for link text when there is no text
and image
is not set.
If -
, inserts a <br />
in tooltip.
text
Link text.
link
Link target.
image
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 the text or image link.
size
Size of the 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=50px}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|icon=x}}
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px}}
{{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}}