Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ListOfSortable
(view source)
Revision as of 21:49, 6 September 2022
248 bytes added
,
2 years ago
no edit summary
Line 58:
Line 58:
function ListOfSortable.ParseAndGenerate(frame)
function ListOfSortable.ParseAndGenerate(frame)
−
local shipClass = frame.args['shipClass']
+
local
shipClass = {}
−
local remodelSuffix = U.split(frame.args['remodelSuffix'], ',')
+
if frame.args['shipClass'] ~= nil then
shipClass = frame.args['shipClass']
end
−
local notes = U.split(frame.args['notes'], ',\n')
+
local
remodelSuffix = {}
−
local coloring = U.split(frame.args['coloring'], ',\n')
+
if frame.args['remodelSuffix'] ~= nil then
remodelSuffix = U.split(frame.args['remodelSuffix'], ',')
end
+
local notes
= {}
+
if frame.args['notes'] ~= nil then notes
= U.split(frame.args['notes'], ',\n')
end
+
local coloring
= {}
+
if frame.args['coloring'] ~= nil then coloring
= U.split(frame.args['coloring'], ',\n')
end
return GenerateTable(shipClass, remodelSuffix, notes, coloring)
return GenerateTable(shipClass, remodelSuffix, notes, coloring)
Memetails
1,031
edits