• 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
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a module containing the data for {{{1}}}.
+
This page is a [[w:c:c:Help:Lua|Lua]] ''data module'' for {{#ifeq:{{{ship|false}}}|true|the ship [[{{BASEPAGENAME}}]]{{#ifeq:{{{class|false}}}|true|, <nowiki></nowiki>|<nowiki></nowiki> and <nowiki></nowiki>}}it's forms}}{{#ifeq:{{{class|false}}}|true|{{#ifeq:{{{ship|false}}}|true|, and the ship class of the same name|the ship class [[{{BASEPAGENAME}}]]}} }}.{{#ifeq:{{{ship|false}}}|true|<nowiki></nowiki>
  
==Ship Data Format==
+
The name, stats, equipment, and other data for the ship [[{{BASEPAGENAME}}]] are recorded here.}}{{#ifeq:{{{class|false}}}|true|<nowiki></nowiki>
  
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".
+
The name, base ship type, and other data for the ship class [[{{BASEPAGENAME}}]] are {{#ifeq:{{{ship|false}}}|true|also <nowiki></nowiki>}}recorded here.}}
  
For example,
+
{{ShipDataDocumentation/ShipData}}
  
local Ooyodo = {
+
{{#ifeq:{{{ship|false}}}|true|{{ShipDataDocumentation/ShipForm}} }}
    [""] = {
 
        ...
 
    },
 
    ["Kai"] = {
 
        ...
 
    },
 
}
 
 
return Ooyodo
 
  
==Ship Form Data Format==
+
{{#ifeq:{{{class|false}}}|true|{{ShipDataDocumentation/ShipClass}} }}<noinclude>
  
The table for each form should contain a number of key value pairs that describe the ship.
+
{{documentation}}</noinclude>
 
 
===_name===
 
String. The name of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_rarity===
 
Integer. A number from 1-8 indicating the rarity of the ship. Refer to ''api_backs''.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_id===
 
Integer. The id of the ship as shown in the Ship Library. Refer to ''api_sortno''.
 
 
 
However, if this ship shares a slot in the ship list with another ship, ''api_sortno'' may not match the id it is listed under in the Ship Library. In this case use the Ship Library id.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_true_id===
 
Integer. The true id of the ship. If the Ship Library id does not match the ''api_sortno'', the ''api_sortno'' should be recorded as the ''_true_id''.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_card===
 
String. The name of the card image on [[Kancolle Wiki]]. Omit "File:" from the image.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_japanese_name===
 
STring. The japanese name of the ship. Refer to ''api_name''.
 
 
 
If unknown, omit or set to nil.
 
 
 
===reading===
 
String. The furigana for the name of the ship. Refer to ''api_yomi''.
 
 
 
For ships that have multiple names, ''api_yomi'' may contain the readings for all of the names and will require editing.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_class===
 
String. The class of the ship.
 
 
 
Module:''_class'' will be loaded to provide data on the ship class.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_type===
 
Integer. The type of the ship. A number from 1-21. Refer to ''api_stype''.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_hp===
 
Integer. The base hp of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_hp_max===
 
Integer. The max hp of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_firepower===
 
Integer. The base firepower of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_firepower_max===
 
Integer. The max firepower of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_firepower_mod===
 
Integer. The amount of firepower the ship grants through [[Modernization]].
 
 
 
If unknown, omit or set to nil.
 
 
 
===_armor===
 
Integer. The base armor of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_armor_max===
 
Integer. The max armor of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_armor_mod===
 
Integer. The amount of armor the ship grants through [[Modernization]].
 
 
 
If unknown, omit or set to nil.
 
 
 
===_torpedo===
 
Integer. The base torpedo of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_torpedo_max===
 
Integer. The max torpedo of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_torpedo_mod===
 
Integer. The amount of torpedo the ship grants through [[Modernization]].
 
 
 
If unknown, omit or set to nil.
 
 
 
===_evasion===
 
Integer. The base evasion of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_evasion_max===
 
Integer. The max evasion of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_aa===
 
Integer. The base AA of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_aa_max===
 
Integer. The max AA of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_aa_mod===
 
Integer. The amount of AA the ship grants through [[Modernization]].
 
 
 
If unknown, omit or set to nil.
 
 
 
===_asw===
 
Integer. The base ASW of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_asw_max===
 
Integer. The max ASW of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_speed===
 
Integer. The speed of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_los===
 
Integer. The base LOS of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_los_max===
 
Integer. The max LOS of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_range===
 
Integer. The range of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_luck===
 
Integer. The base luck of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_luck_max===
 
Integer. The max luck of the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_luck_mod===
 
Integer. The amount of luck the ship grants through [[Modernization]].
 
 
 
If unknown, omit or set to nil.
 
 
 
===_buildable===
 
Boolean. Whether or not this ship is buildable.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_build_time===
 
Integer. The amount of minutes it takes to build the ship.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_fuel===
 
Integer. The max amount of fuel consumed.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_ammo===
 
Integer. The max amount of ammo consumed.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_scrap_fuel===
 
Integer. The amount of fuel returned when the ship is scrapped.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_scrap_ammo===
 
Integer. The amount of ammo returned when the ship is scrapped.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_scrap_steel===
 
Integer. The amount of steel returned when the ship is scrapped.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_scrap_baux===
 
Integer. The amount of bauxite returned when the ship is scrapped.
 
 
 
If unknown, omit or set to nil.
 
 
 
===_equipment===
 
Table. A table containing other tables that represent equipment slots.
 
 
 
If unknown, omit or set to nil.
 
 
 
====Equipment Slot====
 
Table. A table representing an equipment slot.
 
 
 
=====equipment=====
 
String. The name of the equipment in the slot.
 
 
 
If no equipment is equipped, set to ''false''.
 
 
 
If unknown, omit or set to nil.
 
 
 
=====size=====
 
String. The size of the slot.
 
 
 
If unknown, omit or set to nil.
 

Latest revision as of 23:06, 4 March 2015

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. 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]