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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9832, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7832 - Introduce __NONUMBEREDHEADINGS__ magic word
Introduce __NONUMBEREDHEADINGS__ magic word
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Tadpole9
http://ksh.wikipedia.org/wiki/Houpsigk
: patch, patch-need-review
Depends on:
Blocks:
  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: ---


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

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,
http://ksh.wikipedia.org/wiki/Houpsigk
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]
NONUMBEREDHEADINGS magic word, v2

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
patch.
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:

http://www.mediawiki.org/wiki/Extension:MagicNoNumberedHeadings

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.


Navigation
Links