• 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
>Ckwng
Line 1: Line 1:
This page is a data [[w:c:c:Help:Lua|Lua module]] for {{#ifeq:{{{ship|false}}}|true|the ship [[{{{1}}}]]{{#ifeq:{{{class|false}}}|true|, <nowiki></nowiki>| and <nowiki></nowiki>}}it's forms}}{{#ifeq:{{{class|false}}}|true|{{#ifeq:{{{ship|false}}}|true|, and <nowiki></nowiki>}}the ship class with that name}}.{{#ifeq:{{{ship|false}}}|true|<nowiki></nowiki>
+
This page is a data [[w:c:c:Help:Lua|Lua module]] for {{#ifeq:{{{ship|false}}}|true|the ship [[{{{1}}}]]{{#ifeq:{{{class|false}}}|true|, <nowiki></nowiki>|<nowiki></nowiki> and <nowiki></nowiki>}}it's forms}}{{#ifeq:{{{class|false}}}|true|{{#ifeq:{{{ship|false}}}|true|, and <nowiki></nowiki>}}the ship class [[{{{1}}}]]}}.{{#ifeq:{{{ship|false}}}|true|<nowiki></nowiki>
  
 
The name, stats, equipment, and other data for the ship [[{{{1}}}]] are recorded here.}}{{#ifeq:{{{class|false}}}|true|<nowiki></nowiki>
 
The name, stats, equipment, and other data for the ship [[{{{1}}}]] are recorded here.}}{{#ifeq:{{{class|false}}}|true|<nowiki></nowiki>
Line 9: Line 9:
 
{{#ifeq:{{{ship|false}}}|true|{{ShipDataDocumentation/ShipForm}} }}
 
{{#ifeq:{{{ship|false}}}|true|{{ShipDataDocumentation/ShipForm}} }}
  
{{#ifeq:{{{class|false}}}|true|{{ShipDataDocumentation/ShipClass}} }}
+
{{#ifeq:{{{class|false}}}|true|{{ShipDataDocumentation/ShipClass}} }}<noinclude>
 +
 
 +
{{documentation}}</noinclude>

Revision as of 05:21, 2 March 2015

This page is a data Lua module for .

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



Template-info.png Template documentation [view] [edit] [history] [purge]