FANDOM


This page is a Lua data 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, under a string key. This string key determines the part after the "/" in the ship lookup. 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 enemy forms that can't be differentiated by name, they should be numbered with roman numerals according to the order of their _api_id, except the first one, for which the numeral should be omitted.

See #Ship Form Data Format for the contents of these tables.

For example,
local Ooyodo = {
    [""] = {
        ... --ship data goes here
    },
    ["Kai"] = {
        ... --ship data goes here
    },
}

return Ooyodo

It is also possible to redirect forms by specifying a ship selector string, instead of a table. If the base name of the ship form to be redirected to is the same as the form that is being redirected, the base name can be omitted.

For example,
local Harbour_Princess = {
    ...
    ["II"] = {
        ... --ship data goes here
    },
    ["Final"] = "/II",
    OR
    ["Final"] = "Harbour Princess/II",
}

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

For example,
local Ooyodo = {
    class = {
        ... --ship class data goes here
    },
}

return Ooyodo

For seasonal forms' format, see Template:Ship/Gallery.



Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:ShipDataDocumentation/doc to edit this documentation. (How does this work?)
Note: this template is/can be generated from its JSX subpage.
This template provides the documentation for ship data modules.

Parameters

This template accepts two parameters.

At least one of ship or class must be true.

ship

Boolean. Whether or not this ship data module contains a ship. Defaults to false.

class

Boolean. Whether or not this ship data module contains a ship class. Defaults to false.
Community content is available under CC-BY-SA unless otherwise noted.