Last modified: 2011-03-13 18:06:25 UTC
== My Page == foo === My Section === bar ---------------------------------------- [[My Page#My Section]] will break if "My Section" is renamed
We are currently authoring the JAX-WS documentation on mediawiki http://tddell.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide
What sort of heuristic would we use to figure out what the "same" section is? For instance, if I change: == Foo == Blah blah blah bleh bleh bleh to: == Bar == Blah blah blah == Baz == Bleh bleh bleh what happens to the section anchor? It would probably be more coherent to have a list of "alternative" section anchors in the wikitext itself, I suppose, but that makes things look kind of messy (and can be done manually by adding some empty spans or whatnot, if you really want to).
You can create manual anchors if you wish to have stable or shorter items. (eg <span id="sec1a"></span>) or whatever. MediaWiki's section anchors are inherently unstable due to the nature of the beast.
A special page that discovers broken section anchors would already help a lot. Is that feasible?
(In reply to comment #4) No.
We could probably construct such a special page, but it would require a new database table or two, probably. Likely not worth the effort. If you want to pursue that, please open a new bug report: separate reports for separate requests.
JBoss/RedHat is currently evaluating wiki solutions. This request poped up during evaluation. A seperate report is filed here: http://bugzilla.wikimedia.org/show_bug.cgi?id=8955 cheers