Last modified: 2007-09-06 18:37:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7832 - Introduce __NONUMBEREDHEADINGS__ magic word
Introduce __NONUMBEREDHEADINGS__ magic word
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Tadpole9
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2006-11-07 20:17 UTC by Purodha Blissenbach
Modified: 2007-09-06 18:37 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Adds __NONUMBEREDHEADINGS__ magic word (583 bytes, patch)
2006-12-13 04:49 UTC, Tadpole9
NONUMBEREDHEADINGS magic word, v2 (146.13 KB, patch)
2007-01-25 01:59 UTC, Tadpole9
This is actually a patch (592 bytes, patch)
2007-03-05 16:45 UTC, Tadpole9

Description Purodha Blissenbach 2006-11-07 20:17:37 UTC
Similar to the __NOTOC__ or __NOEDITSECTION__
magic words, add a magic word __NONUMBERDHEADINGS__
which inhibts section headers to be numbered even if
a user has selected numbering.

The main page of the Wikipedia for the ripuarian languages,
is a sample of a page which should not have numbers added
to headings.  Another such case would be a page which has
only numbers in its headings, such as e.g. year numbers.
Comment 1 Tadpole9 2006-12-13 04:49:43 UTC
Created attachment 2855 [details]
Adds __NONUMBEREDHEADINGS__ magic word

Inhbits numbered headings if magic word __NONUMBEREDHEADINGS__ is present.
I haven't tested this one.
Comment 2 Tadpole9 2007-01-25 01:59:59 UTC
Created attachment 3137 [details]

Version 2, to be current with newer quickUserCan() change
Comment 3 Rob Church 2007-01-25 08:23:52 UTC
I'm not sure if I like the existing precedent of options which give editors
control over content appearance; we have markup and style sheets separate for a
reason. If a user wishes to view the entire Wikipedia in bright fuschia Comic
Sans MS, 26 points, then he or she can, through their custom CSS subpage.

If a user has indicated a preference to see their section headings numbered,
then that should be honoured.
Comment 4 Purodha Blissenbach 2007-01-26 18:16:30 UTC
The point with his suggestion is, that prepending numbers in front of, e.g. a series of month names, or year numbers, or even complete dates, yiels 
bewildering and/or unreadable headings. There needs to be a way to remedy the dissatisfarory situation that you can only resort to go to you peferences, 
change the global setting there, return to the page, have it redisplayed, and, once you're done, return to your preferences, switch the setting back on, 
and likely go back once more to the again uggly page, to continue where you left off.

Shorter said, at times editors know of specific display needs for their pages which cannot be met be local CSS alone.
Comment 5 Tadpole9 2007-03-05 16:45:43 UTC
Created attachment 3288 [details]
This is actually a patch

Did I really post the whole of Parser.php on v2? This one should actually be a
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-05 20:50:13 UTC
*** Bug 3254 has been marked as a duplicate of this bug. ***
Comment 7 Purodha Blissenbach 2007-09-06 18:37:08 UTC
There is a MediaWiki extension available now at:

supplying __NONUMBEREDHEADINGS__ doing what is aked for in this bug.

Note You need to log in before you can comment on or make changes to this bug.