2008/12/19 Soxred93 <soxred93(a)gmail.com>
But then the anchors would change if a section is
placed above it,
breaking links.
Soxred93
As Aryeh Gregor said, the id attribute would be exactly the same as the
actual name attribute. I don't see how this could be a problem.
If I'm not mistaken, the new code would be as follows :
public function makeHeadline( $level, $attribs,
$anchor, $text, $link ) {
return "<a name=\"$anchor\"
id=\"$anchor\"></a><h$level$attribs$link
<span class=\"mw-headline\">$text</span></h$level>";}
— Sylvain Brunerie
[[w:fr:User:Delhovlyn]]