[TPL] Fixed the templating in documentation functions