Template:Internexus

This is a simple formula for maintaining internal links within a work. (Typically, this would be a scientific work, which cites itself along the way, e.g. la:Disquisitiones arithmeticae.) Note: this template's name means (by mistake) interlink, whereas its main use is “intralinking”. But it could be used for “interlinking” different works... Syntax:  or. The anchor name is d (mainly spaces to underscores). If no text is given for displaying the link, the anchor name is used instead (not d). To resolve where to find the targeted anchor, inex looks up an index of links: the InterNexii page, which one has to create. It is a kind of (alas) ugly TOC in a subpage. Example for page namespace:  The main interest is  when pages are split (one only has to edit once the InterNexii index), and in the page namespace (I don't know if it's really proper to have a pseudo-page full of data but it works (proofread ext shows a random/the first/ the last page I believe))...  Another advantage is the compactness of links, especially with the shorthand inex:  gives either  or  or something else somewhere else... (for example, a user making their own selective edition for course material, etc.).

With the proper InterNexii indexes, one can also have: transform into  There's a special hack for Index namespace: it looks up the InterNexii index in the Page namespace (useful for transclusion of TOCs).