Template talk:Google books

From Wikipedia, the free encyclopedia
Jump to: navigation, search

WT:CITE#Linking to Google Books pages[edit]

RfC on whether WP:CITE should say Google Books page links are not required but are allowed in footnotes, and that editors should not go around removing them. All input welcome. SlimVirgin talk|contribs 20:35, 29 October 2010 (UTC)

Certainly should have links. — LlywelynII 02:09, 10 September 2011 (UTC)
I personally agree (at least as long as a preview is available and allows easy verification of related WP content), but not every author sees it that way. Another issue is Google does not guarantee that the book or the cited pages stay visible. In practice in many cases it is relatively stable, but not always and an additional drawback is that the visibility might depend on your country.--Kmhkmh (talk) 11:50, 10 September 2011 (UTC)

Template needs work[edit]

No space for author, year of publication, date of access/retrieval, etc. See WP:CITE/ES. — LlywelynII 02:09, 10 September 2011 (UTC)

Also no need to place obnoxious, distracting "at Google Books". Template already creates link. — LlywelynII 02:22, 10 September 2011 (UTC)

As I understand it the purpose of this template to merely provide a Google books link to a specific page and not to be (an often messy and much more comprehensive) citation template and to stay away from the "true citation (template)" wars. In other words this is not a citation template, but a template that allows people not using citation templates to provide useful (page based) online links nevertheless. For that reason imho there is no point in extending with your suggested entries, because for that we already have citation templates.

Where I would tentatively agree however is that the "at Google Books" part could be removed or at least made optional.--Kmhkmh (talk) 11:45, 10 September 2011 (UTC)

Compare it with Template:Gutenberg, which does allow full citations. Horatio (talk) 07:29, 28 April 2013 (UTC)

Emit page number[edit]

The template accepts a parameter |page= Should it then not also emit that page number? E. g.

History of the Western Insurrection, p. 42, at Google Books

I think the necessary template code would look like

''[http://books.google.com/books?id={{{1|{{{id}}}}}}{{#if:{{{page|}}}|&pg=PA{{{page|}}}|}} {{{2|{{{title|{{PAGENAME}}}}}}}}]''{{#if:{{{page|}}}|, p. {{{page|}}},|}} at [[Google Books]]

but I'm not exactly a template expert. -- Michael Bednarek (talk) 12:45, 30 August 2012 (UTC)

Proposed changes in Template:Google books/sandbox and Template:Google books/testcases[edit]

Hi everyone, there are two changes I've made in the template sandbox. One displays the page number after the url if one was passed to the template; it was suggested by Michael Bednarek. The other is a result of the nomination of {{gbook}} for merging—it allows this template to return only a bare url and nothing else (which is to replace {{gbook}}). Thanks, RainCity471 (whack!) 08:11, 21 October 2013 (UTC)

Thanks; however, instead of surrounding the page number with parentheses, I prefer commas around it. -- Michael Bednarek (talk) 13:02, 21 October 2013 (UTC)
That's fine, it probably does look better that way. I'll copy the sandbox changes to the main template now. Thanks, RainCity471 (whack!) 19:59, 22 October 2013 (UTC)
These changes are causing URL errors to appear in citations where there were no errors before. See, for example: [1] and [2]. Please fix this problem if you are able.Jonesey95 (talk) 03:37, 23 October 2013 (UTC)
If a plain URL is required, specifying |plainurl=yes (which needs to be documented) will do that. From your 1st example:
* {{cite book|title=System der Asteriden|url={{google books|SDwb-runOSQC|System der Asteriden|page=PR5|plainurl=yes}}|publisher=Friedrich Vieweg und Sohn |location=Braunschweig}} (1842) with [[Franz Hermann Troschel|F. H. Troschel]] will produce
It seems to me that the previous use of {{Google books}} in your examples for the parameter |url= in the template {{Cite book}} was bending the concept of a URL quite a bit. -- Michael Bednarek (talk) 04:23, 23 October 2013 (UTC)
This change is indeed causing CS1 URL scheme errors. Ex: Gold standard. — JJJ (say hello) 14:39, 25 October 2013 (UTC)
I guess I'm the person who mucked up... My understanding was that the template would never have worked in citation templates anyway, since it always returned the formatted url and I just added an option for it to return a plain one... Anyway shall I undo it? RainCity471 (whack!) 18:21, 25 October 2013 (UTC)
No, this does not need to be reverted. I was worried that there would be tons of google books templates in citations, but the job queue appears to be adding them to Category:Pages with URL errors‎ at a rate of only about one or two a day, which is easy to keep up with. – Jonesey95 (talk) 21:51, 25 October 2013 (UTC)
Ok, I'm afraid i don't know why the job queue is doing this. I guessed I was safe because I thought the template would never have worked in citation templates anyway; I considered all I was doing was adding an option to change the output and it wouldn't affect the default (this is disregarding the change that added the page number; that only added to the title and can't have affected this). It was my fault I forgot to document the change—I sort of remembered a bit later and then forgot. If for some reason the job queue spits out a load of broken templates, ask me and I'll be happy to help. Sorry, RainCity471 (whack!) 22:39, 26 October 2013 (UTC)
The job queue is a background process that, among other things, recategorizes articles when one of the templates contained ("transcluded", in WP jargon) within the article causes that article to be added to or removed from a category. The job queue effectively performs a null edit on each article, "refreshing" it. It appears to be taking 3-4 weeks to travel through all of Wikipedia these days, so if it adds one or two a day, that means about 30-40 articles will pop up with errors. That's not a problem; human editors create a lot more problems than that.
Is somebody here going to change the 10 or so articles that use {{gbook}} to use this template instead? – Jonesey95 (talk) 23:30, 26 October 2013 (UTC)
I understand about the job queue and will try and sort the {{gbook}}s soon. RainCity471 (whack!) 21:41, 2 November 2013 (UTC)

How to deal with "roman" page numbers and front matter?[edit]

If instead of using &PA=n one uses &PR=n this will link to pages number using roman numerals. Also, I just found you can even use &PP=n for pages before the roman numerals start. Taking the example from the template documentation:

  • {{Google books|7ydCAAAAIAAJ|History of the Western Insurrection|page=42|plainurl=yes}}


  • //books.google.com/books?id=7ydCAAAAIAAJ&pg=PA42

However, if one links to //books.google.com/books?id=7ydCAAAAIAAJ&pg=PP2, this is the bookplate on the inside cover, and //books.google.com/books?id=7ydCAAAAIAAJ&pg=PR1 is the title page complete with inscriptions. What would be the best way to incorporate these modes of use into the template? —Phil | Talk 12:58, 21 May 2014 (UTC)