• 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:Ship/Link"

From Kancolle Wiki
Jump to navigation Jump to search
m (63 revisions imported)
m
Line 1: Line 1:
<includeonly>{{#vardefine:even_break|{{#if:{{{10|}}}||<br>}}}}<span class="advanced-tooltip">{{#if:{{{link_class|}}}{{{link_category|}}}|[http://kancolle.wikia.com/wiki/Category:{{#if:{{{link_class|}}}|{{#replace:{{{link_class}}}| |_}}_Class|{{#if:{{{link_category|}}}|{{#replace:{{{link_category}}}| |_}}}}}} {{#if:{{{text|}}}|{{{text}}}|{{#replace:{{{1|}}}|/|&#32;}}}}]|[[{{#if:{{{link|}}}|{{{link}}}|{{#replace:{{{1|}}}|/|&#32;}}}}|{{#if:{{{text|}}}|{{{text}}}|{{#replace:{{{1|}}}|/|&#32;}}}}]]}}<span class="tooltip-contents">{{ShipBattleCardHD|{{{1|}}}}}{{#if:{{{kai|}}}|<br>{{ShipBattleCardHD|{{{1|}}}/Kai}}|}}{{#if:{{{kai_ni|}}}|<br>{{ShipBattleCardHD|{{{1|}}}/Kai Ni}}|}}{{#if:{{{2|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{2}}}}}}}{{#if:{{{3|}}}|<br>{{ShipBattleCardHD|{{{3}}}}}}}{{#if:{{{4|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{4}}}}}}}{{#if:{{{5|}}}|<br>{{ShipBattleCardHD|{{{5}}}}}}}{{#if:{{{6|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{6}}}}}}}{{#if:{{{7|}}}|<br>{{ShipBattleCardHD|{{{7}}}}}}}{{#if:{{{8|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{8}}}}}}}{{#if:{{{9|}}}|<br>{{ShipBattleCardHD|{{{9}}}}}}}{{#if:{{{10|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{10}}}}}}}{{#if:{{{11|}}}|<br>{{ShipBattleCardHD|{{{11}}}}}}}{{#if:{{{12|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{12}}}}}}}{{#if:{{{13|}}}|<br>{{ShipBattleCardHD|{{{13}}}}}}}{{#if:{{{14|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{14}}}}}}}{{#if:{{{15|}}}|<br>{{ShipBattleCardHD|{{{15}}}}}}}{{#if:{{{16|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{16}}}}}}}{{#if:{{{17|}}}|<br>{{ShipBattleCardHD|{{{17}}}}}}}{{#if:{{{18|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{18}}}}}}}{{#if:{{{19|}}}|<br>{{ShipBattleCardHD|{{{19}}}}}}}{{#if:{{{20|}}}|{{#var:even_break}}{{ShipBattleCardHD|{{{20}}}}}}}</span></span>{{#if:{{{help|}}}|<span style="color:red;"><sup>?</sup></span>}}</includeonly><noinclude>
+
<includeonly>{{ToolTip|{{#if: {{{link|}}} | [[{{{link}}}|{{#if: {{{text|}}} | {{{text}}} | {{{1}}}}}]] | {{#if: {{{ext_link|}}} | [{{{ext_link}}} {{#if: {{{text|}}} | {{{text}}} | {{{1}}}}}] | {{#if: {{{text|}}} | {{{text}}} | [[{{{1}}}]]}}}}}}| {{#if: {{{1|}}} | {{ShipBannerHD|{{{1}}}}}}}{{#if: {{{2|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />}}}}{{ShipBannerHD|{{{2}}}}}}}{{#if: {{{3|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> }}}}}}{{ShipBannerHD|{{{3}}}}}}}{{#if: {{{4|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 3 | <br /> }}}}}}{{ShipBannerHD|{{{4}}}}}}}{{#if: {{{5|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 4 | <br /> }}}}}}}}{{ShipBannerHD|{{{5}}}}}}}{{#if: {{{6|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 5 | <br /> }}}}}}{{ShipBannerHD|{{{6}}}}}}}{{#if: {{{7|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 3 | <br /> | {{#ifeq: {{{group}}} | 6 | <br /> }}}}}}}}}}{{ShipBannerHD|{{{7}}}}}}}{{#if: {{{8|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 7 | <br /> }}}}}}{{ShipBannerHD|{{{8}}}}}}}{{#if: {{{9|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 4 | <br /> | {{#ifeq: {{{group}}} | 8 | <br /> }}}}}}}}}}{{ShipBannerHD|{{{9}}}}}}}{{#if: {{{10|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 3 | <br /> | {{#ifeq: {{{group}}} | 9 | <br /> }}}}}}}}{{ShipBannerHD|{{{10}}}}}}}{{#if: {{{11|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 5 | <br /> | {{#ifeq: {{{group}}} | 10 | <br /> }}}}}}}}}}{{ShipBannerHD|{{{11}}}}}}}{{#if: {{{12|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 11 | <br /> }}}}}}{{ShipBannerHD|{{{12}}}}}}}{{#if: {{{13|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 3 | <br /> | {{#ifeq: {{{group}}} | 4 | <br /> | {{#ifeq: {{{group}}} | 6 | <br /> | {{#ifeq: {{{group}}} | 12 | <br /> }}}}}}}}}}}}}}{{ShipBannerHD|{{{13}}}}}}}{{#if: {{{14|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 13 | <br /> }}}}}}{{ShipBannerHD|{{{14}}}}}}}{{#if: {{{15|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 7 | <br /> | {{#ifeq: {{{group}}} | 14 | <br /> }}}}}}}}}}{{ShipBannerHD|{{{15}}}}}}}{{#if: {{{16|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 3 | <br /> | {{#ifeq: {{{group}}} | 5 | <br /> | {{#ifeq: {{{group}}} | 15 | <br /> }}}}}}}}}}{{ShipBannerHD|{{{16}}}}}}}{{#if: {{{17|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 4 | <br /> | {{#ifeq: {{{group}}} | 8 | <br /> | {{#ifeq: {{{group}}} | 16 | <br /> }}}}}}}}}}}}{{ShipBannerHD|{{{17}}}}}}}{{#if: {{{18|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 17 | <br /> }}}}}}{{ShipBannerHD|{{{18}}}}}}}{{#if: {{{19|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 2 | <br /> | {{#ifeq: {{{group}}} | 3 | <br /> | {{#ifeq: {{{group}}} | 6 | <br /> | {{#ifeq: {{{group}}} | 9 | <br /> | {{#ifeq: {{{group}}} | 18 | <br /> }}}}}}}}}}}}}}{{ShipBannerHD|{{{19}}}}}}}{{#if: {{{20|}}} | {{#if: {{{group|}}} | {{#ifeq: {{{group}}} | 1 | <br />| {{#ifeq: {{{group}}} | 19 | <br /> }}}}}}{{ShipBannerHD|{{{20}}}}}}}|text-align=left}}</includeonly><noinclude>
Links with ship battle card tooltips. Uses [[Template:ShipBattleCardHD]] and so is not limited by Lua limits (but is limited in features compared to [[Template:ShipBattleCardKai]], see [[Template:ShipBattleCardHD#Notes]]).
+
Links with ship battle card tooltips. Uses [[Template:ShipBannerHD]] and so is not limited by Lua limits (but is limited in features compared to [[Template:ShipBattleCardKai]], see [[Template:ShipBannerHD#Notes]]).
 
==Usage==
 
==Usage==
 
<pre>{{ShipLink|Nagato}}</pre>
 
<pre>{{ShipLink|Nagato}}</pre>
{{ShipLink|Nagato}}
+
{{ShipLink|Nagato|link=Kasumi}}
 +
<pre>{{ShipLink|Kasumi|text=Kachumi}}</pre>
 +
{{ShipLink|Kasumi|text=Kachumi}}
 +
<pre>{{ShipLink|Kasumi|text=Kachumi|link=Michishio}}</pre>
 +
{{ShipLink|Kasumi|text=Kachumi|link=Michishio}}
 +
<pre>{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=2}}</pre>
 +
{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=2}}
 
<pre>{{ShipLink|Hiryuu/Kai Ni}}</pre>
 
<pre>{{ShipLink|Hiryuu/Kai Ni}}</pre>
 
{{ShipLink|Hiryuu/Kai Ni}}
 
{{ShipLink|Hiryuu/Kai Ni}}
Line 19: Line 25:
 
{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}
 
{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}
 
==Tests==
 
==Tests==
{{ShipLink|Hiryuu}}
+
*{{ShipLink|Kasumi|text=Kachumi}}
{{ShipLink|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|group=1}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|group=2}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=3}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=2}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=5}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|K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kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=7}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=4}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=5}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=5}}
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
+
*{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=5}}
 
</noinclude>
 
</noinclude>

Revision as of 19:21, 30 November 2020

Links with ship battle card tooltips. Uses Template:ShipBannerHD and so is not limited by Lua limits (but is limited in features compared to Template:ShipBattleCardKai, see Template:ShipBannerHD#Notes).

Usage

{{ShipLink|Nagato}}

Nagato Template:ShipBannerHD

{{ShipLink|Kasumi|text=Kachumi}}

Kachumi Template:ShipBannerHD

{{ShipLink|Kasumi|text=Kachumi|link=Michishio}}

Kachumi Template:ShipBannerHD

{{ShipLink|Kasumi|Kasumi|Kasumi|Kasumi|Kasumi|group=2}}

Kasumi Template:ShipBannerHDTemplate:ShipBannerHD
Template:ShipBannerHDTemplate:ShipBannerHD
Template:ShipBannerHD

{{ShipLink|Hiryuu/Kai Ni}}

Hiryuu/Kai Ni Template:ShipBannerHD

{{ShipLink|Hiryuu/Kai Ni|help=true}}

Hiryuu/Kai Ni Template:ShipBannerHD

{{ShipLink|Kongou|Hiei|Kirishima|Haruna|text=Kongou Class|link_class=Kongou|help=true}}

Kongou Class Template:ShipBannerHDTemplate:ShipBannerHDTemplate:ShipBannerHDTemplate:ShipBannerHD

{{ShipLink|Fusou/Kai Ni|Yamashiro/Kai Ni|text=Fusou Class (Kai Ni)|link_class=Fusou|help=true}}

Fusou Class (Kai Ni) Template:ShipBannerHDTemplate:ShipBannerHD

{{ShipLink|Littorio|Roma|text=Vittorio Veneto|link_class=Vittorio Veneto|help=true}}

Vittorio Veneto Template:ShipBannerHDTemplate:ShipBannerHD

{{ShipLink|Hiryuu|kai=x|kai_ni=x}}

Hiryuu Template:ShipBannerHD

{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}

Ro-series Template:ShipBannerHD

Tests