Changes

no edit summary
Line 7: Line 7:  
local EquipmentLink = require('Module:EquipmentLink')
 
local EquipmentLink = require('Module:EquipmentLink')
 
local format = require('Module:Core').format
 
local format = require('Module:Core').format
local CalcAsset = require('Module:Calc/Plugins/Assets')
      
local t = require('Module:I18N').t
 
local t = require('Module:I18N').t
Line 13: Line 12:     
local ShipInfoKai = BaseData{
 
local ShipInfoKai = BaseData{
_unbuildable = hh.i(t('Unbuildable')),
+
_unbuildable = "''Unbuildable''",
_remodel_level = hh.b(t('Remodel Level')),
+
_remodel_level = "'''Remodel Level'''",
_build_time = hh.b(t('Build Time')),
+
_build_time = "'''Build Time'''",
 
_default_slot_num = 4,
 
_default_slot_num = 4,
_normal_construction = t('Normal'),
+
_normal_construction = "Normal",
 
_normal_construction_category = ":Category:Ships buildable in Normal Construction",
 
_normal_construction_category = ":Category:Ships buildable in Normal Construction",
 
_large_ship_construction = "LSC",
 
_large_ship_construction = "LSC",
 
_large_ship_construction_category = ":Category:Ships buildable in Large Ship Construction",
 
_large_ship_construction_category = ":Category:Ships buildable in Large Ship Construction",
 
_ship_data_documentation = "Template:ShipDataDocumentation/EditIntro",
 
_ship_data_documentation = "Template:ShipDataDocumentation/EditIntro",
_edit_link_text = t('Edit'),
+
_edit_link_text = "Edit",
 
_localized_name_template = "<br />''${localized_name}''",
 
_localized_name_template = "<br />''${localized_name}''",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
Line 62: Line 61:  
"gun_fit_properties",
 
"gun_fit_properties",
 
"improvement",
 
"improvement",
"asset_key",
   
},
 
},
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
Line 69: Line 67:  
| style="width: 50px;" | ${slot_size}
 
| style="width: 50px;" | ${slot_size}
 
]],
 
]],
_template = [[{|class="${table_class}" id="${table_id}" style="width: 320px; float: ${float};" data-asset-key="${asset_key}"
+
_template = [[{|class="${table_class}" id="${table_id}" style="width: 320px; float: ${float};"
 
|-
 
|-
 
| colspan="6" class="infobox-kai-header-major" style="position: relative; text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}" | <div style="position: absolute; right: 5px;">${edit_link}</div>
 
| colspan="6" class="infobox-kai-header-major" style="position: relative; text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}" | <div style="position: absolute; right: 5px;">${edit_link}</div>
Line 163: Line 161:  
function ShipInfoKai:edit_link()
 
function ShipInfoKai:edit_link()
 
self._vars.edit_link = Formatting:format_edit_link(self._ship_data_module, self._edit_link_text, self._ship_data_documentation)
 
self._vars.edit_link = Formatting:format_edit_link(self._ship_data_module, self._edit_link_text, self._ship_data_documentation)
end
  −
  −
function ShipInfoKai:asset_key()
  −
self._vars.asset_key = CalcAsset.card(self._ship)
   
end
 
end
  
cssedit, gkautomate
6,928

edits