lsth parser test 6 ('transclude offset section -w- subs'):
!!test
transclude offset section -w- subs.
!!input
{{#lsth:LsthSections|2}}
!!result
<p>sec 2
</p>
<a name="3"></a><h3><span class="editsection">[<a href="/index.php?title=LsthSections&action=edit&section=3" title="LsthSections">edit</a>]</span> <span class="mw-headline">3</span></h3>
<p>sec 3
</p>
!!end
Result:
Running test transclude offset section -w- subs.... FAILED!
- /tmp/mwParser-150703348-expected 2012-12-13 21:07:12.533078402 +0100
+++ /tmp/mwParser-150703348-actual 2012-12-13 21:07:12.537078352 +0100
@@ -1,5 +1,5 @@
<p>sec 2
</p>
-<a name="3"></a><h3><span class="editsection">[<a href="/index.php?title=LsthSections&action=edit&section=3" title="LsthSections">edit</a>]</span> <span class="mw-headline">3</span></h3>
+<h3><span class="editsection">[<a href="/index.php?title=LsthSections&action=edit&section=T-1" title="LsthSections">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
<p>sec 3
</p>
The problem is not the <a name>, but the section link: it was
&section=3
before, but it's
&section=T-1
now. Clearly, the former was correct, while the latter is not (it makes a link to the first section on LsthSections, which is section '1', not section '3'.
Version: master
Severity: normal