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

From Kancolle Wiki
Jump to navigation Jump to search
>Ckwng
(Documentation for ShipData data modules. WIP.)
 
>Ckwng
Line 1: Line 1:
This is a module containing the data for {{{$1}}}.
+
This is a module containing the data for {{{1}}}.
  
 
==Ship Data Format==
 
==Ship Data Format==

Revision as of 10:31, 21 February 2015

This is a module containing the data for {{{1}}}.

Ship Data Format

This module should return a table, which contains other tables for each form of the ship. The table for the basic form should be under the key "", or the empty string. Remodels should be under the suffix of that remodel, like "Kai" or "Kai Ni".

For example,

local Ooyodo = {
    [""] = {
        ...
    },
    ["Kai"] = {
        ...
    },
}

return Ooyodo

Ship Form Data Format

The table for each form should contain a number of key value pairs that describe the ship.

_name

String. The name of the ship.

_rarity

Integer. A number from 1-8 indicating the rarity of the ship.