- 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
Line 4:
Line 4:
+
+
+
+
+
+
+
+
Line 141:
Line 149:
− +
− ship = ship or {} +
− +
− self.__index = self +
− +
no edit summary
function EquipmentData:name(raw)
function EquipmentData:name(raw)
return self:format_stat(self._name, raw)
return self:format_stat(self._name, raw)
end
function EquipmentData:link(raw)
if self._page then
return mw.ustring.format(self._aliased_link, self._page, self:name())
else
return mw.ustring.format(self._simple_link, self:name())
end
end
end
})
})
function EquipmentData:create(ship)
function EquipmentData:create(equip)
equip = equip or {}
setmetatable(ship, self)
setmetatable(equip, equip)
equip.__index = self
return ship
return equip
end
end