[Mediawiki-l] Linking to a subject inside a page

Schneelocke schneelocke at gmail.com
Sun Jul 1 14:43:00 UTC 2007


2007/7/1, Jack D. Pond <jack.pond at psitex.com>:
> The table of contents will automatically create heading tags on a page for
> reference.  These tags will be in the form of underscore replacing spaces in
> headings.  For example
>
> == Test Heading ==
>
> Would create a tag:
>
> Test_Heading
>
> So on a page where you have more than 4 headings and/or forced creation of a
> TOC named Test Page,  you could create a reference as
>
> [[Test Page#Test_Heading]]

You don't actually need to convert the spaces to underscores yourself; writing

[[Test Page#Test Heading]]

will also work (and the same's true for other special characters; no
need to worry about those).

-- 
schnee



More information about the MediaWiki-l mailing list