Page MenuHomePhabricator

Insert file-embed button in WikiEditor should also help with size, thumb, alignment and caption
Closed, ResolvedPublic

Description

Currently, the image insertion button in the editor only inserts [[File:Example.jpg]] (it is localized - in Hebrew it's [[קובץ:דוגמה.jpg]]).

This button should also insert "250px|thumb|right|Description", to help users who don't know how to write it.

It was like this locally in the Hebrew Wikipedia, but the change to Vector overrode it. I believe that it's useful for projects in all languages.

The "thumb" and "right/left" parts must be localized, of course (Bug 24114 must not be repeated here). It must also consider the defaults for LTR/RTL - if i understand correctly, the default should be "right" for LTR and "left" for RTL (double-check it, because i suffer from [[Left/right confusion]] :).


Version: unspecified
Severity: enhancement

Details

Reference
bz24172

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:06 PM
bzimport set Reference to bz24172.

thumb always respect the defaults for LTR/RTL. There is no need for a additional right/left.

(In reply to comment #1)

thumb always respect the defaults for LTR/RTL. There is no need for a
additional right/left.

Of course it does, but quite often people want to put them on the other side. The easiest way to do it is to put "right" or "left" in the automatically inserted text. When an editor will want to align to the other side, he'll be able to guess that he has to change that one word.

Of course it's possible to rely on people to go to the Help pages, but simply putting "right" or "left" in the inserted string will make it easier.

Bryan.TongMinh wrote:

Edit toolbar -> changing component to UsabilityInitiave

*Mass-change: Move WikiEditor bugs to component and remove blocker bug where*

see also gerrit change 9053
I added a file dialog to wikieditor which allow filling this parameters before embedding the file.