User:Timeshifter/Sandbox197

Changes start from the bottom. Latest change is on top. Search and highlight all instances of id=

First I changed the heading a couple times. No duplicate IDs showed up. Then I created an anchor to an old heading. Then I changed the heading again.

A duplicate ID shows up only when I change back to an old heading. This is a rare event. Maybe Mediawiki could automatically remove that duplicate ID:

- in the wikitext.

- in the page source.

Basic Format. Test 1 <span class="anchor" id="Basic format. Test 1"></span>

Page source after 2nd heading change from "Basic Format" to "Basic Format. Test 1". Note the duplicate ID.

Basic Format. Test 1 [edit | edit source]

Page source when heading was "Basic Format". After adding anchor to previous name: {{subst:anchor|Basic format. Test 1}}

Basic Format [edit | edit source]

Page source after changing back from "Basic Format. Test 1" to "Basic Format":

Basic Format[edit | edit source]

Page source after heading change from "Basic Format" to "Basic Format. Test 1":

Basic Format. Test 1[edit | edit source]

Initial page source when heading was "Basic Format":

Basic Format[edit | edit source]