How to browse through references inside the template

Reference in templates is created using the format:

${contextPath}/template/${template}/task/${task.number}

Where ${contextPath} is the context (variable already assigned), and $(template) –name of the template (already stored in the variable template).

For displaying the list of subtasks of the current task, filtered by the filter with the name ${filter}:

${contextPath}/template/${template}/task/${task.number}/filter/${filter}

For reference of attachment  ${attachment} to the current task:

${contextPath}/download/task/${task.number}/${attachment.id}/${attachment.name}

And the attached image can be previewed in the following manner:

<img align="middle" border="0" 
src="${contextPath}/TSImageServlet?session=${task.secure.id}&attId=${attachment.id}&width=100&height=75"/>