Page MenuHomePhabricator

When adding a reference, figure out the page number the user wants based on information in the URL, and automatically add it
Closed, DuplicatePublic8 Story Points


Current process (in Firefox, at least):

  1. Insert citation using Citoid.
  2. Edit citation.
  3. Scroll to end.
  4. Click 'Add more information'.
  5. Find 'Page' and add it.
  6. It auto-scrolled to the very top of the dialog. Scroll back down to where the Page parameter is located.
  7. Type in the page number.
  8. Save changes.

Desired process: Extract the page number from the link and insert it automagically for me.

Second-favorite process (necessary for ISBNs or other URLs): You know it's {{cite book}}, so request a page number when I submit it.

Third-choice process: Always insert the page parameter, or at least display it (empty) in the list of parameters when I edit the citation after inserting what Citoid gave me.

Event Timeline

Whatamidoing-WMF updated the task description. (Show Details)
Whatamidoing-WMF raised the priority of this task from to Needs Triage.
Whatamidoing-WMF added a subscriber: Whatamidoing-WMF.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 14 2015, 8:24 AM
Mvolz moved this task from Backlog to Service on the Citoid board.Apr 29 2015, 1:03 PM
Mvolz moved this task from Service to Extension on the Citoid board.

Second-favorite process (necessary for ISBNs or other URLs): You know it's {{cite book}}, so request a page number when I submit it.

So… add "page" to the recommended list of fields for the template on enwiki?

Jdforrester-WMF changed the task status from Open to Stalled.Aug 25 2015, 7:28 PM

pages is already "suggested" in the TemplateData.

When you add a template via the citoid service, or when you edit a pre-existing one that does not contain the suggested parameter, the empty-but-suggested parameters are not displayed.

Here's a screenshot of what happens. {{Cite book}} at en.wp has one required and seven suggested parameters. And when you open it, you see a total of four. The four un-used suggested parameters, including pages, are not present.

Elitre added a subscriber: Elitre.Oct 28 2015, 4:02 PM

Got the same remark on today.

Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptDec 29 2015, 11:33 AM
jeblad added a subscriber: jeblad.Feb 10 2017, 11:00 PM

Not sure what this is stalled on.

I'm confused about what the complaint is here, so maybe something significant has changed in the past 2.5 years.

The complaint appears to be split into two parts:

  1. When I want to add a page to a book citation, it should be displayed without having to click "Add more information".
  2. When I put in a citation to a book, it should automatically put in the relevant page number.

I found an ISBN, and used Citoid to add it as a reference. When I edit the citation and scroll down in the dialogue, the pages parameter is there and is quite easily editable, without using "Add more information". Admittedly, it is below the fold, but all the stuff that's above the fold is more important, so there's not much to do about that. So, point 1 seems solved.

The second point is more complex. For some methods of inserting a citation for a book, automatically detecting a page would be impossible; for example, an ISBN is an identifier for the whole book, and by design cannot reference specific pages. It seems this is also the case for a link to Google Books, since there is no page identifier in the URL. What are the other methods of adding a reference to a book that include information about the page number?

In short, this task needs rescoping to be about a specific issue, probably "Add feature to request a page number when adding a citation of a book".

There is a page number identifier in Google Books URLs. Consider The &pg=PA319 part identifies the page number. It will not always be the page number that's wanted because (1) it's the page number for digital display, which does not always match the physical page number and (2) it's the page number when you opened the book, rather than the page number that you were reading at the time when you copied the URL, but it will be accurate in most cases.

So the request (aka "desired process") is "Copy the 319 out of that URL and pre-paste it into the |pages= field."

So, based on that, some Google Books URLs have page identifiers, but not all of them. Right.

I'm a little wary of autopopulating this, as it might not be the page the user wants, and they might not see it when inserting the reference. It's probably better that a reference be put in without a page number rather than with a page number that's incorrect. A solution to this would need to be figured out.

Deskana renamed this task from Make adding page numbers to {{cite book}} more efficient to When adding a reference, figure out the page number the user wants based on information in the URL, and automatically add it.Nov 17 2017, 12:06 PM
Deskana moved this task from To Triage to Freezer on the VisualEditor board.
Deskana set the point value for this task to 8.
Deskana triaged this task as Low priority.

Given that the most important part of this—adding a page without clicking "Add more information—is fixed, the big chunk of work that's left cannot be prioritised right now.

Isn't that T113262?

Yes, it seems so.

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptNov 28 2017, 12:38 PM