def format_template_names(name_list):
    """Create a comma-separated list of template names.

    :param name_list: Input list of names
    :return: Comma-separated string
    """
    name_txt = ''
    for i_name, name_i in enumerate(name_list):
        if (i_name == 0):
            name_txt += name_i
        else:
            name_txt += ',' + name_i
    return name_txt