track @mediatype in template