Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Ship
(view source)
Revision as of 05:58, 1 September 2018
123 bytes added
,
6 years ago
no edit summary
Line 56:
Line 56:
function Ship:get_table(name, model)
function Ship:get_table(name, model)
−
local success, ship_table =
U
.requireModule(name)
+
local success, ship_table =
Ship
.requireModule(name)
−
if not success then
−
success, ship_table = U.requireModule('Data/Ship/' .. name)
−
end
local ship_form_table
local ship_form_table
if success then
if success then
Line 110:
Line 107:
end
end
return mw.ustring.format('Module:%s', name)
return mw.ustring.format('Module:%s', name)
+
end
+
+
function Ship.requireModule(name)
+
local success, ship_table = U.requireModule(name)
+
if not success then
+
success, ship_table = U.requireModule('Data/Ship/' .. name)
+
end
+
return success, ship_table
end
end
がか
cssedit, gkautomate
7,064
edits