Module:EnemyEquipmentInfoKai

local EquipmentGraphicKai = require('Module:EquipmentGraphicKai') local EquipmentInfoKai = require('Module:EquipmentInfoKai') local Formatting = require('Module:Formatting')

local format = require('Module:StringInterpolation').format

local EnemyEquipmentInfoKai = EquipmentInfoKai{ _template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 380px; background-color: #fafafa; float: ${float};" ${name} ${localized_name} No.${id} ${japanese_name} ${icon} ${eq_type}  Effects: ${effects}  ${buildable} ${alternative_names} ${compatibility_details}	_plane_types = {		[6] = true,		[7] = true,		[8] = true,		[11] = true,	} }
 * colspan="2" style="position: relative; padding: 1px 40px; text-align: center; background-color: ${back};${extra_style};" title="${rarity}" | ${edit_link}
 * colspan="2" style="position: relative; padding: 1px 40px; text-align: center; background-color: ${back};${extra_style};" title="${rarity}" | ${edit_link}
 * colspan="2" style="text-align: center; background-color: whitesmoke;" |
 * colspan="2" style="text-align: center; background-color: whitesmoke;" |
 * colspan="2" style="text-align: center;" | ${card}
 * colspan="2" style="text-align: center; background-color: LightSkyBlue;" | Refittable Class
 * colspan="2" style="text-align: center; background-color: LightSkyBlue;" | Refittable Class
 * colspan="2" style="text-align: center; background-color: LightSkyBlue;" | Refittable Class
 * }]],

function EnemyEquipmentInfoKai:image self._vars.card = EquipmentGraphicKai:get{equip = self._equipment} if self._plane_types[self._equipment.type] then local tabber = Tabber tabber:add_tab("Equipment", self._vars.card) tabber:add_flying("Flying", EquipmentGraphicKai:get{equip = self._equipment, flying = true}) self._vars.card = tostring(tabber) end end

return EnemyEquipmentInfoKai