Currently, if you want to link to a section within another page, you can do it with a #tocX link. For example, linking to DoubleKo#toc2 leads to the section about "Seki in double ko".
This can be useful, because that way, in another discussion you can say something like:
If, however, someone adds a section to the double ko article above this one, the #toc2 link will break (it it now #toc3). If instead, such links would lead to named sections, that problem would not occur. So I would like to be able to link to something like DoubleKo#SekiInDoubleKo, where the section title has been turned into a valid page name (ie: stripping spaces and punctuation) and then used as the content of the <a name=""> element.
This new way is still vulnerable to breaking if someone changes the section title, but i think that is less likely to happen than the addition of new section (or a reorganization of the current ones). And also, if you link to a section, you can leave a note there on in a comment line (starting with %) which goes something like:
As an alternative, how about a special template that allows you to add an anchor to the page?
EG, something like: {{anchor|StraightJGroup}} in the J Groups page, which would insert an <a name="StraightJGroup"> into the page, and which allows the same result as the current J-Groups#4, but without any content generated.
Also important in this case would be to allow Aliases to point to anchors, so we could alias StraightJGroup to !Jgroups#StraightJGroup (or is this possible already?)
Herman,
I liked the template idea, so I have implemented it. See SpecialTemplates/Anchor.
Having aliases with anchors does not really work:
Ok, thank you very much, very useful!