To make linking to documents easy there’s a special tag, [[~id]] where id is the number of the document to link to.
The link tag has two optional parameters:
The link tag can be used in content, chunks and templates.