• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
test
Line 1: Line 1: −
<includeonly>{{#vardefine:info|{{#invoke:EquipmentPage|info|pagename={{PAGENAME}}}}}}{{#vardefine:wikipedia|{{#invoke:EquipmentPage|wikipedia|pagename={{PAGENAME}}}}}}{{#vardefine:buildable|{{#invoke:EquipmentPage|buildable|pagename={{PAGENAME}}}}}}{{#vardefine:improvable|{{#invoke:EquipmentPage|improvable|pagename={{PAGENAME}}}}}}{{EquipmentInfoKai|{{{1|{{PAGENAME}}}}}}}{{EquipmentCategoriesKai|{{{1|{{PAGENAME}}}}}}}
+
<includeonly>{{#vardefine:info|{{#invoke:EquipmentPage|info|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:info_en|{{#invoke:EquipmentPage|info_en|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:wikipedia|{{#invoke:EquipmentPage|wikipedia|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:buildable|{{#invoke:EquipmentPage|buildable|pagename={{{1|{{PAGENAME}}}}}}}}}{{#vardefine:improvable|{{#invoke:EquipmentPage|improvable|pagename={{{1|{{PAGENAME}}}}}}}}}{{EquipmentInfoKai|{{{1|{{PAGENAME}}}}}}}{{EquipmentCategoriesKai|{{{1|{{PAGENAME}}}}}}}
 
<h2>Introduction</h2>
 
<h2>Introduction</h2>
<p>{{#if:{{#var:info}}|{{#var:info}}|{{#if:{{{ja|}}}|{{{ja}}}|?}}}}</p>
+
<p lang="ja">{{#if:{{#var:info}}|{{#var:info}}|{{#if:{{{ja|}}}|{{{ja}}}|?}}}}</p>
<p>''{{#if:{{{en|}}}|{{{en}}}|?}}''</p>
+
<p>''{{#if:{{#var:info_en}}|{{#var:info_en}}|{{#if:{{{en|}}}|{{{en}}}|?}}}}''</p>{{TOC right}}{{#if:{{{header|}}}||
 
<h2>Notes</h2>
 
<h2>Notes</h2>
 
'''{{#if:{{#var:buildable}}|Buildable|Unbuildable}}'''
 
'''{{#if:{{#var:buildable}}|Buildable|Unbuildable}}'''
 
{{#categorytree:Ships with {{{1|{{PAGENAME}}}}} as stock equipment|mode=pages|depth=0}}
 
{{#categorytree:Ships with {{{1|{{PAGENAME}}}}} as stock equipment|mode=pages|depth=0}}
 
{{#categorytree:Equipment that consume {{{1|{{PAGENAME}}}}} during improvement|mode=pages|depth=0}}
 
{{#categorytree:Equipment that consume {{{1|{{PAGENAME}}}}} during improvement|mode=pages|depth=0}}
{{#if:{{{header|}}}||{{{notes|}}}{{clear}}
+
{{{notes|}}}{{clear}}
 
{{#if:{{#var:improvable}}|<h2>Improvement</h2>
 
{{#if:{{#var:improvable}}|<h2>Improvement</h2>
 
{{ImprovementTableKai|{{{1|{{PAGENAME}}}}}|categories=true}}}}
 
{{ImprovementTableKai|{{{1|{{PAGENAME}}}}}|categories=true}}}}
 +
{{#ifexist:{{{1|{{PAGENAME}}}}}/Bonuses|<h2>Bonuses</h2>
 +
[[Category:Equipment with bonuses]]
 +
{{:{{{1|{{PAGENAME}}}}}/Bonuses}}}}
 
{{#if:{{{trivia|}}}|<h2>Trivia</h2>{{#if:{{{collapsed|}}}|<div class="mw-collapsible mw-collapsed">}}
 
{{#if:{{{trivia|}}}|<h2>Trivia</h2>{{#if:{{{collapsed|}}}|<div class="mw-collapsible mw-collapsed">}}
 
{{{trivia}}}{{#if:{{{collapsed|}}}|</div>{{clear}}}}}}
 
{{{trivia}}}{{#if:{{{collapsed|}}}|</div>{{clear}}}}}}
 
{{#if:{{#var:wikipedia}}|{{#if:{{{see also|}}}|<h2>See also</h2>
 
{{#if:{{#var:wikipedia}}|{{#if:{{{see also|}}}|<h2>See also</h2>
*[[wikipedia:{{#var:wikipedia}}|{{#var:wikipedia}} (Wikipedia)]]
+
*{{#var:wikipedia}}
{{{see also}}}
+
{{{see also}}}|<h2>See also</h2>
{{Equipmentlist}}|<h2>See also</h2>
+
*{{#var:wikipedia}}}}|{{#if:{{{see also|}}}|<h2>See also</h2>
*[[wikipedia:{{#var:wikipedia}}|{{#var:wikipedia}} (Wikipedia)]]
+
{{{see also}}}}}}}
{{Equipmentlist}}}}|{{#if:{{{see also|}}}|<h2>See also</h2>
+
{{#if:{{{test|}}}|{{Equipmentlist/Test}}|{{Equipmentlist}}}}}}</includeonly><noinclude>
{{{see also}}}
  −
{{Equipmentlist}}}}}}}}</includeonly><noinclude>
   
Layout template for [[:Category:Player equipment|equipment pages]].
 
Layout template for [[:Category:Player equipment|equipment pages]].
   Line 28: Line 29:  
*Notes section: Buildable/Unbuildable note, category trees, notes text, section clear
 
*Notes section: Buildable/Unbuildable note, category trees, notes text, section clear
 
*Improvement section if equipment is improvable
 
*Improvement section if equipment is improvable
 +
*Bonuses section, if <code>/Bonuses</code> subpage exists.
 
*Trivia section
 
*Trivia section
 
*See also section: Wikipedia and other links
 
*See also section: Wikipedia and other links
Line 35: Line 37:  
*'''[1]''': equipment name, <code>PAGENAME</code> is used by default.
 
*'''[1]''': equipment name, <code>PAGENAME</code> is used by default.
 
*'''ja''': Japanese description of the equipment, defaults to <code>_info</code> (<code>api_info</code>) from equipment data module or to <code>?</code> when there is no <code>_info</code>.
 
*'''ja''': Japanese description of the equipment, defaults to <code>_info</code> (<code>api_info</code>) from equipment data module or to <code>?</code> when there is no <code>_info</code>.
*'''en''': English description of the equipment, defaults to <code>?</code>.
+
*'''en''': English description of the equipment, defaults to <code>?</code> from equipment data module or to <code>?</code> when there is no <code>_info</code>..
 
*'''notes''': text in notes section.
 
*'''notes''': text in notes section.
 
*'''trivia ''': text in optional trivia section.
 
*'''trivia ''': text in optional trivia section.
Line 45: Line 47:  
The following equipment data module fields are used:
 
The following equipment data module fields are used:
 
*<code>_info</code> for '''ja'''
 
*<code>_info</code> for '''ja'''
*<code>_wikipedia</code> for Wikipedia link
+
*<code>_wikipedia</code> for Wikipedia link in optional see also section.
 
*<code>_buildable</code> for Buildable/Unbuildable note
 
*<code>_buildable</code> for Buildable/Unbuildable note
 
*<code>_improvements</code> for optional improvement section.
 
*<code>_improvements</code> for optional improvement section.
Line 52: Line 54:  
Full page:
 
Full page:
 
<pre>
 
<pre>
{{EquipmentPage
+
{{Equipment
 +
 
 
|en =  
 
|en =  
 +
 
|notes =  
 
|notes =  
 +
 
|trivia =  
 
|trivia =  
 +
 
|see also =  
 
|see also =  
 +
 
}}
 
}}
 
</pre>
 
</pre>
 
Or only for the header (from infobox to category tree):
 
Or only for the header (from infobox to category tree):
 
<pre>
 
<pre>
{{EquipmentPage
+
{{Equipment
 +
 
 
|header = true
 
|header = true
 +
 
|en =  
 
|en =  
 +
 
}}
 
}}
 
...
 
...
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>
42,696

edits

Navigation menu