Changes
Fix link, rename upgradable to improvement
local BaseData = require("Module:BaseData")
local BaseData = require("Module:BaseData")
local EquipmentData = BaseData({
local EquipmentData = BaseData({
_strict_translation_class = "strict-translation",
_strict_translation_class = "strict-translation",
if self._page then
if self._page then
return self._page, self:name()
return self._page, self:name()
end
end
return self:name()
end
end
end
end
function EquipmentData:upgradable()
function EquipmentData:improvement()
return not not self._upgradable
return not not self._improvement
end
function EquipmentData:improvement_from()
return self._improvement_from
end
end
equip._name = tostring(mw.html.create('span'):addClass(self._mobile_hide_class):addClass(self._strict_translation_class):css(self._display_none_css):wikitext(equip._strict_name))
equip._name = tostring(mw.html.create('span'):addClass(self._mobile_hide_class):addClass(self._strict_translation_class):css(self._display_none_css):wikitext(equip._strict_name))
.. tostring(mw.html.create('span'):addClass(self._common_translation_class):wikitext(equip._common_name))
.. tostring(mw.html.create('span'):addClass(self._common_translation_class):wikitext(equip._common_name))
if not equip._page then
equip._page = equip._common_name
end
end
end
return equip
return equip