Template talk:Infobox book

From Wikipedia, the free encyclopedia
Jump to: navigation, search
          This template is of interest to the following WikiProjects:
WikiProject Books (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Books. To participate in the project, please visit its page, where you can join the project and discuss matters related to book articles. To use this banner, please refer to the documentation. For guidelines on this template's usage, see its documentation.
 Template  This template does not require a rating on the project's quality scale.
WikiProject Novels (Rated Template-class, High-importance)
WikiProject icon This template is within the scope of WikiProject Novels, an attempt to build a comprehensive and detailed guide to novels, novellas, novelettes and short stories on Wikipedia. If you would like to participate, you can edit one of the articles mentioned below, or visit the project page, where you can join the project and contribute to the general Project discussion to talk over new ideas and suggestions.
 Template  This template does not require a rating on the project's quality scale.
 High  This template has been rated as High-importance on the project's importance scale.
WikiProject Children's literature (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Children's literature, a collaborative effort to improve the coverage of Children's literature on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.

Interaction with footnote display?[edit]

The diary article On the Way Home now provides two formal references using [ref] tags and template {{reflist}}, both defined in the reflist parameter |refs=. The older one [ref name=LCC] is numbered '2' and displayed second although it is called earlier in the infobox; called earlier in the lead paragraph; defined earlier under the {reflist} parameter |refs=. Because it is called earlier both in the infobox and the lead, the appearance is odd: whether one begins reading with the infobox or the lead, "[2]" appears before "[1]".

I viewed some neighboring implementations but didn't save them. For one, the older reference was previously defined in the infobox, at parameter |congress=, and I added [ref name=kirkus] about 30 minutes ago as the only one defined in the reflist --with the same display we see now. --P64 (talk) 20:44, 2 October 2015 (UTC)

interesting, it appears to be coming from the top span metadata link. I tried adding some "unstrip" but didn't exactly work as planned. someone like User:Jackmcbarn could probably work it out. Frietjes (talk) 17:37, 21 October 2015 (UTC)
alternatively, if a coins expert (like User:CBDunkerson?) could tell me if we can move the coins span to further down in the infobox, or if it has to go in the title? Frietjes (talk) 17:40, 21 October 2015 (UTC)
@Frietjes: The title parameter gets looked at before the data15 (genre) parameter, and since the title parameter looks at pub_date and not genre, pub_date gets looked at first. We can hack around this specific case by putting {{#if:{{{genre}}}|}} before pub_date in title (which will look at genre but not do anything with it). A proper fix would require gerrit work (and I actually did it not too long ago, but it ended up getting reverted). Also, unstrip currently has no effect whatsoever on ref order. Jackmcbarn (talk) 22:01, 21 October 2015 (UTC)
Jackmcbarn, understood. if we could move the coins line down to the bottom, this wouldn't be a problem. until there is a fix, I added the empty #if parser as suggested. Frietjes (talk) 22:13, 21 October 2015 (UTC)

Caption without image[edit]

I added some logic to suppress the caption when there is no caption. this was happening due to the passing of tracking categories through the image parameter. Frietjes (talk) 17:38, 21 October 2015 (UTC)

Missing parameters[edit]

It would be useful if "external_url" and "external_url_host" were included in the copy-and-paste listing of the template at "Usage". Any particular reason that they aren't? They must be used fairly often, I'd think. PamD 16:46, 29 October 2015 (UTC)

Books without cover images[edit]

I would find it useful if the template automatically added books that do not have a cover image to a hidden category - perhaps Category:Books without cover images. I have uploaded a number of book covers and this hidden category would make it easier to identify which books still need covers. Does anyone have any thoughts on whether this change should be made to the template? --WayfaringWanderer (talk) 22:10, 21 November 2015 (UTC)

Looks like it already does this – wouldn't Category:Books with missing cover suit this need?  Paine  12:34, 22 November 2015 (UTC)
Yes, that's exactly what I was looking for. I have no idea how I missed that. Thanks! --WayfaringWanderer (talk) 21:49, 23 November 2015 (UTC)
Pleasure! Paine 

Multipage files as cover image[edit]

In depopulating Category:Infobox book image param needs updating, I've come across a couple of instances in which a page (other than the first) of a djvu file is used as the book cover image (see Disagreeable Tales). In this instance it can't be changed to the bare filename because the cover image is page 3 of the document. Is there a sensible way to add this page functionality to the template?— TAnthonyTalk 16:15, 22 November 2015 (UTC)

Djvu files (especially from Internet Archive, as most of them on Commons are) tend to be very lossy, which is fine for proofing on Wikisource, but it would be much better to get the full quality scan from IA, and then upload the relevant page here separately as an image (this is a pretty common practice, but not universal it seems). Are there any other exceptions, like pdfs for example? ‑‑YodinT 16:22, 22 November 2015 (UTC)
Wait, the example you gave was from Gallica... the same should probably apply, but I'm less familiar with the best way to get the best quality scan from there. ‑‑YodinT 16:24, 22 November 2015 (UTC)

Ok, I've created the Disagreeable Tales title page. If you come across any other examples then give me a shout. ‑‑YodinT 01:52, 25 November 2015 (UTC)