Last modified: 2014-10-23 22:41:28 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 T59459, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57459 - VisualEditor: Automatic naming scheme for references produces meaningless names like <ref name=":0">
VisualEditor: Automatic naming scheme for references produces meaningless na...
Status: RESOLVED DUPLICATE of bug 50568
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Lowest enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-22 23:41 UTC by WhatamIdoing
Modified: 2014-10-23 22:41 UTC (History)
5 users (show)

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


Attachments

Description WhatamIdoing 2013-11-22 23:41:50 UTC
Intention:
Re-use a reference.


Actual Results:  
The ref naming scheme needs improvements so that humans can remember which ref name they want to re-use, especially if they are using the wikitext editor, where they will not have any of the possible hints that VisualEditor may provide.

Expected Results:  
A system that is "xxx:0", where "xxx" is text simply copied out from the beginning of the named ref would be an improvement.  We can assume that anything inside the ref is in a language that the editor is capable of coping with.  We can exclude the names of templates and their parameters, as well as "http" (otherwise, bare URLs in refs will produce a lot of equally unfriendly <ref name=htt:n> names).

Reproducible: Always
Comment 1 James Forrester 2013-11-25 15:47:50 UTC
(In reply to comment #0)
> The ref naming scheme needs improvements so that humans can remember which
> ref name they want to re-use

Why?

This is an insane amount of work to do, won't work on wikis that do things in a different way (e.g. this might work for enwiki and frwiki but not dewiki or others), and will likely not actually result in what you want.

I'm hovering on WONTFIX, but will leave this as "Lowest" instead for now.
Comment 2 WhatamIdoing 2013-11-25 16:34:58 UTC
Why humans need to be able to remember the ref names:

Because actual humans actually have to be able to remember the ref name if they're going to re-use it.  They cannot re-use the ref any other way.

This is true for everyone now, because VisualEditor is only showing (at most) the ref names when you try to re-use a ref, which means that anyone trying to re-use a ref currently needs to know whether the ref they want to re-use ref name :0, :1, :2, :3, :4, :5, etc.—sometimes through a dozen or more meaningless numbers.

This is true permanently for anyone not using VisualEditor, because there is no other way to re-use a ref in the wikitext editor except to manually type (or copy) the name of the ref.
Comment 3 WhatamIdoing 2013-11-25 16:43:15 UTC
I realize that any automagic system will have serious limitations, compared to prompting users for a human-created name (which VisualEditor ought to be doing).  But a semi-random string of letters is actually easier for most people to remember than a purely incremental number.  <ref name="sgd1"> and <ref name="iuo2"> are easier to keep straight than <ref name=":1"> and <ref name=":2">—and <ref name="usc1"> and <ref name="lee2">, when the ref's contents actually meantion USC and Lee, are even easier.

I don't understand how including some letters (taken from the ref's contents) in the ref name would fail to work anywhere, or at least would fail to work at any language that uses left-to-right typing (unless Arabic numbers are also typed right to left; I can imagine that combining RTL for letters with LTR for numbers would be irritating) and a non-IME/non-variant character set (which might also work just fine, but I don't know enough to have an opinion).
Comment 4 James Forrester 2013-11-25 17:04:14 UTC
Speaking as an extensive editor, I just find the exist reference I want to re-use and manually copy the name; this is no extra work in VE. Clearly some people try to remember the name between uses, but given that random people write random names for references already…
Comment 5 Alex Monk 2014-10-23 22:41:28 UTC

*** This bug has been marked as a duplicate of bug 50568 ***

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


Navigation
Links