VisualEditor: Be able to edit references defined within a template
OpenPublic

Description

https://en.wikipedia.org/w/index.php?title=Peach_Springs_Trading_Post&oldid=563257259

ref1 is defined inside the infobox template. The second use of this named reference is inside a textblock, but when you hover the [1] you get a stopsign cursor and cannot use this usage of the ref to open the editor.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=51289

bzimport set Reference to bz50896.
TheDJ created this task.Via LegacyJul 7 2013, 7:22 PM
John_Broughton added a comment.Via ConduitJun 13 2014, 6:38 PM

This should NOT be a low priority. It's quite common for an article to have ALL references inside a template - see, for example, https://en.wikipedia.org/wiki/Helminthopsis .

At the moment, VE is able to figure out that the citation information is elsewhere - a tooltip appears that says "This reference is defined in a template or other generated block, and for now can be only edited in source mode." If VE can figure that out, then it should be able to perform the following three additional steps:

  • Check if the information is in the {{reflist}} template (match the "ref name=" parameter in the body of the text to a ref name parameter within the reflist template)
  • If a match is found, pull the relevant citation information from the reflist template, allowing the user to edit it
  • After the edit is finished, put the (modified) citation information back into the reflist template

(Side note: for edit conflict purposes, this is an edit of the section where the reflist template is located, not where the footnote label exists within the body of the text).

If VE is NOT modified to allow users to edit such references/citations, users are going to be (randomly) frustrated because they can't edit any footnotes in some articles using VE (see above) and because in some articles (https://en.wikipedia.org/wiki/Pope_Francis , for example), there are occasional footnotes that aren't editable in VE.

Jdforrester-WMF added a comment.Via ConduitJun 13 2014, 6:44 PM

(In reply to John Broughton from comment #1)

This should NOT be a low priority. It's quite common for an article to have
ALL references inside a template - see, for example,
https://en.wikipedia.org/wiki/Helminthopsis .

At the moment, VE is able to figure out that the citation information is
elsewhere - a tooltip appears that says "This reference is defined in a
template or other generated block, and for now can be only edited in source
mode." If VE can figure that out

We figure that out because we can tell that there's no actual reference on the page, so presumably it was made with a hack.

, then it should be able to perform the following three additional steps:

This doesn't actually follow.

  • Check if the information is in the {{reflist}} template (match the "ref name=" parameter in the body of the text to a ref name parameter within the reflist template)

No. That would require making up a list of hack templates that each wiki uses, which is a WONTFIX if ever there was one. See instead bug 51260 which will mean we can get rid of this class of template hacks once and for all.

  • If a match is found, pull the relevant citation information from the reflist template, allowing the user to edit it

Again, this would require a list of hack extraction approaches for each of the hack templates. WONTFIX. Sorry, but these templates are ghastly abominations and should have been strangled at birth.

  • After the edit is finished, put the (modified) citation information back into the reflist template

That requires magic psychic modification of wikitext. Yet again, WONTFIX. Sorry.

(Side note: for edit conflict purposes, this is an edit of the section where
the reflist template is located, not where the footnote label exists within
the body of the text).

You are mistaken about how edit conflict detection works. Sections don't come into it. See endless suggestions and bugs passim where this myth has been disproven.

If VE is NOT modified to allow users to edit such references/citations,
users are going to be (randomly) frustrated because they can't edit any
footnotes in some articles using VE (see above) and because in some articles
(https://en.wikipedia.org/wiki/Pope_Francis , for example), there are
occasional footnotes that aren't editable in VE.

Or, alternatively, we could dump the stupid templates that make it harder for users even using wikitext to know what on Earth is happening, and instead use the wikitext the way it was designed, without resorting to hacks of doom?

Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 4:18 PM
He7d3r added a subscriber: He7d3r.Via WebJan 29 2015, 8:50 PM

Add Comment