Line 1: |
Line 1: |
− | <includeonly>{{{{{subst|safesubst:}}}#invoke:EquipmentLink|format}}</includeonly><noinclude> | + | <noinclude>{{AssetTemplateList}}</noinclude><includeonly><!--{{{{{subst|safesubst:}}}#invoke:EquipmentLink|format}}-->{{Link|type=Equipment|asset=Card|size={{{size|160x160px}}}|text={{{text|}}}|link={{{link|}}}|link_category={{{link_category|}}}|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}</includeonly><noinclude> |
− | {{Lua warning}}
| |
| Links with equipment card tooltips. | | Links with equipment card tooltips. |
| | | |
| ==Parameters== | | ==Parameters== |
| ===[1], [2], ...=== | | ===[1], [2], ...=== |
− | Equipment to show in tooltips. If <code>-</code>, inserts <code><nowiki><br /></nowiki></code> in tooltip. | + | Equipment to show in tooltips. <s>If <code>-</code>, inserts <code><nowiki><br /></nowiki></code> in tooltip.</s> |
| ===text=== | | ===text=== |
| Link text, default to <code>[1]</code>. | | Link text, default to <code>[1]</code>. |
Line 11: |
Line 10: |
| 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=50px</code> to show a 50px equipment card image (other parameters are still applicable). | + | <s>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 60px image (other parameters are still applicable).</s> |
| ===icon=== | | ===icon=== |
− | Set to show equipment icon before text or image link. | + | <s>Set to show equipment icon before text or image link.</s> |
| ===size=== | | ===size=== |
| Size of equipment card images in tooltip, defaults to full size. | | Size of equipment card images in tooltip, defaults to full size. |
Line 24: |
Line 23: |
| <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=50px}}</pre> | + | <pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=true}}</pre> |
− | {{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px}} | + | {{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}} |
| <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> |
| {{EquipmentLink|Type 4 Passive Sonar|link=Sonar|text=T4|icon=x}} | | {{EquipmentLink|Type 4 Passive Sonar|link=Sonar|text=T4|icon=x}} |
− | <pre>{{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}}</pre> | + | <pre>{{EquipmentLink|text=Sonars|link=sonar|icon=x|Type 93 Passive Sonar|Type 3 Active Sonar|Type 0 Passive Sonar|Type 4 Passive Sonar}}</pre> |
− | {{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|Type 93 Passive Sonar|Type 3 Active Sonar|Type 0 Passive Sonar|Type 4 Passive Sonar}} |
| <pre> | | <pre> |
| {{EquipmentLink | | {{EquipmentLink |
Line 62: |
Line 63: |
| |Type 4 Passive Sonar | | |Type 4 Passive Sonar |
| }} | | }} |
| + | <pre>{{EquipmentLink|Abyssal Cat Fighter Kai}}</pre> |
| + | {{EquipmentLink|Abyssal Cat Fighter Kai}} |
| | | |
| ==Tests== | | ==Tests== |