Convert ranking to template