Several template function documentation in phpdoc format.

Signed-off-by: enyst <engel.nyst@gmail.com>
Convert pieces of documentation for profile template functions.

Signed-off-by: enyst <engel.nyst@gmail.com>