Changes

no edit summary
Line 56: Line 56:     
local function render(frame)
 
local function render(frame)
local shipClass = frame.args[1]
+
local shipClass = frame.args['shipClass']
local remodelSuffix = U.split(frame.args[2], ',\n')
+
local remodelSuffix = U.split(frame.args['remodelSuffix'], ',\n')
local notes = U.split(frame.args[3], ',\n')
+
local notes = U.split(frame.args['notes'], ',\n')
local coloring = U.split(frame.args[4], ',\n')
+
local coloring = U.split(frame.args['coloring'], ',\n')
 
 
 
return generateTable(shipClass, remodelSuffix, notes, coloring)
 
return generateTable(shipClass, remodelSuffix, notes, coloring)
Line 107: Line 107:  
local frame = {}
 
local frame = {}
 
frame.args = {}
 
frame.args = {}
frame.args[1] = "Destroyer"
+
frame.args['shipClass'] = "Destroyer"
frame.args[2] = "B Kai, D Kai, Mk.II, Zwei"
+
frame.args['remodelSuffix'] = "B Kai, D Kai, Mk.II, Zwei"
frame.args[3] = "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[4] = "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(render(frame))
 
end
 
end
1,031

edits