Add some more documentation to TemplateQueryParser

Relates to #4879