Last modified: 2011-03-13 18:05:25 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 T15794, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13794 - No new section link
No new section link
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  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: ---


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

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.


Navigation
Links