Template:langindex/documentation

Examples
produces:

produces:

uses the current pagename and produces: