Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Equipment
(view source)
Revision as of 10:06, 9 December 2017
123 bytes added
,
6 years ago
no edit summary
Line 22:
Line 22:
end
end
equipment_table = success2 and equipment_table2 or eq or { _name = name }
equipment_table = success2 and equipment_table2 or eq or { _name = name }
+
if eq and eq._module then
+
equipment_table._module = eq._module
+
end
end
end
local equipment = EquipmentData(equipment_table)
local equipment = EquipmentData(equipment_table)
Line 33:
Line 36:
function Equipment:get_module(name)
function Equipment:get_module(name)
−
return name and mw.ustring.format('Module:%s', name) or nil
+
return name and mw.ustring.format('Module:%s',
equipments[name] and equipments[name]._module or
name) or nil
end
end
がか
cssedit, gkautomate
7,064
edits