• 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
(test)
Line 2: Line 2:
 
<h2>Introduction</h2>
 
<h2>Introduction</h2>
 
<p lang="ja">{{#if:{{#var:info}}|{{#var:info}}|{{#if:{{{ja|}}}|{{{ja}}}|?}}}}</p>
 
<p lang="ja">{{#if:{{#var:info}}|{{#var:info}}|{{#if:{{{ja|}}}|{{{ja}}}|?}}}}</p>
<p>''{{#if:{{#var:info_en}}|{{#var:info_en}}|{{#if:{{{en|}}}|{{{en}}}|?}}}}''</p>{{TOC right}}{{#if:{{{header|}}}||
+
<p>''{{#if:{{#var:info_en}}|{{#var:info_en}}|{{#if:{{{en|}}}|{{{en}}}|?}}}}''</p>{{TOC left}}{{#if:{{{header|}}}||
 
<h2>Notes</h2>
 
<h2>Notes</h2>
 
'''{{#if:{{#var:buildable}}|Buildable|Unbuildable}}'''
 
'''{{#if:{{#var:buildable}}|Buildable|Unbuildable}}'''

Revision as of 05:51, 4 July 2024

Layout template for equipment pages.

The general layout that can be generated is:

  • Infobox
  • Automatic categories
  • Introduction section: Japanese and English descriptions
  • Notes section: Buildable/Unbuildable note, category trees, notes text, section clear
  • Improvement section if equipment is improvable
  • Bonuses section, if /Bonuses subpage exists.
  • Trivia section
  • See also section: Wikipedia and other links
  • Navbox.

Parameters

  • [1]: equipment name, PAGENAME is used by default.
  • ja: Japanese description of the equipment, defaults to _info (api_info) from equipment data module or to ? when there is no _info.
  • en: English description of the equipment, defaults to ? from equipment data module or to ? when there is no _info..
  • notes: text in notes section.
  • trivia : text in optional trivia section.
    • collapsed: set to have collapsed trivia section (e.g., for long write-ups).
  • see also: text in optional see also section.
  • header: set to ignore and not generate anything after category tree (notes text and clear, improvement, trivia, see also sections, navbox).

Lua parameters

The following equipment data module fields are used:

  • _info for ja
  • _wikipedia for Wikipedia link in optional see also section.
  • _buildable for Buildable/Unbuildable note
  • _improvements for optional improvement section.

Usage

Full page:

{{Equipment

|en = 

|notes = 

|trivia = 

|see also = 

}}

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

{{Equipment

|header = true

|en = 

}}
...