def grab_cite_data(template, supported_templates):
    """Check for supported templates and extract citation data"""
    template_name = str(template.name).lower().strip().capitalize()

    if template_name in supported_templates:
        data = {
            str(para.name).lower().strip(): str(para.value)
            for para in template.params
            if para.value.strip()
        }
        return data, template_name
    else:
        return None, None