• 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
Line 1: Line 1:
<includeonly><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|}}}|<br>{{ShipBattleCardHD|{{{2}}}}}}}{{#if:{{{3|}}}|<br/>{{ShipBattleCardHD|{{{3}}}}}}}{{#if:{{{4|}}}|<br/>{{ShipBattleCardHD|{{{4}}}}}}}{{#if:{{{5|}}}|<br/>{{ShipBattleCardHD|{{{5}}}}}}}{{#if:{{{6|}}}|<br/>{{ShipBattleCardHD|{{{6}}}}}}}{{#if:{{{7|}}}|<br/>{{ShipBattleCardHD|{{{7}}}}}}}{{#if:{{{8|}}}|<br/>{{ShipBattleCardHD|{{{8}}}}}}}{{#if:{{{9|}}}|<br/>{{ShipBattleCardHD|{{{9}}}}}}}{{#if:{{{10|}}}|<br/>{{ShipBattleCardHD|{{{10}}}}}}}{{#if:{{{11|}}}|<br/>{{ShipBattleCardHD|{{{11}}}}}}}{{#if:{{{12|}}}|<br/>{{ShipBattleCardHD|{{{12}}}}}}}{{#if:{{{13|}}}|<br/>{{ShipBattleCardHD|{{{13}}}}}}}{{#if:{{{14|}}}|<br/>{{ShipBattleCardHD|{{{14}}}}}}}{{#if:{{{15|}}}|<br/>{{ShipBattleCardHD|{{{15}}}}}}}{{#if:{{{16|}}}|<br/>{{ShipBattleCardHD|{{{16}}}}}}}{{#if:{{{17|}}}|<br/>{{ShipBattleCardHD|{{{17}}}}}}}{{#if:{{{18|}}}|<br/>{{ShipBattleCardHD|{{{18}}}}}}}{{#if:{{{19|}}}|<br/>{{ShipBattleCardHD|{{{19}}}}}}}{{#if:{{{20|}}}|<br/>{{ShipBattleCardHD|{{{20}}}}}}}</span></span>{{#if:{{{help|}}}|<span style="color:red;"><sup>?</sup></span>}}</includeonly><noinclude>
+
<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>
 
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:ShipBattleCardHD]] and so is not limited by Lua limits (but is limited in features compared to [[Template:ShipBattleCardKai]], see [[Template:ShipBattleCardHD#Notes]]).
 
==Usage==
 
==Usage==
Line 18: Line 18:
 
<pre>{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}</pre>
 
<pre>{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}</pre>
 
{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}
 
{{ShipLink|Ro-500|text=Ro-series|link_category=Ro-series}}
 +
==Tests==
 +
{{ShipLink|Hiryuu}}
 +
{{ShipLink|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 +
{{ShipLink|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu|Hiryuu}}
 
</noinclude>
 
</noinclude>

Revision as of 23:09, 6 January 2019

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).

Usage

{{ShipLink|Nagato}}

{{#vardefine:even_break|
NagatoTemplate:ShipBattleCardHD

{{ShipLink|Hiryuu/Kai Ni}}

{{#vardefine:even_break|
Hiryuu Kai NiTemplate:ShipBattleCardHD

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

{{#vardefine:even_break|
Hiryuu Kai NiTemplate:ShipBattleCardHD?

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

{{#vardefine:even_break|
Kongou ClassTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
?

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

{{#vardefine:even_break|
Fusou Class (Kai Ni)Template:ShipBattleCardHDTemplate:ShipBattleCardHD?

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

{{#vardefine:even_break|
Vittorio VenetoTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD?

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

{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
Template:ShipBattleCardHD

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

{{#vardefine:even_break|
Ro-seriesTemplate:ShipBattleCardHD

Tests

{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHD {{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHD {{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD {{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|
HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHD
{{#vardefine:even_break|HiryuuTemplate:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD
Template:ShipBattleCardHDTemplate:ShipBattleCardHD