Changes

no edit summary
Line 4: Line 4:  
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
   Line 141: Line 149:  
})
 
})
   −
function EquipmentData:create(ship)
+
function EquipmentData:create(equip)
ship = ship or {}
+
equip = equip or {}
setmetatable(ship, self)
+
setmetatable(equip, equip)
self.__index = self
+
equip.__index = self
return ship
+
return equip
 
end
 
end
  
Anonymous user