Last modified: 2011-03-13 18:05:50 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 T25095, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23095 - Deletion reason menu should remove wiki markup
Deletion reason menu should remove wiki markup
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Page deletion (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 26656 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-08 14:05 UTC by darklama
Modified: 2011-03-13 18:05 UTC (History)
3 users (show)

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


Attachments

Description darklama 2010-04-08 14:05:41 UTC
When invoking action=delete, wiki markup is shown in the reasons menu, which can cause the menu to expand to great lengths. I think wiki markup for bold and italic text should be removed. I think wiki markup for links should be resolved and display the text that would be rendered instead.

For example given:

''[[Spam]]'' or '''[[Project:Vandalism|vandalism]]'''

the delete reason menu should display:

Spam or vandalism
Comment 1 Alex B 2010-04-09 16:51:42 UTC
Unecessary probably - you can do this in 10 seconds with JavaScript, and you might want the wiki-markup displayed on some wikis etc. Write your own, or if you don't want to, I have one: 
User:Ale_jrb/Scripts/csdcheck.js
Comment 2 Happy-melon 2010-04-13 12:03:03 UTC
I don't think this is something we should be forcing.  And it serves as a good reminder of what is and isn't allowed in log summaries. WONTFIX.
Comment 3 Strainu 2011-01-10 15:07:07 UTC
*** Bug 26656 has been marked as a duplicate of this bug. ***
Comment 4 darklama 2011-01-15 11:43:47 UTC
(In reply to comment #2)
> I don't think this is something we should be forcing.  And it serves as a good
> reminder of what is and isn't allowed in log summaries. WONTFIX.

Links, italics, and bold are allowed in log summaries. Links are useful to point people to the policy that explains the reason for deleting. Italic and bold are useful to emphasis important points.

Like comments in source code, log summaries can help people understand the reasons why a page was deleted, and help the person that deleted it in the first place remember why they did so in the future.

If wiki markup was never intended to be allowed in log summaries, seems contradictory that the software does allow it.
Comment 5 Happy-melon 2011-01-15 11:55:35 UTC
The delete menu is a select dropdown; the behaviour of nested HTML elements in an <option> value is undefined.  In Firefox an <a> tag is rendered in the dropdown list, but it is not clickable, and it is not rendered when the option is selected in the collapsed field, instead displaying only the link text.  Bold and italics are not rendered in log summaries, and never have been AFAIK.
Comment 6 darklama 2011-01-15 12:18:05 UTC
(In reply to comment #5)
> The delete menu is a select dropdown; the behaviour of nested HTML elements in
> an <option> value is undefined.  In Firefox an <a> tag is rendered in the
> dropdown list, but it is not clickable, and it is not rendered when the option
> is selected in the collapsed field, instead displaying only the link text. 
> Bold and italics are not rendered in log summaries, and never have been AFAIK.

That is why I suggested wiki markup be stripped from <option> rather than translated into HTML markup. I was originally going to suggest a stripped version of the text be added to the label attribute as defined in HTML 4.01 for <option>, which web browsers are suppose to display for the option name instead when present, but Firefox apparently doesn't respect it.

I also had the idea of suggesting the use of drop menus similar to the ones used in the new edit toolbox which would instead allow the wiki markup to be interpreted and show a preview of the reason with links and all.

Maybe both choices could be included as preference options, while keeping the current behavior as the default?

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


Navigation
Links