[Mediawiki-l] linking down a page to a header

Rowan Collins rowan.collins at gmail.com
Mon Jan 24 17:16:55 UTC 2005


On Mon, 24 Jan 2005 15:26:04 +0000, Jason Davies <ucgajpd at ucl.ac.uk> wrote:
> possibly dumb question....if I have a page with headers can I link to
> them without using a full URL?

Easy, just use [[#Subheading 2]]

> I tried [[This Page#Subheading 2]] type links, to no avail....

Yeah, I guess this would have worked up until the code was altered to
convert self-links to bold. Leaving out the page title's a good idea,
though, because it means the link stays valid if the page moves.

Of course, the usual warning about linking to sections/headings
applies: as soon as somebody alters the heading, however subtly, all
links pointing to that section will fail - they'll just link to the
top of the page (or in the case of linking further down the same page,
probably do nothing at all).

-- 
Rowan Collins BSc
[IMSoP]



More information about the MediaWiki-l mailing list