Last modified: 2011-03-13 18:05:25 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 13794 - No new section link
No new section link
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2008-04-19 20:08 UTC by Stifle
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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

Patch against current trunk (3.36 KB, patch)
2008-04-20 03:32 UTC, Chad H.

Description Stifle 2008-04-19 20:08:11 UTC
Can we get a magic word like __NONEWSECTIONLINK__ which will remove the New Section (formerly +) tab at the top of a talk page?
Comment 1 Chad H. 2008-04-20 03:32:28 UTC
Created attachment 4830 [details]
Patch against current trunk

This patch should implement two things:

A) A new global $wgNewSectionOnTalk which defines if "New section" is applied to talk pages or not (default is true)

B) Allows the overriding of new sections with __NONEWSECTIONLINK__

So the logic is this:

1) OutputPage sets the link to false,
2) Parser checks it:
2a) If it's a talk page and the global is true, then it enables the link
2b) If the __NEWSECTIONLINK__ keyword is found, it enables it
2c) If the __NONEWSECTIONLINK__ is found, it disables it again. 

Needs some review, but I think I've got it mostly right.
Comment 2 Stifle 2008-04-20 10:51:58 UTC
That's certainly what I was thinking of.
Comment 3 Chad H. 2008-04-20 15:03:51 UTC
My patch currently breaks MW and causes an exception. Debugging.
Comment 4 Brion Vibber 2008-04-21 18:41:11 UTC
Don't see the need or desirability for this.

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