Module:Hull List

local p = {}

-- Module call from Template:Hull List function p.getList( frame ) local args = require("Module:Args").getCleanArgs

local title = frame:getParent:preprocess("") local categories = args.categories or "" local stats = require("Module:Statistic") local t = {		"Weapon Slots", "Hangar Slots", "Spawner Slots", "Armor Slots", "Shield Slots", "Ablative Armor Slots", "Screen Slots", "Special Slots", "Resistance Slots", }	for i = 1, #t do		t[i] = stats.imageTooltip("Module:Statistic/Legacy/Ship", t[i]) end local tr = "%%, %%,, , , , , , , , , %%, %% t, %% t"	if categories ~= "" then return frame:callParserFunction{ name = '#dpl', args = {				category = categories, uses = "Template:Hull", include = "{Hull}:faction:tier:weapon_slots:hangar_slots:spawner_slots:armor_slots:shield_slots:ablative_armor_slots:screen_slots:special_slots:resistance_slots:health:unladen_mass:maximum_mass", table = "class=\"wikitable sortable\" style=\"width: 100%; text-align: center;\", Name, Faction, Tier, " .. table.concat(t, ",") .. ", Health, Unladen Mass, Maximum Mass", tablerow = tr, tablesortcol = 3, [1] = ''			}		}	else return frame:callParserFunction{ name = '#dpl', args = {				uses = "Template:Hull", include = "{Hull}:faction:tier:weapon_slots:hangar_slots:spawner_slots:armor_slots:shield_slots:ablative_armor_slots:screen_slots:special_slots:resistance_slots:health:unladen_mass:maximum_mass", table = "class=\"wikitable sortable\" style=\"width: 100%; text-align: center;\", Name, Faction, Tier, " .. table.concat(t, ",") .. ", Health, Unladen Mass, Maximum Mass", tablerow = tr, tablesortcol = 3, [1] = ''			}		}	end end

return p