Template:Navbar/doc

Usage:

would show:

and would show:

which both provide link to view/edit/discuss the template name inserted in 1

for details, see wikipedia:Template:Navbar

Note that the version of code used here isn't the latest in wikipedia and had modified a bit to suit this wikia