• 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/ShipData"

From Kancolle Wiki
Jump to navigation Jump to search
>Ckwng
>Ckwng
 
Line 1: Line 1:
 
==Ship Data Format==
 
==Ship Data Format==
  
This module should return a table.
+
<div class="mw-collapsible {{#if:{{{collapsed|false}}}|true|mw-collapsed}}">This module should return a table.
  
 
If the module contains ship forms, the returned table should contain 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".
 
If the module contains ship forms, the returned table should contain 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,
+
<div class="mw-collapsible-content">For example,
  
 
  local Ooyodo = {
 
  local Ooyodo = {
Line 27: Line 27:
 
   
 
   
 
  return Ooyodo
 
  return Ooyodo
 +
</div></div>

Latest revision as of 03:45, 2 March 2015

Ship Data Format

This module should return a table.

If the module contains ship forms, the returned table should contain 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

If the module contains a ship class, the returned table should contain contain a table under the key class.

local Ooyodo = {
    class = {
        ...
    },
}

return Ooyodo