Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -84,12 +84,8 @@ |
85 | 85 | |
86 | 86 | /* Edit section links */ |
87 | 87 | .editsection { |
88 | | - float: right; |
89 | 88 | margin-left: 5px; |
90 | 89 | } |
91 | | -/* Correct directionality when page dir is different from site/user dir */ |
92 | | -/* @noflip */.mw-content-ltr .editsection, .mw-content-rtl .mw-content-ltr .editsection { float: right; } |
93 | | -/* @noflip */.mw-content-rtl .editsection, .mw-content-ltr .mw-content-rtl .editsection { float: left; } |
94 | 90 | /** |
95 | 91 | * File histories |
96 | 92 | */ |
Index: trunk/phase3/skins/vector/screen.css |
— | — | @@ -762,7 +762,6 @@ |
763 | 763 | h5 .editsection { font-weight: normal; } |
764 | 764 | h6 { font-size: 80%; } |
765 | 765 | h6 .editsection { font-size: 125%; font-weight: normal; } |
766 | | -.editsection { float: right; } |
767 | 766 | p { |
768 | 767 | margin: .4em 0 .5em 0; |
769 | 768 | line-height: 1.5em; |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | until the second was introduced in 1.17. |
31 | 31 | * (bug 25355) Parser generates edit section links for special pages |
32 | 32 | * (bug 13766) Change table of content syntax to be semantically correct |
| 33 | +* (bug 11270 & bug 11555) Make editsection link more understandable by positioning it next to the header. |
33 | 34 | |
34 | 35 | === API changes in 1.19 === |
35 | 36 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -1813,7 +1813,7 @@ |
1814 | 1814 | <table> |
1815 | 1815 | <tr valign="top"> |
1816 | 1816 | <td> |
1817 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Heading">edit</a>]</span> <span class="mw-headline" id="Heading"> Heading </span></h3> |
| 1817 | +<h3><span class="mw-headline" id="Heading"> Heading </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Heading">edit</a>]</span></h3> |
1818 | 1818 | </td> |
1819 | 1819 | </tr> |
1820 | 1820 | </table> |
— | — | @@ -3491,8 +3491,8 @@ |
3492 | 3492 | !! input |
3493 | 3493 | {{includeonly section}} |
3494 | 3494 | !! result |
3495 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2> |
3496 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2> |
| 3495 | +<h2><span class="mw-headline" id="Includeonly_section">Includeonly section</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span></h2> |
| 3496 | +<h2><span class="mw-headline" id="Section_T-1">Section T-1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span></h2> |
3497 | 3497 | |
3498 | 3498 | !! end |
3499 | 3499 | |
— | — | @@ -3518,7 +3518,7 @@ |
3519 | 3519 | </includeonly> |
3520 | 3520 | ==Section 1== |
3521 | 3521 | !! result |
3522 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2> |
| 3522 | +<h2><span class="mw-headline" id="Section_1">Section 1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span></h2> |
3523 | 3523 | |
3524 | 3524 | !! end |
3525 | 3525 | |
— | — | @@ -4537,13 +4537,13 @@ |
4538 | 4538 | ===Smaller headline=== |
4539 | 4539 | Blah blah |
4540 | 4540 | !! result |
4541 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2> |
| 4541 | +<h2><span class="mw-headline" id="Headline_1"> Headline 1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span></h2> |
4542 | 4542 | <p>Some text |
4543 | 4543 | </p> |
4544 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2> |
| 4544 | +<h2><span class="mw-headline" id="Headline_2">Headline 2</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span></h2> |
4545 | 4545 | <p>More |
4546 | 4546 | </p> |
4547 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3> |
| 4547 | +<h3><span class="mw-headline" id="Smaller_headline">Smaller headline</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span></h3> |
4548 | 4548 | <p>Blah blah |
4549 | 4549 | </p> |
4550 | 4550 | !! end |
— | — | @@ -4582,14 +4582,14 @@ |
4583 | 4583 | </li> |
4584 | 4584 | </ul> |
4585 | 4585 | </div> |
4586 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2> |
4587 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3> |
4588 | | -<h5><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5> |
4589 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6> |
4590 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2> |
| 4586 | +<h2><span class="mw-headline" id="Headline_1"> Headline 1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span></h2> |
| 4587 | +<h3><span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span></h3> |
| 4588 | +<h5><span class="mw-headline" id="Skipping_a_level"> Skipping a level </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span></h5> |
| 4589 | +<h6><span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span></h6> |
| 4590 | +<h2><span class="mw-headline" id="Headline_2"> Headline 2 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span></h2> |
4591 | 4591 | <p>Some text |
4592 | 4592 | </p> |
4593 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3> |
| 4593 | +<h3><span class="mw-headline" id="Another_headline">Another headline</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span></h3> |
4594 | 4594 | |
4595 | 4595 | !! end |
4596 | 4596 | |
— | — | @@ -4637,16 +4637,16 @@ |
4638 | 4638 | </li> |
4639 | 4639 | </ul> |
4640 | 4640 | </div> |
4641 | | -<h1><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1> |
4642 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2> |
4643 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3> |
4644 | | -<h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4> |
4645 | | -<h5><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5> |
4646 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6> |
4647 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6> |
4648 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6> |
4649 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6> |
4650 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6> |
| 4641 | +<h1><span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span></h1> |
| 4642 | +<h2><span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span></h2> |
| 4643 | +<h3><span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span></h3> |
| 4644 | +<h4><span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span></h4> |
| 4645 | +<h5><span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span></h5> |
| 4646 | +<h6><span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span></h6> |
| 4647 | +<h6><span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span></h6> |
| 4648 | +<h6><span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span></h6> |
| 4649 | +<h6><span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span></h6> |
| 4650 | +<h6><span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span></h6> |
4651 | 4651 | |
4652 | 4652 | !! end |
4653 | 4653 | |
— | — | @@ -4679,12 +4679,12 @@ |
4680 | 4680 | </li> |
4681 | 4681 | </ul> |
4682 | 4682 | </div> |
4683 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2> |
4684 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3> |
4685 | | -<h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4> |
4686 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3> |
4687 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2> |
4688 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3> |
| 4683 | +<h2><span class="mw-headline" id="title_1"> title 1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2> |
| 4684 | +<h3><span class="mw-headline" id="title_1.1"> title 1.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3> |
| 4685 | +<h4><span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span></h4> |
| 4686 | +<h3><span class="mw-headline" id="title_1.2"> title 1.2 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span></h3> |
| 4687 | +<h2><span class="mw-headline" id="title_2"> title 2 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span></h2> |
| 4688 | +<h3><span class="mw-headline" id="title_2.1"> title 2.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span></h3> |
4689 | 4689 | |
4690 | 4690 | !! end |
4691 | 4691 | |
— | — | @@ -4715,12 +4715,12 @@ |
4716 | 4716 | </li> |
4717 | 4717 | </ul> |
4718 | 4718 | </div> |
4719 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2> |
4720 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3> |
4721 | | -<h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4> |
4722 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3> |
4723 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2> |
4724 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3> |
| 4719 | +<h2><span class="mw-headline" id="title_1"> title 1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2> |
| 4720 | +<h3><span class="mw-headline" id="title_1.1"> title 1.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3> |
| 4721 | +<h4><span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span></h4> |
| 4722 | +<h3><span class="mw-headline" id="title_1.2"> title 1.2 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span></h3> |
| 4723 | +<h2><span class="mw-headline" id="title_2"> title 2 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span></h2> |
| 4724 | +<h3><span class="mw-headline" id="title_2.1"> title 2.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span></h3> |
4725 | 4725 | |
4726 | 4726 | !! end |
4727 | 4727 | |
— | — | @@ -4745,11 +4745,11 @@ |
4746 | 4746 | <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li> |
4747 | 4747 | </ul> |
4748 | 4748 | </div> |
4749 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2> |
4750 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3> |
4751 | | -<h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4> |
4752 | | -<h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4> |
4753 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2> |
| 4749 | +<h2><span class="mw-headline" id="Section_1">Section 1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span></h2> |
| 4750 | +<h3><span class="mw-headline" id="Section_1.1">Section 1.1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span></h3> |
| 4751 | +<h4><span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span></h4> |
| 4752 | +<h4><span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span></h4> |
| 4753 | +<h2><span class="mw-headline" id="Section_2">Section 2</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span></h2> |
4754 | 4754 | |
4755 | 4755 | !! end |
4756 | 4756 | |
— | — | @@ -4760,8 +4760,8 @@ |
4761 | 4761 | == Foo bar == |
4762 | 4762 | == Foo bar == |
4763 | 4763 | !! result |
4764 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2> |
4765 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2> |
| 4764 | +<h2><span class="mw-headline" id="Foo_bar"> Foo bar </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span></h2> |
| 4765 | +<h2><span class="mw-headline" id="Foo_bar_2"> Foo bar </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span></h2> |
4766 | 4766 | |
4767 | 4767 | !! end |
4768 | 4768 | |
— | — | @@ -4771,8 +4771,8 @@ |
4772 | 4772 | == Foo bar == |
4773 | 4773 | == Foo Bar == |
4774 | 4774 | !! result |
4775 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2> |
4776 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2> |
| 4775 | +<h2><span class="mw-headline" id="Foo_bar"> Foo bar </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span></h2> |
| 4776 | +<h2><span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span></h2> |
4777 | 4777 | |
4778 | 4778 | !! end |
4779 | 4779 | |
— | — | @@ -4791,10 +4791,10 @@ |
4792 | 4792 | {{sections}} |
4793 | 4793 | ==Section 4== |
4794 | 4794 | !! result |
4795 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2> |
4796 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3> |
4797 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2> |
4798 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2> |
| 4795 | +<h2><span class="mw-headline" id="Section_0">Section 0</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span></h2> |
| 4796 | +<h3><span class="mw-headline" id="Section_1">Section 1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span></h3> |
| 4797 | +<h2><span class="mw-headline" id="Section_2">Section 2</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span></h2> |
| 4798 | +<h2><span class="mw-headline" id="Section_4">Section 4</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span></h2> |
4799 | 4799 | |
4800 | 4800 | !! end |
4801 | 4801 | |
— | — | @@ -4805,8 +4805,8 @@ |
4806 | 4806 | ==Section 1== |
4807 | 4807 | ==Section 2== |
4808 | 4808 | !! result |
4809 | | -<h2> <span class="mw-headline" id="Section_1">Section 1</span></h2> |
4810 | | -<h2> <span class="mw-headline" id="Section_2">Section 2</span></h2> |
| 4809 | +<h2><span class="mw-headline" id="Section_1">Section 1</span> </h2> |
| 4810 | +<h2><span class="mw-headline" id="Section_2">Section 2</span> </h2> |
4811 | 4811 | |
4812 | 4812 | !! end |
4813 | 4813 | |
— | — | @@ -4815,7 +4815,7 @@ |
4816 | 4816 | !! input |
4817 | 4817 | ==Section with a [[Main Page|link]] in it== |
4818 | 4818 | !! result |
4819 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="https://www.mediawiki.org/wiki/Main_Page" title="Main Page">link</a> in it</span></h2> |
| 4819 | +<h2><span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="https://www.mediawiki.org/wiki/Main_Page" title="Main Page">link</a> in it</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span></h2> |
4820 | 4820 | |
4821 | 4821 | !! end |
4822 | 4822 | |
— | — | @@ -4837,9 +4837,9 @@ |
4838 | 4838 | <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li> |
4839 | 4839 | </ul> |
4840 | 4840 | </div> |
4841 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2> |
4842 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3> |
4843 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2> |
| 4841 | +<h2><span class="mw-headline" id="title_1"> title 1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2> |
| 4842 | +<h3><span class="mw-headline" id="title_1.1"> title 1.1 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3> |
| 4843 | +<h2><span class="mw-headline" id="title_2"> title 2 </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span></h2> |
4844 | 4844 | |
4845 | 4845 | !! end |
4846 | 4846 | |
— | — | @@ -4861,10 +4861,10 @@ |
4862 | 4862 | --> <!-- --> |
4863 | 4863 | But just in case it doesn't... |
4864 | 4864 | !! result |
4865 | | -<h1><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1> |
| 4865 | +<h1><span class="mw-headline" id=".3D">=</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span></h1> |
4866 | 4866 | <p>The line above must have a trailing space! |
4867 | 4867 | </p> |
4868 | | -<h1><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1> |
| 4868 | +<h1><span class="mw-headline" id=".3D_2">=</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span></h1> |
4869 | 4869 | <p>But just in case it doesn't... |
4870 | 4870 | </p> |
4871 | 4871 | !! end |
— | — | @@ -4900,19 +4900,19 @@ |
4901 | 4901 | <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li> |
4902 | 4902 | </ul> |
4903 | 4903 | </div> |
4904 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2> |
| 4904 | +<h2><span class="mw-headline" id="text_.3E_text"> text > text </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span></h2> |
4905 | 4905 | <p>section 1 |
4906 | 4906 | </p> |
4907 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text"> text < text </span></h2> |
| 4907 | +<h2><span class="mw-headline" id="text_.3C_text"> text < text </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span></h2> |
4908 | 4908 | <p>section 2 |
4909 | 4909 | </p> |
4910 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text"> text & text </span></h2> |
| 4910 | +<h2><span class="mw-headline" id="text_.26_text"> text & text </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span></h2> |
4911 | 4911 | <p>section 3 |
4912 | 4912 | </p> |
4913 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text"> text ' text </span></h2> |
| 4913 | +<h2><span class="mw-headline" id="text_.27_text"> text ' text </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span></h2> |
4914 | 4914 | <p>section 4 |
4915 | 4915 | </p> |
4916 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text"> text " text </span></h2> |
| 4916 | +<h2><span class="mw-headline" id="text_.22_text"> text " text </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span></h2> |
4917 | 4917 | <p>section 5 |
4918 | 4918 | </p> |
4919 | 4919 | !! end |
— | — | @@ -6118,7 +6118,7 @@ |
6119 | 6119 | == onmouseover= == |
6120 | 6120 | http://__TOC__ |
6121 | 6121 | !! result |
6122 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2> |
| 6122 | +<h2><span class="mw-headline" id="onmouseover.3D"> onmouseover= </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span></h2> |
6123 | 6123 | http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
6124 | 6124 | <ul> |
6125 | 6125 | <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li> |
— | — | @@ -6134,7 +6134,7 @@ |
6135 | 6135 | {| STYLE=__TOC__ |
6136 | 6136 | |foo |
6137 | 6137 | !! result |
6138 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2> |
| 6138 | +<h2><span class="mw-headline" id="a">a</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span></h2> |
6139 | 6139 | <table style="__TOC__"> |
6140 | 6140 | <tr> |
6141 | 6141 | <td>foo |
— | — | @@ -7938,7 +7938,7 @@ |
7939 | 7939 | !! input |
7940 | 7940 | {{MediaWiki:Fake}} |
7941 | 7941 | !! result |
7942 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2> |
| 7942 | +<h2><span class="mw-headline" id="header">header</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span></h2> |
7943 | 7943 | |
7944 | 7944 | !! end |
7945 | 7945 | |
— | — | @@ -7969,12 +7969,12 @@ |
7970 | 7970 | </li> |
7971 | 7971 | </ul> |
7972 | 7972 | </div> |
7973 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2> |
7974 | | -<h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6> |
7975 | | -<h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3> |
7976 | | -<h1><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1> |
7977 | | -<h5><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5> |
7978 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2> |
| 7973 | +<h2><span class="mw-headline" id="2">2</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span></h2> |
| 7974 | +<h6><span class="mw-headline" id="6">6</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span></h6> |
| 7975 | +<h3><span class="mw-headline" id="3">3</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span></h3> |
| 7976 | +<h1><span class="mw-headline" id="1">1</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span></h1> |
| 7977 | +<h5><span class="mw-headline" id="5">5</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span></h5> |
| 7978 | +<h2><span class="mw-headline" id="2_2">2</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span></h2> |
7979 | 7979 | |
7980 | 7980 | !! end |
7981 | 7981 | |
— | — | @@ -8081,7 +8081,7 @@ |
8082 | 8082 | {{anchorencode: _ +:.3A%3A&&]] }} |
8083 | 8083 | __NOEDITSECTION__ |
8084 | 8084 | !! result |
8085 | | -<h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3> |
| 8085 | +<h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span> </h3> |
8086 | 8086 | <p>.2B:.3A.253A.26.26.5D.5D |
8087 | 8087 | </p> |
8088 | 8088 | !! end |
— | — | @@ -8272,7 +8272,7 @@ |
8273 | 8273 | !! input |
8274 | 8274 | == -{Naslov}- == |
8275 | 8275 | !! result |
8276 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2> |
| 8276 | +<h2><span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span></h2> |
8277 | 8277 | |
8278 | 8278 | !! end |
8279 | 8279 | |
— | — | @@ -8520,7 +8520,7 @@ |
8521 | 8521 | !! result |
8522 | 8522 | <p>[[link |
8523 | 8523 | </p> |
8524 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2> |
| 8524 | +<h2><span class="mw-headline" id="heading">heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span></h2> |
8525 | 8525 | |
8526 | 8526 | !! end |
8527 | 8527 | |
— | — | @@ -8532,7 +8532,7 @@ |
8533 | 8533 | !! result |
8534 | 8534 | <p>{{foo| |
8535 | 8535 | </p> |
8536 | | -<h1> <span class="mw-headline" id="heading">heading</span></h1> |
| 8536 | +<h1><span class="mw-headline" id="heading">heading</span> </h1> |
8537 | 8537 | |
8538 | 8538 | !! end |
8539 | 8539 | |
— | — | @@ -8544,7 +8544,7 @@ |
8545 | 8545 | !! result |
8546 | 8546 | <p>{{foo| |
8547 | 8547 | </p> |
8548 | | -<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2> |
| 8548 | +<h2><span class="mw-headline" id="heading">heading</span> <span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span></h2> |
8549 | 8549 | |
8550 | 8550 | !! end |
8551 | 8551 | |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1507,8 +1507,8 @@ |
1508 | 1508 | */ |
1509 | 1509 | public static function makeHeadline( $level, $attribs, $anchor, $text, $link, $legacyAnchor = false ) { |
1510 | 1510 | $ret = "<h$level$attribs" |
| 1511 | + . "<span class=\"mw-headline\" id=\"$anchor\">$text</span> " |
1511 | 1512 | . $link |
1512 | | - . " <span class=\"mw-headline\" id=\"$anchor\">$text</span>" |
1513 | 1513 | . "</h$level>"; |
1514 | 1514 | if ( $legacyAnchor !== false ) { |
1515 | 1515 | $ret = "<div id=\"$legacyAnchor\"></div>$ret"; |