Definition: create_ship_group_template(table iconlist, bool sub) -> userdata box Description: Create weapon groups tab Arguments: iconlist list of portdata sub create as a sub tab Returns: box GroupsTab