• 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
Line 1: Line 1:
<includeonly>{{#iferror:<span class="advanced-tooltip">{{#if:{{{image|}}}|{{EquipmentCardKai|{{{1|}}}|size={{{image|}}}|link={{#if:{{{link|}}}|{{{link|}}}|{{{1|}}}}}|caption={{#if:{{{text|}}}|{{{text|}}}|{{{1|}}}}}}}|{{#if:{{{link|}}}|[[{{{link}}}|{{#if:{{{text|}}}|{{{text|}}}|{{{1|}}}}}]]|[[{{{1|}}}|{{#if:{{{text|}}}|{{{text|}}}|{{{1|}}}}}]]}}}}<div class="tooltip-contents">{{EquipmentCardKai|{{{1|}}}}}</div></span>|{{#if:{{{link|}}}|[[{{{link}}}|{{#if:{{{text|}}}|{{{text|}}}|{{{1|}}}}}]]|[[{{{1}}}|{{#if:{{{text|}}}|{{{text|}}}|{{{1|}}}}}]]}}}}</includeonly><noinclude>
+
<includeonly>{{#iferror:<span class="advanced-tooltip">{{#if:{{{image|}}}|{{EquipmentCardKai|{{{1|}}}|size={{{image|}}}|link={{#if:{{{link|}}}|{{{link|}}}|{{{1|}}}}}}}|{{#if:{{{link|}}}|[[{{{link}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]|[[{{{1|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]}}}}<div class="tooltip-contents">{{EquipmentCardKai|{{{1|}}}}}</div></span>|{{#if:{{{link|}}}|[[{{{link}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]|[[{{{1}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]]}}}}</includeonly><noinclude>
 
{{Warning
 
{{Warning
 
|This template uses [[Template:EquipmentCardKai]] which calls Lua code on each inclusion, there is an upper bound on the number of times this template can be used on a page before it kills the page (since the change in [[Thread:457712|Wikia Lua engine in July 2016]], the previous engine has a greater limit and only caused Lua script errors at worst).
 
|This template uses [[Template:EquipmentCardKai]] which calls Lua code on each inclusion, there is an upper bound on the number of times this template can be used on a page before it kills the page (since the change in [[Thread:457712|Wikia Lua engine in July 2016]], the previous engine has a greater limit and only caused Lua script errors at worst).
Line 14: Line 14:
 
{{EquipmentLink|Type 4 Passive Sonar|link=Sonar}}
 
{{EquipmentLink|Type 4 Passive Sonar|link=Sonar}}
  
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}}</pre>
+
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|P51cm}}</pre>
  
{{EquipmentLink|Prototype 51cm Twin Gun Mount|text=P51cm}}
+
{{EquipmentLink|Prototype 51cm Twin Gun Mount|P51cm}}
  
 
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px}}</pre>
 
<pre>{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px}}</pre>

Revision as of 19:57, 15 November 2016

Warning!

Links to equipment pages with card image tooltips.

{{EquipmentLink|Prototype 51cm Twin Gun Mount}}
Prototype 51cm Twin Gun Mount
Equipment Card Prototype 51cm Twin Gun Mount.png
{{EquipmentLink|Type 4 Passive Sonar|link=Sonar}}
Type 4 Passive Sonar
Equipment Card Type 4 Passive Sonar.png
{{EquipmentLink|Prototype 51cm Twin Gun Mount|P51cm}}
P51cm
Equipment Card Prototype 51cm Twin Gun Mount.png
{{EquipmentLink|Prototype 51cm Twin Gun Mount|image=50px}}
Equipment Card Prototype 51cm Twin Gun Mount.png
Equipment Card Prototype 51cm Twin Gun Mount.png