Let's start with the easy ones. I'll just give you an example for each of the first three functions. Note that these are very simplistic, non real-world examples and not all parameters of the pi_base methods are discussed here. Again: Have a look into the sources, all the parameters are explained there.
This is a companion discussion topic for the original entry at https://typo3.org/article/using-links-in-frontend-plugins/