Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:KanmusuModule
(view source)
Revision as of 04:23, 2 March 2017
1 byte added
,
7 years ago
m
Adjustment
Line 5:
Line 5:
function shipmodule.KanmusuInfo(frame) -- Kanmusu Info Template
function shipmodule.KanmusuInfo(frame) -- Kanmusu Info Template
local shipNum = frame.args[1]
local shipNum = frame.args[1]
−
if(tonumber(string.sub(shipNum, 1, 3)) == nil) then -- if given a name instead of ID, this searches the db for the ship's corresponding ID
+
if (tonumber(string.sub(shipNum, 1, 3)) == nil) then -- if given a name instead of ID, this searches the db for the ship's corresponding ID
shipNum = shipdb.findID(frame)
shipNum = shipdb.findID(frame)
end
end
KyoriAsh
6,043
edits