Add links for index, next, prev to wiki pages

This is a part of #81

The code is a bit messier and costly than I would prefer but
that can be improved later.