• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 14: Line 14:  
}
 
}
   −
local function generateTable(shipClass, remodelSuffix, notes, coloring, ...)
+
local function GenerateTable(shipClass, remodelSuffix, notes, coloring, ...)
 
local shipClass = shipClass or frame.args[1] or "??"
 
local shipClass = shipClass or frame.args[1] or "??"
 
local success, data = U.loadData("Data/Ship")
 
local success, data = U.loadData("Data/Ship")
Line 56: Line 56:  
end
 
end
   −
local function render(frame)
+
local function ParseAndGenerate(frame)
 
local shipClass = frame.args['shipClass']
 
local shipClass = frame.args['shipClass']
 
local remodelSuffix = U.split(frame.args['remodelSuffix'], ',')
 
local remodelSuffix = U.split(frame.args['remodelSuffix'], ',')
local notes = U.split(frame.args['notes'], ',')
+
local notes = U.split(frame.args['notes'], ',\n')
local coloring = U.split(frame.args['coloring'], ',')
+
local coloring = U.split(frame.args['coloring'], ',\n')
 
 
return generateTable(shipClass, remodelSuffix, notes, coloring)
+
return GenerateTable(shipClass, remodelSuffix, notes, coloring)
end
+
end
    
local function test()
 
local function test()
Line 112: Line 112:  
frame.args['notes'] = "Mikazuki/Kai_notes = Can equip [[Daihatsu Landing Craft|Daihatsu]],\nMutsuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]],\nKisaragi/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]],\nSatsuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]] & [[Special Type 2 Amphibious Landing Craft|Type 2 Landing Craft]],\nFumizuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]] & [[Special Type 2 Amphibious Landing Craft|Type 2 Landing Craft]]"
 
frame.args['notes'] = "Mikazuki/Kai_notes = Can equip [[Daihatsu Landing Craft|Daihatsu]],\nMutsuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]],\nKisaragi/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]],\nSatsuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]] & [[Special Type 2 Amphibious Landing Craft|Type 2 Landing Craft]],\nFumizuki/Kai Ni_notes = 2nd remodel. Can equip [[Daihatsu Landing Craft|Daihatsu]] & [[Special Type 2 Amphibious Landing Craft|Type 2 Landing Craft]]"
 
frame.args['coloring'] = "remodel_level_good = 20,\nremodel_level_outstanding = 15,\nremodel_level_operator = <,\nfirepower_good = 56,\nfirepower_outstanding = 61,\ntorpedo_good = 83,\ntorpedo_outstanding = 89,\nnight_battle = true,\nnight_battle_good = 140,\nnight_battle_outstanding = 150,\nreference_type = 2"
 
frame.args['coloring'] = "remodel_level_good = 20,\nremodel_level_outstanding = 15,\nremodel_level_operator = <,\nfirepower_good = 56,\nfirepower_outstanding = 61,\ntorpedo_good = 83,\ntorpedo_outstanding = 89,\nnight_battle = true,\nnight_battle_good = 140,\nnight_battle_outstanding = 150,\nreference_type = 2"
mw.log(render(frame))
+
mw.log(ParseAndGenerate(frame))
 
end
 
end
  
1,031

edits

Navigation menu