Difference between revisions of "Template:Ship/Banner"

(Created page with "<includeonly>{{#if:{{{1|}}}|<span class="image-stack" style="display:inline-block;overflow:hidden;vertical-align:middle;position:relative;">[[File:{{#replace:{{{1}}}|/| }}...")
 
(Added Template:AssetTemplateList)
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<span class="image-stack" style="display:inline-block;overflow:hidden;vertical-align:middle;position:relative;">[[File:{{#replace:{{{1}}}|/|&#32;}} Banner{{#if:{{{damaged|&#32; Damaged}}}|}}.png|link={{{link|{{#replace:{{{1}}}|/|&#32;}}}}}|{{{caption|{{#replace:{{{1}}}|/|&#32;}}}}}]]{{#if:{{{ring|}}}|<span class="image-layer" style="line-height:0px;position:absolute;top:19px;left:138px;">[[File:Battle Card Marriage Ring.png|link={{{link|{{#replace:{{{1}}}|/|&#32;}}}}}|{{{caption|{{#replace:{{{1}}}|/|&#32;}}}}}]]</span>|}}{{#if:{{{ring_glow|}}}|<span class="image-layer" style="line-height:0px;position:absolute;top:10px;opacity:0.7;left:126px;">[[File:Battle Card Marriage Ring Glow.png|link={{{link|{{#replace:{{{1}}}|/|&#32;}}}}}|{{{caption|{{#replace:{{{1}}}|/|&#32;}}}}}]]</span>|}}</span>|[[File:Catbomb.png|160x40px]]}}</includeonly><noinclude>
+
<noinclude>{{AssetTemplateList}}</noinclude><includeonly>{{Banner|{{{1|}}}|type=Ship|suffix1={{#if: {{{damaged|}}} | Damaged }}|text={{{text|}}}|caption={{{caption|}}}|small={{{small|}}}}}</includeonly><noinclude>
Simplified version of [[Template:ShipBattleCardKai]]. Doesn't use Lua, so it's possible to have (practically) unlimited number of invokes on a page. Required by [[Template:ShipLink]].
+
Inherited from [[Template:Banner]]. Simplified version of [[Template:ShipBattleCardKai]]. Doesn't use Lua, so it's possible to have (practically) unlimited number of invokes on a page.
==Usage==
 
<pre>{{ShipBattleCardHD|I-401}}</pre>
 
{{ShipBattleCardHD|I-401}}
 
  
<pre>{{ShipBattleCardHD|I-401/}}</pre>
+
==Interface==
{{ShipBattleCardHD|I-401/}}
+
*Supported parameters: ''[1]'', ''type'' (<code>Ship</code> or <code>Enemy</code>) ''link'', ''caption'', ''ring'', ''ring_glow'', ''damaged'', ''small'' (downscale HD card to Phase 1 size), ''debuffed'' (for enemies).
 +
*The following parameters can be added: ''name'', ''model'', ''grayscale'', ''mode''.
 +
*Other layers also can be supported (''flagship'', etc.).
 +
*Automatic enemy aircraft layers are not supported.
 +
 
 +
==Examples==
 +
<pre>{{Ship/Banner|Kasumi}}</pre>
 +
{{Ship/Banner|Kasumi}}
  
<pre>{{ShipBattleCardHD|I-401 Kai}}</pre>
+
<pre>{{Ship/Banner|Kasumi/}}</pre>
{{ShipBattleCardHD|I-401 Kai}}
+
{{Ship/Banner|Kasumi/}}
  
<pre>{{ShipBattleCardHD|I-401/Kai}}</pre>
+
<pre>{{Ship/Banner|Jervis Kai}}</pre>
{{ShipBattleCardHD|I-401/Kai}}
+
{{Ship/Banner|Jervis Kai}}
  
<pre>{{ShipBattleCardHD|I-401/Kai|caption=Shioi|ring=true|ring_glow=true}}</pre>
+
<pre>{{Ship/Banner|Jervis/Kai}}</pre>
{{ShipBattleCardHD|I-401/Kai|caption=Shioi|ring=true|ring_glow=true}}
+
{{Ship/Banner|Jervis/Kai}}
  
==Notes==
+
<pre>{{Ship/Banner|Jervis/Kai|damaged=true}}</pre>
*Supported parameters: ''[1]'', ''link'', ''caption'', ''ring'', ''ring_glow''.
+
{{Ship/Banner|Jervis/Kai|damaged=true}}
*The following parameters can be added: ''name'', ''model'', ''size'', ''grayscale'', ''mode''.
+
 
*Other layers also can be supported (''flagship'', etc.).
+
<pre>{{Ship/Banner|Kasumi/Kai Ni|text=Kachumi|ring=true|ring_glow=true}}</pre>
*Automatic enemy aircraft layers are not supported.
+
{{Ship/Banner|Kasumi/Kai Ni|text=Kachumi|ring=true|ring_glow=true}}
 +
 
 +
<pre>{{Ship/Banner|Kasumi/Kai Ni|caption=Kachumi|ring=true|ring_glow=true|damaged=true|small=true}}</pre>
 +
{{Ship/Banner|Kasumi/Kai Ni|caption=Kachumi|ring=true|ring_glow=true|damaged=true|small=true}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:49, 16 January 2021

[edit] Asset Template List
Template:Asset Other Templates
Template:Banner Template:Card Template:Link Others

Inherited from Template:Banner. Simplified version of Template:ShipBattleCardKai. Doesn't use Lua, so it's possible to have (practically) unlimited number of invokes on a page.

Interface

  • Supported parameters: [1], type (Ship or Enemy) link, caption, ring, ring_glow, damaged, small (downscale HD card to Phase 1 size), debuffed (for enemies).
  • The following parameters can be added: name, model, grayscale, mode.
  • Other layers also can be supported (flagship, etc.).
  • Automatic enemy aircraft layers are not supported.

Examples

{{Ship/Banner|Kasumi}}

Ship Banner Kasumi.png

{{Ship/Banner|Kasumi/}}

Ship Banner Kasumi.png

{{Ship/Banner|Jervis Kai}}

Ship Banner Jervis Kai.png

{{Ship/Banner|Jervis/Kai}}

Ship Banner Jervis Kai.png

{{Ship/Banner|Jervis/Kai|damaged=true}}

Ship Banner Jervis Kai Damaged.png

{{Ship/Banner|Kasumi/Kai Ni|text=Kachumi|ring=true|ring_glow=true}}

Kachumi

{{Ship/Banner|Kasumi/Kai Ni|caption=Kachumi|ring=true|ring_glow=true|damaged=true|small=true}}

Kachumi