Template talk:Cite book

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Changes needed[edit]

{{Edit request}} Could someone with the right privileges please make the following changes?

  • There is a typo, "{{{archiveur|}}}", that needs to be corrected to "{{{archiveurl|}}}".
  • Perhaps {{ISOdate}} should be applied to |origdate= so that |dateformat= can be eliminated?

Also, could someone explain to me the function of |ref=? Thanks. — Cheers, JackLee talk 17:55, 24 November 2011 (UTC)

I have fixed the typo and changed date format, but I cant find any |ref=.--Zolo (talk) 18:05, 24 November 2011 (UTC)
Thanks! |Ref= appears right at the top of the template: "{{#if:{{{ref|}}} | {{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}". — Cheers, JackLee talk 18:08, 24 November 2011 (UTC)
Oh yes I had not seen it, I have added a tracking category to see where it is used.--Zolo (talk) 18:11, 24 November 2011 (UTC)
Mmm, you seem to have reverted to a very primitive version of the template by accident. — Cheers, JackLee talk 18:53, 24 November 2011 (UTC)
Ooop. No idea of what happenned. I Hope it is fixed now.--Zolo (talk) 19:00, 24 November 2011 (UTC)
Yup, looks OK. But you can add the tracking category back to figure out what |ref= is for, if you want. — Cheers, JackLee talk 19:23, 24 November 2011 (UTC)
Yes I have added it at the end. Actually "ref' is documented on en:Template:Cite_Book. It is supposed to serve as an anchor. I am not sure it is very useful on Commons, but it does not hurt much either so I would suggest to keep it.--Zolo (talk) 19:33, 24 November 2011 (UTC)
Ah, yes, I see. OK, I will document that. But I agree that it doesn't seem particularly useful. — Cheers, JackLee talk 11:10, 25 November 2011 (UTC)

"At" parameter[edit]

The |at= parameter doesn't seem to work: see, for example, "File:Hosmanus Imperatoris Ibrahim Filivs (1707).jpg". Any idea why? The wikitext looks OK to me. — Cheers, JackLee talk 18:31, 6 December 2011 (UTC)

It is inside an "if", so it does not works when 'pages' is void.--Zolo (talk) 19:00, 6 December 2011 (UTC)
Oh, right. Is it supposed to work that way? I thought it was intended as an alternative to |page=/|pages= when those parameters are not suitable. — Cheers, JackLee talk 19:16, 6 December 2011 (UTC)
I dont know what was intended actually, but yes I think it makes more sense to use it when no page is given, like in Wikipedia. I'll change it.--Zolo (talk) 19:23, 6 December 2011 (UTC)
Cool, thanks. — Cheers, JackLee talk 19:29, 6 December 2011 (UTC)

{{edit request}}

Still not working: Sugden, John () Tecumseh's Last Stand from
{{cite book | last = Sugden | first = John | title = Tecumseh's Last Stand | at = Frontispiece | year = 1990
| url = http://books.google.com.sg/books?id=1nefBeV7k_IC&pg=PR2&source=gbs_selected_pages&cad=0_1#PPR2,M1
| work = Google Books}}
BTW, I would like to indicate that the link aims at Google Books, apparently impossible with {{cite book}}. I get it with {{cite web}}, but this suppresses location of original publisher. I would like to inform about the online provider and at the same tell which of alternative editions was digitalized—by full bibliographic information.--Uwe Lück (talk) 10:40, 10 May 2014 (UTC)
Not done for now, please sandbox and test your change. Once you get it working, do a new request. Multichill (talk) 13:40, 7 June 2014 (UTC)

Bug or feature?[edit]

{{editprotected}} Example (as given in the book):

Wien am Anfang des XX. Jahrhunderts. Ein Führer in technischer und künstlerischer Richtung. Herausgegeben vom Österreichischen Ingenieur- und Architekten-Verein. Redigiert von Ingenieur Paul Kortz, Stadtbaurat. Zweiter Band. Verlag von Gerlach & Wiedling, Wien 1906. Abb. 748, Kapitel III.L.I. Rotunde, S. 459.

If I use

{{Cite book |title=Wien am Anfang des XX. Jahrhunderts. Ein Führer in technischer und künstlerischer Richtung |chapter=III.L.I. Rotunde |volume=2 |publisher=Österreichischer Ingenieur- und Architekten-Verein |editor=Ingenieur Paul Kortz, Stadtbaurat |location=Wien |date=1906 |language=de |pages=459 |at=Abb. 748 |nopp=542}}

the result looks strange to me:

"III.L.I. Rotunde" in Ingenieur Paul Kortz, Stadtbaurat , ed. (in German) () Wien am Anfang des XX. Jahrhunderts. Ein Führer in technischer und künstlerischer Richtung, 2, Vienna: Österreichischer Ingenieur- und Architekten-Verein, 459

Why does the volume (2) appear twice? Why are the number of pages (|nopp=542) not displayed? Alfie↑↓© 00:22, 27 December 2011 (UTC)

The repetition of the volume number seems like an error. You are using |nopp= incorrectly – it is simply for turning off "p." or "pp.". If you wish to refer to a particular page, use |at=. — Cheers, JackLee talk 06:40, 27 December 2011 (UTC)
Thanks! Alfie↑↓© 13:14, 27 December 2011 (UTC)
I must say I also thought "nopp" stood for "number of pages". What is the point of turning off pages while it does not do anything by default ?--Zolo (talk) 13:32, 7 January 2012 (UTC)
I think the default is that "p." or "pp." (or their equivalents in other languages) will be displayed. If |nopp= is used, the page number(s) will be displayed without the term "p." or "pp." in front. — Cheers, JackLee talk 13:43, 7 January 2012 (UTC)
Ah right. It is the same as on en.wiki. I dont see much benefit over the "at" parameter though.--Zolo (talk) 18:45, 7 January 2012 (UTC)
I guess the difference is that |nopp= was intended to apply to the first page number of a work or the full range of pages that the work spans, while |at= is intended to allow users to refer to a "pinpoint", that is, a specific figure, paragraph, table, and so on. But I can see how one might use them in the same way. – Cheers, JackLee 03:14, 8 January 2012 (UTC).

"Page" parameter[edit]

The |page= parameter doesn't seem to work: see, for example, Category:Grave of Poinat family. Any idea ? ~Pyb (talk) 13:51, 29 February 2012 (UTC)

Yes, there is a problem with "{{". that are not closed at the right place. It works if you add the publisher. I'll try to correct that but since the template is rather hard to read I am afraid to make an error if I do it right now, so I will try to simplify the template first. --Zolo (talk) 14:07, 29 February 2012 (UTC)
Thanks, I'll add the publisher parameter. ~Pyb (talk) 16:48, 29 February 2012 (UTC)
Fixed now.--Zolo (talk) 10:51, 9 March 2012 (UTC)

New version[edit]

I have made a new version in template:cite book/sandbox. I solves the problem mentionned above and a few others. It is also more localizable and hopefully easier to maintain. The order in which parameters are displayed follow more closely en.wikipedia but II many have may some mistakes. Please report the errors that you see (for instance in Template:Cite book/testcases) before it is implemented for real. --Zolo (talk) 17:31, 4 March 2012 (UTC)

I have implemented the new version (there is a small problem for spaces when we use commas because of {{cite book/label}}, I'll fix it.--Zolo (talk) 10:51, 9 March 2012 (UTC)

Issues with spacing before and after commas[edit]

Hi. There seem to be some problems with spacing before and after commas. See "File:Henri Moissan isolating fluorine 1886.jpg" – there seems to be an extra space before the comma in between the book title and the place of publication (Paris in this case), but a missing space after that comma. There is also an extra space before the comma between the publisher and the page number. — Cheers, JackLee talk 02:46, 9 July 2012 (UTC)

Same here with File:Hydrogramme-caniapiscau fr.svg. I could try to fix it but it's a sensitive template. Bouchecl (talk) 18:11, 30 July 2012 (UTC)
Sorry for the delay, I had forgotten to fix that. I hope it is okay now. --Zolo (talk) 06:21, 31 July 2012 (UTC)
Looks good. Thanks very much! — Cheers, JackLee talk 07:53, 31 July 2012 (UTC)
Perfect! Thank you. Bouchecl (talk) 17:31, 1 August 2012 (UTC)

Extra space before quotation mark[edit]

Hi, I used {{cite book}} with the |chapter= parameter in a usage note at "Category:Gravestones in Fort Canning Green relocated from Bukit Timah Cemetery", and noticed that there is an extra space before the closing quotation mark. Can this be fixed? Thanks. — SMUconlaw (talk) 19:26, 1 April 2013 (UTC)

I tried to fix it, but apparently, it does not work. We should probably make a new version based on the new Lua-based template in en.wikipedia. --Zolo (talk) 05:00, 3 April 2013 (UTC)
Wow, this is a really complicated template. Looking at it, maybe you need to remove the extra spaces between "{{{chapter|}}}" and "}} }} }}"? I have no idea how to use Lua. If all the templates get converted to Lua, then I think I will have to give up working on templates. :( — SMUconlaw (talk) 12:57, 3 April 2013 (UTC)
I do not see which "chapter" you are referring to. I could try to remove all white spaces I see but that will make the template even harder to read, so I'd rather try Lua. The syntax of Lua is more complicated, but once you get used to it, it tends to make the code easier to read, I think, so if you have some spare time :). --Zolo (talk) 09:37, 4 April 2013 (UTC)
I meant this part:
** chapter **
-->|chapter = {{#if: {{{chapter|}}} 
            | {{cite book/label|chapter|{{#if:{{{chapterurl|}}}
                 |[{{{chapterurl}}} {{{chapter}}}]
                 |{{{chapter|}}}
              }} }} }}
Not sure if I have the time to learn how to use Lua; will see how it goes. It looked very complicated when I first read the Mediawiki help page on it. — SMUconlaw (talk) 09:59, 4 April 2013 (UTC)
Oh yes, you are right. It seems to work now, thanks. --Zolo (talk) 12:04, 4 April 2013 (UTC)
Excellent. Thanks! — SMUconlaw (talk) 16:52, 4 April 2013 (UTC)

Extra space[edit]

{{Edit protected}} Hi, spotted another extra space. If the |editor= parameter is used, an extra space appears like this: "Editor's Name , ed.". — SMUconlaw (talk) 15:34, 20 March 2014 (UTC)

Not done for now, I don't have a clue where the extra space comes from, please sandbox and test your change. Once you get it working, do a new request. Multichill (talk) 13:41, 7 June 2014 (UTC)

Location link[edit]

Last, First Title, Vienna · Last, First Title, Vienna · Last, First Title, New York City

results from

{{cite book|title=Title|first=First|last=Last|location=Wien}} ·
{{cite book|title=Title|first=First|last=Last|location=Vienna}} ·
{{cite book|title=Title|first=First|last=Last|location=New York}}

From |location=, “Vienna” is linked to en:Vienna, tolerable, but “New York” is linked to New York—the state—at Commonns, should link to w:New York City, assuming that publisher locations always are cities or towns, not states.--Uwe Lück (talk) 13:03, 11 May 2014 (UTC)

If you want en:New York City instead of en:New York than I would suggest using {{cite book|title=Title|first=First|last=Last|location=New York City}} giving "Last, First Title, New York City".--Jarekt (talk) 18:02, 11 May 2014 (UTC)