• 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
Swap common and strict
Line 937: Line 937:  
end
 
end
   −
function EquipmentData:common_name()
+
function EquipmentData:strict_name()
return self._common_name
+
return self._strict_name
 
end
 
end
   −
function EquipmentData:base_name()
+
function EquipmentData:common_name()
return self._base_name or self:name()
+
return self._common_name or self:name()
 
end
 
end
   Line 1,150: Line 1,150:  
setmetatable(equip, equip)
 
setmetatable(equip, equip)
 
equip.__index = self
 
equip.__index = self
if equip._common_name then
+
if equip._strict_name then
equip._base_name = equip._name
+
equip._common_name = equip._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._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))
 
end
 
end
Anonymous user

Navigation menu