2,191 bytes added
, 9 years ago
local Ship = require("Module:Ship")
local Equipment = require("Module:Equipment")
local Formatting = require("Module:Formatting")
local format = require("Module:StringInterpolation").format
local Functions = require("Module:NanaminFunctions")
local CombinedFleet = {
_rows = {},
_ship_list = {},
_table_start = [[{|]],
_table_end = [[|}]],
_row_starter = "|-",
_transparent = "transparent",
_ship_image_bg = "#7FB8D6",
_equip_icon_bg = "#8DCDEE",
_equip_link_bg = "#E4F3FB",
_equip_locked_bg = "#CDDBE2",
_equip_icon_size = "22x22px",
_center_align = "center",
_header_top = [[<div class="mw-customtoggle-${toggle_class}" style="width: 615px; background: #A596B5; border-top-right-radius: 60px; border-top-left-radius: 60px; text-align: center; font-size: 18px; color: #000040;">''Main Fleet''</div>]],
_header_mid = [[<div class="mw-customtoggle-${toggle_class}" style="width: 615px; background: #A596B5; text-align:center; font-size: 18px; color:#000040;">''${text}''</div>]],
_header_bot = [[<div style="width: 615px; background: #A596B5; border-bottom-right-radius: 60px; border-bottom-left-radius: 60px; text-align: center; font-size: 18px; color:#000040;">''${map}''</div>]],
_ship_image_template = [[| colspan="2" style="background-color: ${values.bg_color};" |${values.ship_image}]],
_equip_icon_template = [[| style="text-align: center; background-color: ${values.bg_color};" |${values.equip_icon}]],
_equip_link_template = [[| style="width: 175px; text-align: center; background: ${values.bg_color};" |${values.equip_link}]],
_info_template = [[<b>${values.label}</b>: ${values.text}<br />]],
_id = "",
_fighter_power = 0,
_elos = 0,
_hq_level = 0
}
function CombinedFleet:organize_args()
local entries = {}
for _, entry in ipairs(self._args) do
if mw.ustring.sub(entry, 1, 1) == "#" then
elseif entry == "-" then
else
end
end
end
function CombinedFleet:Fleetbox(args)
self._args = args
self:generate_id()
self:organize_args()
return table.concat(self._rows, '\n')
end
return CombinedFleet