Extended autocompletion with customized templates