phpdocs for include/text.php

fix phpdocs for include/text.php

I've made up two tags:

    @template <template name> , to document templates used in a function
    @hook <hook name> <arguments description> , to document hooks called in a function