• 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:Equipment"

From Kancolle Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<includeonly>{{EquipmentInfoKai|{{PAGENAME}}}}
+
<includeonly>
{{EquipmentCategoriesKai|{{PAGENAME}}}}
+
{{EquipmentInfoKai|{{{1|{{PAGENAME}}}}}}}
 +
{{EquipmentCategoriesKai|{{{1|{{PAGENAME}}}}}}}
 +
<h2>Introduction</h2>
 +
<p>{{{ja|?}}}</p>
 +
<p>''{{{en|?}}}''</p>
 +
<h2>Notes</h2>
 +
'''{{#if:{{{buildable|}}}|Buildable|Unbuildable}}'''
 +
{{#categorytree:Ships with {{{1|{{PAGENAME}}}}} as stock equipment|mode=pages|depth=0}}
 +
{{#categorytree:Equipment that consume {{{1|{{PAGENAME}}}}} during improvement|mode=pages|depth=0}}
 +
{{{notes|}}}
 +
{{clear}}
 +
{{#if:{{{improvement|}}}|<h2>Improvement</h2>{{ImprovementTableKai|{{{1|{{PAGENAME}}}}}|categories=true}}}}
 +
{{#if:{{{trivia|}}}|<h2>Trivia</h2>{{{trivia}}}}}
 +
{{#if:{{{see also|}}}|<h2>See also</h2>{{{see also}}}{{Equipmentlist}}}}
 +
</includeonly>
 +
<noinclude>
 +
Layout template for [[:Category:Player equipment|equipment pages]].
  
==Introduction==
+
==Parameters==
{{{ja|?}}}
+
{{todo|show=true|Get '''buildable''' and '''improvement''' from Lua instead.}}
 +
*'''1''': equipment name, <code>PAGENAME</code> is used by default.
 +
*'''ja''': Japanese description of the equipment, defaults to <code>?</code>.
 +
*'''en''': English description of the equipment, defaults to <code>?</code>.
 +
*'''buildable''': set to <code>true</code> if equipment is buildable.
 +
*'''improvement''': set to <code>true</code> if equipment is improvable.
 +
*'''notes''': text in notes section.
 +
*'''trivia ''': text in trivia section (optional).
 +
*'''see also''': text in see also section (optional).
  
''{{{en|?}}}''
+
==Usage==
 
+
Full page:
==Notes==
+
<pre>
{{#categorytree:Ships with {{PAGENAME}} as stock equipment|mode=pages|depth=0}}
+
{{EquipmentPageHeader
{{#categorytree:Equipment that consume {{PAGENAME}} during improvement|mode=pages|depth=0}}
+
|ja =  
{{{notes|}}}
+
|en =  
{{#if:{{{improvement|}}}|==Improvement==
+
|buildable =  
{{ImprovementTableKai|{{PAGENAME}}|categories=true}}}}
+
|improvement =  
{{#if:{{{trivia|}}}|==Trivia==
+
|notes =  
{{{trivia}}}}}
+
|trivia =  
{{#if:{{{see also|}}}|==See also==
+
|see also =  
{{{see also}}}
+
}}
{{Equipmentlist}}}}</includeonly><noinclude>
+
</pre>
Infobox, Introduction, Notes and Improvement sections for [[:Category:Player equipment|equipment pages]].
+
Or only for the header (from infobox to category tree):
 
 
Usage:
 
 
<pre>
 
<pre>
 
{{EquipmentPageHeader
 
{{EquipmentPageHeader
 
+
|ja =  
|ja = Japanese description
+
|en =  
 
+
|buildable =  
|en = English description
 
 
 
|improvement = true if improvable
 
 
 
|notes = optional
 
 
 
|trivia = optional
 
 
 
|see also = optional
 
 
 
 
}}
 
}}
 +
...
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Revision as of 14:11, 27 October 2017


Layout template for equipment pages.

Parameters

Template:Todo

  • 1: equipment name, PAGENAME is used by default.
  • ja: Japanese description of the equipment, defaults to ?.
  • en: English description of the equipment, defaults to ?.
  • buildable: set to true if equipment is buildable.
  • improvement: set to true if equipment is improvable.
  • notes: text in notes section.
  • trivia : text in trivia section (optional).
  • see also: text in see also section (optional).

Usage

Full page:

{{EquipmentPageHeader
|ja = 
|en = 
|buildable = 
|improvement = 
|notes = 
|trivia = 
|see also = 
}}

Or only for the header (from infobox to category tree):

{{EquipmentPageHeader
|ja = 
|en = 
|buildable = 
}}
...