Last modified: 2014-03-19 19:34:45 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 14107 - Clean text in MediaWiki:Deletereason-dropdown before creating a select box from them.
Clean text in MediaWiki:Deletereason-dropdown before creating a select box fr...
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n, parser
Depends on:
Blocks: messages
  Show dependency treegraph
Reported: 2008-05-13 13:27 UTC by Purodha Blissenbach
Modified: 2014-03-19 19:34 UTC (History)
2 users (show)

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


Description Purodha Blissenbach 2008-05-13 13:27:33 UTC
In MediaWiki:Deletereason-dropdown, there are several text which are:
- shown in a <select> drop-down box,
- put into a delete-log message, when selected.

While in the log, it is desirable to include wiki links, e.g. to project pages describing reasons, or deletion rules, such links cannot work in the dropdown box, because of limitations inherent to html.

Currently, wikilinks appear "spelt out" in the dropdown box, and do what they are supposed to do in the delete log.

I suggest to run a cleanup routine over the messages before converting them to a <select> box, which removes [[...| ]] or [[: ]] or [[ ]] and leaves the link anchor text intact.
Comment 1 Chad H. 2008-07-08 03:15:32 UTC
Users who are deleting are probably familiar with wikimarkup to know what those links will render as. Additionally, I would rather show it to inform the user what information will be put into the box, including links.

Comment 2 Purodha Blissenbach 2010-07-29 12:00:19 UTC
Of course, admins usually do understand wiki syntax, at least in the WMFs environment. This is not necessarily so elsewhere.

Worse is that these strings tend to be very long and looking ugly resulting in a problematic screen layout.

Of course this is an issue of low priority.
Comment 3 Purodha Blissenbach 2011-04-02 09:01:24 UTC
Hint: There is a good chance that the filter applied to headline contents when contructing the TOCs for pages from them does what is needed here.
Comment 4 Brion Vibber 2011-05-10 23:10:55 UTC
I think you just want Sanitizer::stripAllTags() here after using the actual comment formatter?

I tend to agree that this may not be ideal anyway as it may hide stuff; consider in particular that everything gets appended into one giant string, and the more markup is in there, the faster it'll hit the 255-byte limit. If it's invisible markup, it's even harder to tell where you'll get cut off.

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