Last modified: 2014-03-19 09:54:05 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 T52124, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50124 - Difficult to create blank MediaWiki message
Difficult to create blank MediaWiki message
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.0
All All
: Lowest enhancement (vote)
: ---
Assigned To: Bartosz Dziewoński
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-24 19:25 UTC by MZMcBride
Modified: 2014-03-19 09:54 UTC (History)
7 users (show)

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


Attachments

Description MZMcBride 2013-06-24 19:25:02 UTC
It's intentionally difficult to create a blank page in MediaWiki, but it be done using "{{subst:ns:0}}" and similar tricks.

Given that the default behavior of MediaWiki messages has changed, blanking the messages (in order to disable their output) is now more difficult.

Basically, for default MediaWiki message, in order to blank it, you have to trick the site into accepting the edit, as it generally wants to reject such edits.
Comment 1 Nemo 2013-06-24 19:28:40 UTC
Blanking messages is not basically useless, it no longer restores the default. It has less use cases than before, which reduces priority.
Comment 2 MZMcBride 2013-06-24 20:18:11 UTC
(In reply to comment #1)
> Blanking messages is not basically useless, it no longer restores the
> default. It has less use cases than before, which reduces priority.

I'm not sure what you're saying here.

If you have any default MediaWiki message and you try to edit the page, blank its contents, and save the page, it won't work.
Comment 3 db [inactive,noenotif] 2013-06-25 19:41:26 UTC
That is right, because mediawiki rejects creation of empty pages. For system messages with a default value, this should be allowed, because the edit page already preloaded that text.
Comment 4 Tyler Romeo 2013-06-26 23:35:56 UTC
I don't have time to fix this atm, but for the record the code for stopping blank pages from being saved is in EditPage.php:1498.
Comment 5 Gerrit Notification Bot 2013-07-01 11:37:28 UTC
Change 71332 had a related patch set uploaded by Matmarex:
Allow creation of empty MediaWiki: pages

https://gerrit.wikimedia.org/r/71332
Comment 6 Bartosz Dziewoński 2013-07-01 11:39:42 UTC
Thanks Tyler, surgical strike change applied in the change above.
Comment 7 Gerrit Notification Bot 2013-07-02 17:01:39 UTC
Change 71332 merged by Brion VIBBER:
Allow creation of empty MediaWiki: pages

https://gerrit.wikimedia.org/r/71332
Comment 8 Bartosz Dziewoński 2013-07-02 17:05:00 UTC
That should make it fixed.

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


Navigation
Links