def prepare_template_team_data(template_team):
    """Prepare template team data with each player in necessary subplot positions."""
    position_offsets = {'GK': 1, 'DEF': 5, 'MID': 10, 'FWD': 16}
    data = []
    for position, players in template_team.items():
        for idx, player in enumerate(players):
            data.append({'code': player.code, 'idx': position_offsets[
                position] + (idx if position != 'GK' else 2 * idx), 'team':
                player.team_id, 'label':
                f'{player.name} ({player.ownership}%)'})
    return data
