Template talk:Book

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

"Institution" and "Department" fields seem to have their labels switched

[edit]

This page has the "Institution" and "Department" field set; the displayed labels are "Collection" for the "Institution" field, and "Current location" for the "Department" field.
However, documentation for the "Department" field says "Department, division, collection, or other location within the institution", so I'd expect the label to be "Collection", not "Current location". Should the labels be switched between the two? Happyseeu (talk) 16:58, 20 September 2022 (UTC)[reply]

Multiple lines in title cause "Bogus image options" Linter error

[edit]

At File:WUL-bunko19 f0400 z0203 姑娘二十四彪.pdf and many other File pages, having multiple lines in the title causes a "Bogus image options" Linter error, apparently because the title is used in the image's |alt= option. We should probably stop using the title in the image's |alt= option, because it does not help with accessibility (screen readers already have access to the title) and because the title is almost never a valid description of the image. It would be better to show nothing, or something like "an image of a page from a book or book-like object". Jonesey95 (talk) 17:22, 25 October 2022 (UTC)[reply]

I have made a change to Module:Artwork/core to fix the problem described above. Better "alt" text is possible; feel free to improve it. Jonesey95 (talk) 15:33, 2 April 2023 (UTC)[reply]

"Start this Book" image shows cover page image instead of relevant file

[edit]
  1. Category:Jahreshefte des Vereins für vaterländische Naturkunde in Württemberg (that's an old annual journal) contains many per-year PDF "books".
  2. One of the books, for example, is File:Jahreshefte des Vereins für vaterländische Naturkunde in Württemberg 019 1863 (IA mobot31753002534748).pdf. Please see the thumbnail ("Start this Book") in the infobox there and test its functionality.
  3. The wrongly linked JPG image is File:Jahreshefte des Vereins für vaterländische Naturkunde in Württemberg 008 1852 (example cover page).jpg. On its file description page notice the long "File usage on Commons" section (the image is currently used on all per-year PDF files).
  4. That cover image is in direct use only at d:Q47089483 (as the general image for the journal). I guess the WD statement is used to fetch a file link for "Start this Book".

I think this should be fixed.
There's no problem in similar cases of PDF book categories I recently worked on. See eg. File:Archiv für Naturgeschichte 73 1907 (example cover page).jpg, which is used for Category:Archiv für Naturgeschichte ("Start this Book" works as expected at File:Archiv für Naturgeschichte (IA archivfrnaturg89berl).pdf and others). --AmsaTalla (talk) 12:04, 9 January 2023 (UTC)[reply]

Display order of publication data parameters

[edit]

Book publication data are normally given as a triad:

City: Publisher, Publication date.

Occasionally, a Printer is given as well. These fields should be displayed clustered together. Instead they are intermixed in a seemingly random manner:

Publisher, Printer, (Description), (Language), Publication date, (Current location), (Accession number), Place of publication

This is rather confusing and difficult for humans to use. Can we change the weighting/ordering of the parameters so that Place of publication appears before Publisher and Publication date appears immediately after Printer? I realize this involves some work with behind-the-scenes code, but the effort would be worth it. Order the words of important is. For a real-life example, see: File:Dissertation sur les fièvres pernicieuses, ou ataxiques intermittentes. Traité des fièvres pernicieuses intermittentes (IA b22036258).pdf Thanks for your consideration. MetricHistory (talk) 20:34, 21 March 2024 (UTC)[reply]

@MetricHistory: You can place named parameters in any order you like, the order for usage of named parameters does not impact the output. A bit different from where a template has positional parameters. See mw:Help:Templates  — billinghurst sDrewth 21:57, 9 July 2024 (UTC)[reply]

LCCN not visible

[edit]

See File:The Unfolding Crisis in Burundi - Hearing Before the Subcommittee on Africa, Global Health, Global Human Rights, and International Organizations… (US House, Serial 114-90) (US GPO, 2015) (IA gov.gpo.fdsys.CHRG-114hhrg95635).pdf and the linked The Unfolding Crisis in Burundi (Q127514984) for example.

The OCLC control number (P243) is visible under "Authority file" but the LCCN (P1144) is not. It should be. Thanks in advance to whoever addresses this. Jarnsax (talk) 12:43, 17 July 2024 (UTC)[reply]