Page MenuHomePhabricator

[feature request] User scenario to fix old raw references
Open, Needs TriagePublic


We have a lot of old references at nowiki (as most of the wikis), and we need some easy way to fix them without fiddling with wikitext. Often the wikitext is so messed up it is nearly impossible for an average user to fix it anyhow. Early versions of VisualEditor or ContentTranslation may have created the mess, but more often it is simply old raw references.

We typically want to go from a raw form of reference

<ref><cite class="citation web">[ "Gjennomgang av ACAS RA Downlink, En vurdering av teknisk gjennomførbarhet og operative nytten av å gi ACAS RA bevissthet på CWP"] (pdf). s.&#x20;20<span class="reference-accessdate">. </span></cite></ref>

to a form with a template

<ref>{{Cite web|url=|title=British Airways Museum Collection 1920–30|accessdate=17 June 2007}}</ref>

What follows is a user scenario where a user want to do an automatic replacement (bugger, I have used a pdf-link and the following will fail)

Given I am an editor
When I open an article for editing
Then I find some raw references

Right now I can't even see which one is raw and thus need fixing. If the ref marks was styled somehow to make the type visible, then it would be easier to navigate to them. Now I have to click on each one of them, which is quite boring.

Given I want to fix a reference
When I open the reference
And clicks edit
Then I get the edit pane

Right now I am left with no clue how to change the entry into a template. I want a button [repair] or [change to template] to open the Cite dialog, but still show the old reference content so I can copy-paste from it. (Note that right now I can't even select from the reference before I click edit, allthough I can copy the link.)

Given I'm in a dialog for importing the old content into a new template
When I switch to [automatic] in the cite dialog
And copy the link from the old content
And paste it into the text field
And clicks generate
Then I get a new prefilled template

If I use the [automatic] pane it could be prefilled with the external link from the raw content, or it could be prefilled with some other recognized identifier. If I use some of the other panes (tabs) the scenario would be slightly different.

At this point the old content from the reference should still be visible and such that I can copy-paste from it. Note that the attributes for group and name are still part of the enclosing reference.

Given that the template still lacks some old data
And I have copy-pasted old content
When I click [save]
Then the old raw reference should be replaced with the new one with the template

That should be a full user scenario for switching from an old raw reference to a new one.

Event Timeline

jeblad created this task.Nov 4 2017, 10:07 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 4 2017, 10:07 PM

What is an "old reference"? What is a "raw reference"?
Is this about classic wikitext editor? VisualEditor?
Specific steps to reproduce, with a given example, are welcome.

jeblad updated the task description. (Show Details)Nov 4 2017, 10:09 PM
jeblad added a comment.EditedNov 4 2017, 10:12 PM

I try to figure out what is needed to replace the old references that uses raw wikitext with the new form that uses the template editor. It is not a bug, it is a feature request!

Jay, no bug! ;)

jeblad renamed this task from User scenario to fix old raw references to [feature request] User scenario to fix old raw references.Nov 4 2017, 10:18 PM
jeblad updated the task description. (Show Details)
jeblad added a comment.EditedNov 4 2017, 10:24 PM

I'll start a discussion at nowiki if this is in fact an acceptable solution. (w:no:Wikipedia:Torget#Oppdatering av gamle rå referanser)
Perhaps someone working on VisualEditor/Citoid could say if this is possible?

jeblad updated the task description. (Show Details)
jeblad updated the task description. (Show Details)

We already have some of this feature: T114564

jeblad added a comment.Feb 7 2018, 2:49 PM

Yes, but it is still very awkward to do the remaining updates.

JTannerWMF moved this task from To Triage to Freezer on the VisualEditor board.May 7 2019, 3:42 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMay 7 2019, 3:43 PM