Template param extract functionality