Last modified: 2014-03-19 09:54:05 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 12647 - Provide some method to blank messages like MediaWiki:Excontent
Provide some method to blank messages like MediaWiki:Excontent
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 16493 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-15 23:48 UTC by Mike.lifeguard
Modified: 2014-03-19 09:54 UTC (History)
5 users (show)

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


Attachments

Description Mike.lifeguard 2008-01-15 23:48:15 UTC
There is currently no way to have the following messages blank (in all likelihood, all messages are similarly affected):
excontent
excontentauthor
exblank
exbeforeblank
With the introduction of the MediaWiki:Deletereason-dropdown, there is little or no need for these automatic reasons. Having them blank should be an option regardless.
Comment 1 Roan Kattouw 2008-01-16 13:45:56 UTC
(In reply to comment #0)
> (in all likelihood, all messages are similarly affected)
All messages that are treated as wikitext can be easily blanked by just changing them to <!-- This message is empty on purpose -->
Comment 2 Mike.lifeguard 2008-01-17 15:05:55 UTC
For these messages (at least), such a comment (along with &nbsp; or anything else I've tried, including __END__) gets put into wpReason as a literal string. A single space results in MediaWiki using the default message.
Comment 3 Ryan Schmidt 2008-04-21 01:15:25 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > (in all likelihood, all messages are similarly affected)
> All messages that are treated as wikitext can be easily blanked by just
> changing them to <!-- This message is empty on purpose -->
> 

Unfortunately, these messages are NOT treated as wiki text and instead are treated as literal strings, no matter what gets put into them. I browsed around the source but I can't seem to find why having an empty message or a message containing a single space are going back to being the default message in these instances.

I'm assuming all messages that are interpreted this way (literal strings that are used to auto populate input fields of forms) have the same issue as well.
Comment 4 Brion Vibber 2008-04-21 18:56:38 UTC
All messages fall back to the default value when the page is blank.

These particular messages are not meant to be blank.
Comment 5 P.Copp 2008-12-01 18:56:24 UTC
*** Bug 16493 has been marked as a duplicate of this bug. ***
Comment 6 Mike.lifeguard 2008-12-01 18:59:56 UTC
(In reply to comment #4)
> All messages fall back to the default value when the page is blank.
> 
> These particular messages are not meant to be blank.
> 

Given that there seems to be support to allow this, I'm re-opening.
Comment 7 Niklas Laxström 2008-12-01 19:19:16 UTC
Isn't this about $wgUseAutomaticEditSummaries?
Comment 8 Happy-melon 2008-12-01 19:36:52 UTC
No, that variable controls *edit* summaries, not things like this.  At least I can't see anywhere in source for the delete autoreasons to be affected by that variable.  
Comment 9 Brion Vibber 2008-12-01 20:12:54 UTC
The general standard is putting "-" into a UI message to blank it, but this requires explicit support from the code that creates that element.

r44127 should handle this; Article::generateReason() (the internal function which creates these autosummaries) will now return a blank string if the message came out as '-'.

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


Navigation
Links