Matthew:
Thanks! I just commented that line, and the result is exactly what I wanted. I suspected that hacking Parser.php would be necessary, but hoped it wouldn't be.
I think maybe I'll make a feature request.
Thanks again!
Mike
Matthew.Simoneau@mathworks.com 12/22/04 2:40 PM >>>
"Auto-number headings" applies to the numbering of headings within
the
body of the article (as I just discovered by enabling it). What I
want
to be able to do is disable the auto numbering of table of contents entries in the table of contents that appears at the *beginning* of
the
article.
Now I understand what you want. There isn't any way to do it without touching the code. These are the relevant lines from Parser.php:
if( $doNumberHeadings || $doShowToc ) { $tocline = $numbering . ' ' . $tocline; ... }
Since $doShowToc will be true, you'll always hit that middle line. Also, the numbering is attached with the same style as the text, so there's no way to hide it with CSS. The smallest change you could make to the PHP-file to do this is to comment out the middle line above.
Sincerely, Matthew Simoneau _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
It seems to me that the right fix to this would be to have the user preference for numbering headers control numbering in both the TOC and the Headings, to be consistent. I found it disconcerting that the TOC headings were numbered when the Headings themselves were not, If I had numbering turned on, this patch reverses it, the TOC headings aren't numbered while the Headings themselves aren't. I find this equally disconcerting.
On Wed, 22 Dec 2004 14:53:44 -0700, Mike Broschinsky mbroschi@utah.gov wrote:
Matthew:
Thanks! I just commented that line, and the result is exactly what I wanted. I suspected that hacking Parser.php would be necessary, but hoped it wouldn't be.
I think maybe I'll make a feature request.
Thanks again!
Mike
Matthew.Simoneau@mathworks.com 12/22/04 2:40 PM >>>
"Auto-number headings" applies to the numbering of headings within
the
body of the article (as I just discovered by enabling it). What I
want
to be able to do is disable the auto numbering of table of contents entries in the table of contents that appears at the *beginning* of
the
article.
Now I understand what you want. There isn't any way to do it without touching the code. These are the relevant lines from Parser.php:
if( $doNumberHeadings || $doShowToc ) { $tocline = $numbering . ' ' . $tocline; ... }
Since $doShowToc will be true, you'll always hit that middle line. Also, the numbering is attached with the same style as the text, so there's no way to hide it with CSS. The smallest change you could make to the PHP-file to do this is to comment out the middle line above.
Sincerely, Matthew Simoneau _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Really? I like it the way it is.
On Thu, 23 Dec 2004 10:00:19 -0500, Rick DeNatale rick.denatale@gmail.com wrote:
It seems to me that the right fix to this would be to have the user preference for numbering headers control numbering in both the TOC and the Headings, to be consistent. I found it disconcerting that the TOC headings were numbered when the Headings themselves were not, If I had numbering turned on, this patch reverses it, the TOC headings aren't numbered while the Headings themselves aren't. I find this equally disconcerting.
On Wed, 22 Dec 2004 14:53:44 -0700, Mike Broschinsky mbroschi@utah.gov wrote:
Matthew:
Thanks! I just commented that line, and the result is exactly what I wanted. I suspected that hacking Parser.php would be necessary, but hoped it wouldn't be.
I think maybe I'll make a feature request.
Thanks again!
Mike
Matthew.Simoneau@mathworks.com 12/22/04 2:40 PM >>>
"Auto-number headings" applies to the numbering of headings within
the
body of the article (as I just discovered by enabling it). What I
want
to be able to do is disable the auto numbering of table of contents entries in the table of contents that appears at the *beginning* of
the
article.
Now I understand what you want. There isn't any way to do it without touching the code. These are the relevant lines from Parser.php:
if( $doNumberHeadings || $doShowToc ) { $tocline = $numbering . ' ' . $tocline; ... }
Since $doShowToc will be true, you'll always hit that middle line. Also, the numbering is attached with the same style as the text, so there's no way to hide it with CSS. The smallest change you could make to the PHP-file to do this is to comment out the middle line above.
Sincerely, Matthew Simoneau _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org