![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 | Archive 6 | → | Archive 9 |
Please forgive me as a newcomer if I find the book infobox procedure confusing/confused. Yesterday, I was trying to work on the infobox for Nausea.
William P. Coleman ( talk) 17:06, 9 January 2008 (UTC)
The description for the "Language" field is "Language of original book," which I'm afraid is a bit ambiguous. Is that the language of the author's manuscript, or the language in which it was first published? Doctor Zhivago, for instance, was written in Russian, but as it was first published in Italy it was done so simultaneously in Italian and Russian--so if it's the language of the author's manuscript then the "original book" was in Russian, but if it's the language of the first publication then the "original book" was in both Italian and Russian. Kurt Weber (Go Colts!) 04:44, 21 January 2008 (UTC)
Shouldn't this be optional, when the book cover itself clearly shows the title? See for example: Tom Brown's Schooldays. I suggest an optional "title=off" parameter in such instances. JGHowes talk - 16:24, 26 January 2008 (UTC)
I've just noticed that every other infobox I've seen- {{ Infobox VG}} to {{ Infobox film}}, {{ Infobox Celebrity}} and even {{ Infobox album}} stick the headers inside. For consistency's sake, shouldn't the books infobox follow suit? David Fuchs ( talk) 00:41, 29 January 2008 (UTC)
Instead of wrapping within the width of the infobox, my browser is showing them on one line, which for long titles is bad, pushing the box to the left. See, e.g., Manufacturing Consent: The Political Economy of the Mass Media. Maybe this is just a problem with my browser (Firefox 3.b3/OSX)?
Suggest adding Awards= davidwr/( talk)/( contribs)/( e-mail) 18:42, 21 March 2008 (UTC)
I have the code correct and I just can't get the Infobox Book to display on my mediawiki. I am 2 days into this problem and I am pulling my hair out over this issue. HELP!!! Alpinevp ( talk) 19:09, 3 April 2008 (UTC)Alpinevp
{{ editprotected}}
No-brainer here. If an article's title matches that of the book in question, it should be possible to omit the {{{name}}} attribute and have it be inherited. Requested edit:
|above= {{{name}}}
becomes
|above= {{{name|{{PAGENAME}}}}}
If {{{name}}} is specified it'll still be preferred. Chris Cunningham (not at work) - talk 14:13, 16 May 2008 (UTC)
Is there any point in this? No reader of an article about a book is likely to have to have the concept of a country or a language explained to them. This just creates a huge number of valueless links. Colonies Chris ( talk) 21:03, 18 May 2008 (UTC) {{ editprotected}} Please remove the wikilinking of the 'Country' and 'Language' headers. Colonies Chris ( talk) 12:40, 22 May 2008 (UTC)
{{
Editprotected}}
I suggest the original title field have the same italics as the title field, for
WP:MOS consistency. At present, titles are italicized while original titles are not: thus, "
One Hundred Years of Solitude", but "Cien Años de Soledad".
Skomorokh 13:16, 21 June 2008 (UTC)
Philly jawn ( talk) 15:42, 24 July 2008 (UTC)
Hi all,
Currently I'm seeing the infobox in Eragon displaying brokenly in Firefox 3 and Chrome (although it works perfectly in IE 7), and I have narrowed it down to the isbn parameter of this infobox containing a <br /> html tag for a linebreak. Is anyone else seeing the same problem (a span tag with a mass of parameters displaying as text above the book cover image)? Can anyone figure out what it is about ISBN auto-parsing and <br /> tags that might cause this? -- Stormie ( talk) 23:40, 16 September 2008 (UTC)
←Anyone fancy tackling this, please? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 16:05, 8 December 2008 (UTC)
Should the infobox also have a webpage field? Many books have an official webpage set up by its publisher, such as Gay Kids – Kule barn som også finnes. __ meco ( talk) 10:04, 7 November 2008 (UTC)
It is normal to set 200px for book cover images to ensure reasonable conformity of sizing. If there are other issues you are trying to assert please indicate clearly what they are (ideally non-technically) so we can understand what point you are trying to make. :: Kevinalewis : (Talk Page)/ (Desk) 09:53, 26 November 2008 (UTC)
Adherence to the Manual of Style is part of the GA criteria, which is why I made the edit. From
MOS:QUOTE
MOS:IMAGE:
* You should generally use the thumbnail option ("thumb") available in the image markup. This results in a default width of 180 pixels (140 pixels if the "upright" option is used as well), although logged-in users can set a different default in their user preferences. As a rule images should not be forced to a fixed size (i.e. one that overrides the default). Where size forcing is appropriate, larger images should generally be a maximum of 550 pixels wide, so that they can comfortably be displayed on 800x600 monitors. Examples of images where size forcing may be appropriate include:
- Images with aspect ratios that are extreme or that otherwise distort or obscure the image subject(s)
- Detailed maps, diagrams or charts
- Images in which a small region is relevant, but cropping to that region would reduce the coherence of the image
- Images containing a lot of detail, or where the detail is important to the article
- Lead images, which should usually be no larger than 300px. under discussion
This, to me is unambiguous; there is no policy-based justification for specifying a image resolution lower than 300px, because it restricts the readers choice (although when the image itself is of a lower resolution than the infobox default, size should be specified so that it is not stretched). The previous version may have seemed oversized because the original upload was too large for fair use purposes (i.e. greater than 300x300px), and I had tagged it with {{ reduce}}. If "most novel-related pics are set to 200px", then they seem to be out of line with the manual of style. If there is a good reason for this, I suggest altering the default size of {{ Infobox Book}}, but I suspect there is not. the skomorokh 12:03, 26 November 2008 (UTC)
So, with regard to non-free images of book covers, my preference is to upload the best quality image, then slap a {{ reduce}} on it. The image is then cropped to an appropriate size per WP:NFCC criterion 3b, which means it can be included in full in the infobox. This avoids stretching small images to a higher default ( example), ensures all cover images are in compliance with NFCC, and establishes a convention for cover images.
A possible improvement to this would be to have infoboxes force images to show at thumbnail size, which would allow all readers to view it at their resolution of choosing, but I am not sure this is technically feasible. the skomorokh 16:21, 26 November 2008 (UTC)
{{ editprotected}}
Why doesn't the ISBN link in the infobox at Juma and the Magic Jinn lead to somewhere other than ISBN? It would be better if the ISBN number were active in the infobox as it is template:cite book. -- Suntag ☼ 18:22, 7 December 2008 (UTC)
{{
edit protected}}
template. Please agree on some way to fix it.--
Aervanath (
talk) 08:27, 28 January 2009 (UTC)
OK in response to Aervanath issues I have done some research - quite a lot in fact. First I checked how we could test for initial characters, either digits or "ISBN". For that we would need the new "#sub" function (not currently in wikipedia). Second I checked how we could test for string length. For that we would need the new "#len" function (also not in wikipedia). So I worked up various realistic (and used types) of example using both the previous code logic and the current logic. (For completeness I left in my #sub and #len checks)
<!-- START OF WikiMedia test TEMPLATE the examples below invoke this code--> <!--Special functions in MediaWiki needed to make the Length or SubString tests our debate requires. --> {{#len:{{{isbn|}}}}}<br/> {{#sub:{{{isbn|}}}|0|4}} <!--- END OF WikiMedia test TEMPLATE -->
Sample of single ISBN without prefix to test WikiMedia code required
{{#len:1234567890}} |
As you can see these are not interpreted - they are just included as characters meaning MediaWiki doesn't yet recognise them as functions in this version.
<!-- START OF Books test TEMPLATE the examples below invoke this code--> <!--Code like it used to stand before multiple ISBN were broken.--> {{{isbn|}}} <br/><br/> <!--Code like it currently stands. --> {{{{#if:{{{isbn|}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }}}} <br/><br/> <!--- END OF Books test TEMPLATE -->
1. Sample of single ISBN without prefix
Previous code = 1234567890
Current code = {
1234567890 }
|
2. Sample of single ISBN with prefix
Previous code =
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum
Current code = { [[Special:Booksources/
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum|
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum]] }
|
3. Sample of multiple ISBNs without prefix
Previous code = 1234567890, 1234567890, 1234567890
Current code = {
1234567890, 1234567890, 1234567890 }
|
4. Sample of multiple ISBNs with prefix
Previous code =
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum
Current code = { [[Special:Booksources/
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum|
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum]] }
|
5. Sample of multiple ISBNs without prefix - and extra infomation
Previous code = 1234567890 (vol 1), 1234567890 (vol 2), 1234567890 (vol 3)
Current code = {
1234567890 (vol 1), 1234567890 (vol 2), 1234567890 (vol 3) }
|
6. Sample of multiple ISBNs with prefix - and extra infomation
Previous code =
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 1),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 2),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 3)
Current code = { [[Special:Booksources/
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 1),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 2),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 3)|
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 1),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 2),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 3)]] }
|
As you might be able to see:
Example 1 (single ISBN without prefix) : appears to work better with the current code - however the old is not "broken"
n.b. Bear in mind that this isn't the most frequent input to this parameter.
Example 2 (single ISBN with prefix) : appears to work the same regardless of code
n.b. Bear in mind that this is probably the most frequent input to this parameter.
Example 3 (multiple ISBN without prefix) : appears be broken with the current code - however the old is not "broken"
Example 4 (multiple ISBN with prefix) : appears be broken with the current code - however the old works
Example 5 (multiple ISBN without prefix and extra text) : appears be broken with the current code - however the old is not "broken"
Example 6 (multiple ISBN with prefix and extra text) : appears be broken with the current code - however the old works
Conclusions - On balance I would say that the old (previous) code satisfies more of these situations and at very least breaks nothing!. I recommend that we return to it until the version of MediaWiki is brought up to the point that is can handle the logic required to support the tests necessary. :: Kevinalewis : (Talk Page)/ (Desk) 12:38, 28 January 2009 (UTC)
Ok, I found another way which will handle ISBNs containing an X:{{ editprotected}}
| data17 = {{#switch:{{#expr:({{{isbn}}})*0}} | 0 | {{#expr:X}} = [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] | #default = {{{isbn}}} }}
This once again attempts to do arithmetic with the ISBN, then multiply by zero. This will have a result of zero but only if there is no error before that. If the result is zero or if the error indicates the letter X, it adds a link to the input, otherwise leaves it alone. If it starts with the letters "ISBN" or if there are multiple numbers separated by white-space, the #expr will produce different error messages which will not match the one for the letter X, so these would also be left alone. — CharlotteWebb 18:15, 30 January 2009 (UTC)
{{
editprotected}}
|label18= [[Online Computer Library Center|OCLC]]
Can the above link be changed to avoid a redirect and also to provide a meaning for the acronym, if only in the url. ~ Paul T +/ C 06:50, 14 January 2009 (UTC)
{{
Editprotected}}
Can we add a first line field? It seems quite common for analysis on books to mention it, and would help with people searching for a book. --
h2g2bob (
talk) 19:42, 25 January 2009 (UTC)
{{
edit protected}}
template. Thanks,
PeterSymonds (
talk) 00:37, 27 January 2009 (UTC)I've used this template for a translated book, the Finnish classic The Year of the Hare, and found it hard to use for this in a satisfying way. Also, the current documentation has no canonic example of how to handle such books. So here's a quick case study of the workarounds I used.
I wanted to be able to include the main data for both original and translated editions. First I ended up with this:
{{Infobox Book | name = The Year of the Hare | title_orig = Jäniksen vuosi | translator = [[Herbert Lomas]] | image = | image_caption = | author = [[Arto Paasilinna]] | cover_artist = | country = [[Finland]] | language = [[Finnish language|Finnish]] | genre = [[picaresque]], [[comedy]], [[satire]] | publisher = Helsinki: [[:fi:Weilin+Göös|Weilin+Göös]] ''(Finnish 1st ed.)''<br>London: [[Peter Owen Publishers|Peter Owen]] ''(English 1st. ed)'' | pub_date = 1975 | english_pub_date = March 1995 | media_type = Print (Hardcover) | pages = 182 p. ''(Finnish 1st ed.)''<br>135 p. ''(English 1st ed.)'' | oclc = 32340007<!--(English 1st ed.) / 2195299 (Finnish 1st ed.)--> }}
Author | Arto Paasilinna |
---|---|
Original title | Jäniksen vuosi |
Translator | Herbert Lomas |
Language | Finnish |
Genre | picaresque, comedy, satire |
Publisher | Helsinki:
Weilin+Göös (Finnish 1st ed.) London: Peter Owen (English 1st. ed) |
Publication date | 1975 |
Publication place | Finland |
Published in English | March 1995 |
Media type | Print (Hardcover) |
Pages | 182 p. (Finnish 1st ed.) 135 p. (English 1st ed.) |
OCLC | 32340007 |
I find the results (see at right) so-so:
Notes:
(Cont'd below.)
So I thought of piling two infoboxes instead, like this:
{{Infobox Book | name = Jäniksen vuosi<br><small>(1st original edition)</small> | image = | image_caption = | author = [[Arto Paasilinna]] | cover_artist = | country = [[Finland]] | language = [[Finnish language|Finnish]] | genre = [[picaresque]], [[comedy]], [[satire]] | publisher = Helsinki: [[:fi:Weilin+Göös|Weilin+Göös]] | pub_date = 1975 | media_type = Print (Hardcover) | pages = 182 p. | isbn = 951-35-1252-5 | oclc = 2195299 }} {{Infobox Book | name = The Year of the Hare<br><small>(1st translated edition)</small> | title_orig = Jäniksen vuosi | translator = [[Herbert Lomas]] | image = | image_caption = | author = [[Arto Paasilinna]] | cover_artist = | country = tr. from [[Finland]] | language = tr. from [[Finnish language|Finnish]] | publisher = London: [[Peter Owen Publishers|Peter Owen]] | pub_date = tr. from 1975 | english_pub_date = March 1995 | media_type = Print (Hardcover) | pages = 135 p. | isbn = 0-7206-0949-6 | oclc = 32340007 }}
Author | Arto Paasilinna |
---|---|
Language | Finnish |
Genre | picaresque, comedy, satire |
Publisher | Helsinki: Weilin+Göös |
Publication date | 1975 |
Publication place | Finland |
Media type | Print (Hardcover) |
Pages | 182 p. |
ISBN | 951-35-1252-5 |
OCLC | 2195299 |
Author | Arto Paasilinna |
---|---|
Original title | Jäniksen vuosi |
Translator | Herbert Lomas |
Language | tr. from Finnish |
Publisher | London: Peter Owen |
Publication date | tr. from 1975 |
Publication place | tr. from Finland |
Published in English | March 1995 |
Media type | Print (Hardcover) |
Pages | 135 p. |
ISBN | 0-7206-0949-6 |
OCLC | 32340007 |
(Cont'd below.)
I don't know how the current scheme could be developed to better handle translated books (single or dual box) but at least this is a complete example with solutions. (At any rate, guidance about how to handle translated books is missing.) 62.147.36.198 ( talk) 17:54, 30 January 2009 (UTC)
{{
editprotected}}
I keep coming across the terms paperback, hardcover/hardback and audiobook inappropriately capitalised in this template. I'm not sure what the source of this is, but we could start addressing the issue by correcting the example here to place the parenthesised term in all lowercase letters. Thanks,
Skomorokh 01:47, 14 March 2009 (UTC)
I think it would be a good idea to add a field for the Library of Congress call number. These number aren't subjective, as they are found on the copyright pages of most books, and would be helpful to people with access to libraries that use the LOC system (such as many university libraries) in quickly locating a book of interest. -- Phantom784 ( talk) 04:48, 24 July 2008 (UTC)
As far as I can see from browsing through the publishing details of a couple of dozen of my books, the "Library of Congress" number appears only in books published in the USA. Are we also to include similar information for other countries? (E.g. the Library and Archives Canada Cataloguing information, the British Library cataloguing information, etc etc . . .) If not is there any good reason for giving the USA special treatment? JamesBWatson ( talk) 20:32, 23 April 2009 (UTC)
{{ editprotected}} I am stunned. This is a long standing element of the infobox and is documented and designed along with the rest of the box to detail the "First edition" or at the least the most literary notable edition. Why remove the ISBN even for a moment. There should be no debate, The ISBN should be one, only one and "NA" if the publication comes from before 1966 (or thereabouts). And even if there is a debate leave the ISBN as a single until the completion of the debate. :: Kevinalewis : (Talk Page)/ (Desk) 06:07, 17 September 2008 (UTC)
{{
editprotected}}
I noticed some articles have a clickable ISBN and others do not, depending on whether the letters "ISBN" are part of the parameter, but this can be fixed by changing
|data17= {{{isbn|}}}
to
|data17= {{#if:{{{isbn|}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }}
Note that Special:Booksources ignores anything which isn't a number, so this won't break existing uses (except those with multiple ISBNs). — CharlotteWebb 22:26, 1 November 2008 (UTC)
If we really need multiple ISBNs the best thing would be to add separate parameters for that. Might be a good AWB task for someone bored. Until then you can try this:{{
editprotected}}
| data17 = {{#if:{{{isbn|}}} | {{#iferror: {{#expr:{{{isbn}}}}} | {{{isbn}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }} }}
This approach will only auto-link if {{#expr: {{{isbn}}} }}
makes no error, i.e. if it resembles valid arithmetic, in this case containing only numbers and hyphens (interpreted as minus sign). Any value blank or containing a letter will remain unchanged which means valid ISBNs uncommonly ending with "X" or some other oddity need to be handled elsewise, but this would still be better than the current state. —
CharlotteWebb 19:56, 28 January 2009 (UTC)
Can a field be added for the Library of Congress website ( http://catalog.loc.gov) ? For example, the permalink for Wikipedia: The Missing Manual is http://lccn.loc.gov/2008275632 Cirt ( talk) 10:13, 8 October 2008 (UTC)
I think much the same applies here as in the section "Library of Congress" above. JamesBWatson ( talk) 20:34, 23 April 2009 (UTC)
"Media type" is incredibly unhelpful - it should be deleted to prevent useless information from clogging up the template, since pretty much every book that's notable enough for Wikipedia will have both hardcover and paperback editions by now. "Size and weight" isn't even documented, ditto. Seriously, who on earth thought that weighing a book was a good idea for this infobox? Shoemaker's Holiday ( talk) 21:19, 16 April 2009 (UTC)
Can we get the category changed to [[Category:Book infobox templates| ]] since it is of the highest importance in that category? Ta. -- Alan Liefting ( talk) - 02:54, 27 April 2009 (UTC)
{{
editprotected}}
Requesting sync with the sandbox for some minor code cleanup. This is preliminary work before getting on with merging {{ infobox book in series}} into here. Chris Cunningham (not at work) - talk 10:52, 6 July 2009 (UTC)
{{ editprotected}} For media_type, is it possible to remove the lowercase template? It makes the formatting look bad in articles where we've placed capitals. (such as the first letter) If it's left that way for a reason, can someone please explain? blurred peace ☮ 23:27, 23 May 2009 (UTC)
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 | Archive 6 | → | Archive 9 |
Please forgive me as a newcomer if I find the book infobox procedure confusing/confused. Yesterday, I was trying to work on the infobox for Nausea.
William P. Coleman ( talk) 17:06, 9 January 2008 (UTC)
The description for the "Language" field is "Language of original book," which I'm afraid is a bit ambiguous. Is that the language of the author's manuscript, or the language in which it was first published? Doctor Zhivago, for instance, was written in Russian, but as it was first published in Italy it was done so simultaneously in Italian and Russian--so if it's the language of the author's manuscript then the "original book" was in Russian, but if it's the language of the first publication then the "original book" was in both Italian and Russian. Kurt Weber (Go Colts!) 04:44, 21 January 2008 (UTC)
Shouldn't this be optional, when the book cover itself clearly shows the title? See for example: Tom Brown's Schooldays. I suggest an optional "title=off" parameter in such instances. JGHowes talk - 16:24, 26 January 2008 (UTC)
I've just noticed that every other infobox I've seen- {{ Infobox VG}} to {{ Infobox film}}, {{ Infobox Celebrity}} and even {{ Infobox album}} stick the headers inside. For consistency's sake, shouldn't the books infobox follow suit? David Fuchs ( talk) 00:41, 29 January 2008 (UTC)
Instead of wrapping within the width of the infobox, my browser is showing them on one line, which for long titles is bad, pushing the box to the left. See, e.g., Manufacturing Consent: The Political Economy of the Mass Media. Maybe this is just a problem with my browser (Firefox 3.b3/OSX)?
Suggest adding Awards= davidwr/( talk)/( contribs)/( e-mail) 18:42, 21 March 2008 (UTC)
I have the code correct and I just can't get the Infobox Book to display on my mediawiki. I am 2 days into this problem and I am pulling my hair out over this issue. HELP!!! Alpinevp ( talk) 19:09, 3 April 2008 (UTC)Alpinevp
{{ editprotected}}
No-brainer here. If an article's title matches that of the book in question, it should be possible to omit the {{{name}}} attribute and have it be inherited. Requested edit:
|above= {{{name}}}
becomes
|above= {{{name|{{PAGENAME}}}}}
If {{{name}}} is specified it'll still be preferred. Chris Cunningham (not at work) - talk 14:13, 16 May 2008 (UTC)
Is there any point in this? No reader of an article about a book is likely to have to have the concept of a country or a language explained to them. This just creates a huge number of valueless links. Colonies Chris ( talk) 21:03, 18 May 2008 (UTC) {{ editprotected}} Please remove the wikilinking of the 'Country' and 'Language' headers. Colonies Chris ( talk) 12:40, 22 May 2008 (UTC)
{{
Editprotected}}
I suggest the original title field have the same italics as the title field, for
WP:MOS consistency. At present, titles are italicized while original titles are not: thus, "
One Hundred Years of Solitude", but "Cien Años de Soledad".
Skomorokh 13:16, 21 June 2008 (UTC)
Philly jawn ( talk) 15:42, 24 July 2008 (UTC)
Hi all,
Currently I'm seeing the infobox in Eragon displaying brokenly in Firefox 3 and Chrome (although it works perfectly in IE 7), and I have narrowed it down to the isbn parameter of this infobox containing a <br /> html tag for a linebreak. Is anyone else seeing the same problem (a span tag with a mass of parameters displaying as text above the book cover image)? Can anyone figure out what it is about ISBN auto-parsing and <br /> tags that might cause this? -- Stormie ( talk) 23:40, 16 September 2008 (UTC)
←Anyone fancy tackling this, please? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 16:05, 8 December 2008 (UTC)
Should the infobox also have a webpage field? Many books have an official webpage set up by its publisher, such as Gay Kids – Kule barn som også finnes. __ meco ( talk) 10:04, 7 November 2008 (UTC)
It is normal to set 200px for book cover images to ensure reasonable conformity of sizing. If there are other issues you are trying to assert please indicate clearly what they are (ideally non-technically) so we can understand what point you are trying to make. :: Kevinalewis : (Talk Page)/ (Desk) 09:53, 26 November 2008 (UTC)
Adherence to the Manual of Style is part of the GA criteria, which is why I made the edit. From
MOS:QUOTE
MOS:IMAGE:
* You should generally use the thumbnail option ("thumb") available in the image markup. This results in a default width of 180 pixels (140 pixels if the "upright" option is used as well), although logged-in users can set a different default in their user preferences. As a rule images should not be forced to a fixed size (i.e. one that overrides the default). Where size forcing is appropriate, larger images should generally be a maximum of 550 pixels wide, so that they can comfortably be displayed on 800x600 monitors. Examples of images where size forcing may be appropriate include:
- Images with aspect ratios that are extreme or that otherwise distort or obscure the image subject(s)
- Detailed maps, diagrams or charts
- Images in which a small region is relevant, but cropping to that region would reduce the coherence of the image
- Images containing a lot of detail, or where the detail is important to the article
- Lead images, which should usually be no larger than 300px. under discussion
This, to me is unambiguous; there is no policy-based justification for specifying a image resolution lower than 300px, because it restricts the readers choice (although when the image itself is of a lower resolution than the infobox default, size should be specified so that it is not stretched). The previous version may have seemed oversized because the original upload was too large for fair use purposes (i.e. greater than 300x300px), and I had tagged it with {{ reduce}}. If "most novel-related pics are set to 200px", then they seem to be out of line with the manual of style. If there is a good reason for this, I suggest altering the default size of {{ Infobox Book}}, but I suspect there is not. the skomorokh 12:03, 26 November 2008 (UTC)
So, with regard to non-free images of book covers, my preference is to upload the best quality image, then slap a {{ reduce}} on it. The image is then cropped to an appropriate size per WP:NFCC criterion 3b, which means it can be included in full in the infobox. This avoids stretching small images to a higher default ( example), ensures all cover images are in compliance with NFCC, and establishes a convention for cover images.
A possible improvement to this would be to have infoboxes force images to show at thumbnail size, which would allow all readers to view it at their resolution of choosing, but I am not sure this is technically feasible. the skomorokh 16:21, 26 November 2008 (UTC)
{{ editprotected}}
Why doesn't the ISBN link in the infobox at Juma and the Magic Jinn lead to somewhere other than ISBN? It would be better if the ISBN number were active in the infobox as it is template:cite book. -- Suntag ☼ 18:22, 7 December 2008 (UTC)
{{
edit protected}}
template. Please agree on some way to fix it.--
Aervanath (
talk) 08:27, 28 January 2009 (UTC)
OK in response to Aervanath issues I have done some research - quite a lot in fact. First I checked how we could test for initial characters, either digits or "ISBN". For that we would need the new "#sub" function (not currently in wikipedia). Second I checked how we could test for string length. For that we would need the new "#len" function (also not in wikipedia). So I worked up various realistic (and used types) of example using both the previous code logic and the current logic. (For completeness I left in my #sub and #len checks)
<!-- START OF WikiMedia test TEMPLATE the examples below invoke this code--> <!--Special functions in MediaWiki needed to make the Length or SubString tests our debate requires. --> {{#len:{{{isbn|}}}}}<br/> {{#sub:{{{isbn|}}}|0|4}} <!--- END OF WikiMedia test TEMPLATE -->
Sample of single ISBN without prefix to test WikiMedia code required
{{#len:1234567890}} |
As you can see these are not interpreted - they are just included as characters meaning MediaWiki doesn't yet recognise them as functions in this version.
<!-- START OF Books test TEMPLATE the examples below invoke this code--> <!--Code like it used to stand before multiple ISBN were broken.--> {{{isbn|}}} <br/><br/> <!--Code like it currently stands. --> {{{{#if:{{{isbn|}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }}}} <br/><br/> <!--- END OF Books test TEMPLATE -->
1. Sample of single ISBN without prefix
Previous code = 1234567890
Current code = {
1234567890 }
|
2. Sample of single ISBN with prefix
Previous code =
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum
Current code = { [[Special:Booksources/
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum|
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum]] }
|
3. Sample of multiple ISBNs without prefix
Previous code = 1234567890, 1234567890, 1234567890
Current code = {
1234567890, 1234567890, 1234567890 }
|
4. Sample of multiple ISBNs with prefix
Previous code =
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum
Current code = { [[Special:Booksources/
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum|
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum,
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum]] }
|
5. Sample of multiple ISBNs without prefix - and extra infomation
Previous code = 1234567890 (vol 1), 1234567890 (vol 2), 1234567890 (vol 3)
Current code = {
1234567890 (vol 1), 1234567890 (vol 2), 1234567890 (vol 3) }
|
6. Sample of multiple ISBNs with prefix - and extra infomation
Previous code =
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 1),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 2),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 3)
Current code = { [[Special:Booksources/
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 1),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 2),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 3)|
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 1),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 2),
ISBN
1234567890 Parameter error in {{
ISBN}}: checksum (vol 3)]] }
|
As you might be able to see:
Example 1 (single ISBN without prefix) : appears to work better with the current code - however the old is not "broken"
n.b. Bear in mind that this isn't the most frequent input to this parameter.
Example 2 (single ISBN with prefix) : appears to work the same regardless of code
n.b. Bear in mind that this is probably the most frequent input to this parameter.
Example 3 (multiple ISBN without prefix) : appears be broken with the current code - however the old is not "broken"
Example 4 (multiple ISBN with prefix) : appears be broken with the current code - however the old works
Example 5 (multiple ISBN without prefix and extra text) : appears be broken with the current code - however the old is not "broken"
Example 6 (multiple ISBN with prefix and extra text) : appears be broken with the current code - however the old works
Conclusions - On balance I would say that the old (previous) code satisfies more of these situations and at very least breaks nothing!. I recommend that we return to it until the version of MediaWiki is brought up to the point that is can handle the logic required to support the tests necessary. :: Kevinalewis : (Talk Page)/ (Desk) 12:38, 28 January 2009 (UTC)
Ok, I found another way which will handle ISBNs containing an X:{{ editprotected}}
| data17 = {{#switch:{{#expr:({{{isbn}}})*0}} | 0 | {{#expr:X}} = [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] | #default = {{{isbn}}} }}
This once again attempts to do arithmetic with the ISBN, then multiply by zero. This will have a result of zero but only if there is no error before that. If the result is zero or if the error indicates the letter X, it adds a link to the input, otherwise leaves it alone. If it starts with the letters "ISBN" or if there are multiple numbers separated by white-space, the #expr will produce different error messages which will not match the one for the letter X, so these would also be left alone. — CharlotteWebb 18:15, 30 January 2009 (UTC)
{{
editprotected}}
|label18= [[Online Computer Library Center|OCLC]]
Can the above link be changed to avoid a redirect and also to provide a meaning for the acronym, if only in the url. ~ Paul T +/ C 06:50, 14 January 2009 (UTC)
{{
Editprotected}}
Can we add a first line field? It seems quite common for analysis on books to mention it, and would help with people searching for a book. --
h2g2bob (
talk) 19:42, 25 January 2009 (UTC)
{{
edit protected}}
template. Thanks,
PeterSymonds (
talk) 00:37, 27 January 2009 (UTC)I've used this template for a translated book, the Finnish classic The Year of the Hare, and found it hard to use for this in a satisfying way. Also, the current documentation has no canonic example of how to handle such books. So here's a quick case study of the workarounds I used.
I wanted to be able to include the main data for both original and translated editions. First I ended up with this:
{{Infobox Book | name = The Year of the Hare | title_orig = Jäniksen vuosi | translator = [[Herbert Lomas]] | image = | image_caption = | author = [[Arto Paasilinna]] | cover_artist = | country = [[Finland]] | language = [[Finnish language|Finnish]] | genre = [[picaresque]], [[comedy]], [[satire]] | publisher = Helsinki: [[:fi:Weilin+Göös|Weilin+Göös]] ''(Finnish 1st ed.)''<br>London: [[Peter Owen Publishers|Peter Owen]] ''(English 1st. ed)'' | pub_date = 1975 | english_pub_date = March 1995 | media_type = Print (Hardcover) | pages = 182 p. ''(Finnish 1st ed.)''<br>135 p. ''(English 1st ed.)'' | oclc = 32340007<!--(English 1st ed.) / 2195299 (Finnish 1st ed.)--> }}
Author | Arto Paasilinna |
---|---|
Original title | Jäniksen vuosi |
Translator | Herbert Lomas |
Language | Finnish |
Genre | picaresque, comedy, satire |
Publisher | Helsinki:
Weilin+Göös (Finnish 1st ed.) London: Peter Owen (English 1st. ed) |
Publication date | 1975 |
Publication place | Finland |
Published in English | March 1995 |
Media type | Print (Hardcover) |
Pages | 182 p. (Finnish 1st ed.) 135 p. (English 1st ed.) |
OCLC | 32340007 |
I find the results (see at right) so-so:
Notes:
(Cont'd below.)
So I thought of piling two infoboxes instead, like this:
{{Infobox Book | name = Jäniksen vuosi<br><small>(1st original edition)</small> | image = | image_caption = | author = [[Arto Paasilinna]] | cover_artist = | country = [[Finland]] | language = [[Finnish language|Finnish]] | genre = [[picaresque]], [[comedy]], [[satire]] | publisher = Helsinki: [[:fi:Weilin+Göös|Weilin+Göös]] | pub_date = 1975 | media_type = Print (Hardcover) | pages = 182 p. | isbn = 951-35-1252-5 | oclc = 2195299 }} {{Infobox Book | name = The Year of the Hare<br><small>(1st translated edition)</small> | title_orig = Jäniksen vuosi | translator = [[Herbert Lomas]] | image = | image_caption = | author = [[Arto Paasilinna]] | cover_artist = | country = tr. from [[Finland]] | language = tr. from [[Finnish language|Finnish]] | publisher = London: [[Peter Owen Publishers|Peter Owen]] | pub_date = tr. from 1975 | english_pub_date = March 1995 | media_type = Print (Hardcover) | pages = 135 p. | isbn = 0-7206-0949-6 | oclc = 32340007 }}
Author | Arto Paasilinna |
---|---|
Language | Finnish |
Genre | picaresque, comedy, satire |
Publisher | Helsinki: Weilin+Göös |
Publication date | 1975 |
Publication place | Finland |
Media type | Print (Hardcover) |
Pages | 182 p. |
ISBN | 951-35-1252-5 |
OCLC | 2195299 |
Author | Arto Paasilinna |
---|---|
Original title | Jäniksen vuosi |
Translator | Herbert Lomas |
Language | tr. from Finnish |
Publisher | London: Peter Owen |
Publication date | tr. from 1975 |
Publication place | tr. from Finland |
Published in English | March 1995 |
Media type | Print (Hardcover) |
Pages | 135 p. |
ISBN | 0-7206-0949-6 |
OCLC | 32340007 |
(Cont'd below.)
I don't know how the current scheme could be developed to better handle translated books (single or dual box) but at least this is a complete example with solutions. (At any rate, guidance about how to handle translated books is missing.) 62.147.36.198 ( talk) 17:54, 30 January 2009 (UTC)
{{
editprotected}}
I keep coming across the terms paperback, hardcover/hardback and audiobook inappropriately capitalised in this template. I'm not sure what the source of this is, but we could start addressing the issue by correcting the example here to place the parenthesised term in all lowercase letters. Thanks,
Skomorokh 01:47, 14 March 2009 (UTC)
I think it would be a good idea to add a field for the Library of Congress call number. These number aren't subjective, as they are found on the copyright pages of most books, and would be helpful to people with access to libraries that use the LOC system (such as many university libraries) in quickly locating a book of interest. -- Phantom784 ( talk) 04:48, 24 July 2008 (UTC)
As far as I can see from browsing through the publishing details of a couple of dozen of my books, the "Library of Congress" number appears only in books published in the USA. Are we also to include similar information for other countries? (E.g. the Library and Archives Canada Cataloguing information, the British Library cataloguing information, etc etc . . .) If not is there any good reason for giving the USA special treatment? JamesBWatson ( talk) 20:32, 23 April 2009 (UTC)
{{ editprotected}} I am stunned. This is a long standing element of the infobox and is documented and designed along with the rest of the box to detail the "First edition" or at the least the most literary notable edition. Why remove the ISBN even for a moment. There should be no debate, The ISBN should be one, only one and "NA" if the publication comes from before 1966 (or thereabouts). And even if there is a debate leave the ISBN as a single until the completion of the debate. :: Kevinalewis : (Talk Page)/ (Desk) 06:07, 17 September 2008 (UTC)
{{
editprotected}}
I noticed some articles have a clickable ISBN and others do not, depending on whether the letters "ISBN" are part of the parameter, but this can be fixed by changing
|data17= {{{isbn|}}}
to
|data17= {{#if:{{{isbn|}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }}
Note that Special:Booksources ignores anything which isn't a number, so this won't break existing uses (except those with multiple ISBNs). — CharlotteWebb 22:26, 1 November 2008 (UTC)
If we really need multiple ISBNs the best thing would be to add separate parameters for that. Might be a good AWB task for someone bored. Until then you can try this:{{
editprotected}}
| data17 = {{#if:{{{isbn|}}} | {{#iferror: {{#expr:{{{isbn}}}}} | {{{isbn}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }} }}
This approach will only auto-link if {{#expr: {{{isbn}}} }}
makes no error, i.e. if it resembles valid arithmetic, in this case containing only numbers and hyphens (interpreted as minus sign). Any value blank or containing a letter will remain unchanged which means valid ISBNs uncommonly ending with "X" or some other oddity need to be handled elsewise, but this would still be better than the current state. —
CharlotteWebb 19:56, 28 January 2009 (UTC)
Can a field be added for the Library of Congress website ( http://catalog.loc.gov) ? For example, the permalink for Wikipedia: The Missing Manual is http://lccn.loc.gov/2008275632 Cirt ( talk) 10:13, 8 October 2008 (UTC)
I think much the same applies here as in the section "Library of Congress" above. JamesBWatson ( talk) 20:34, 23 April 2009 (UTC)
"Media type" is incredibly unhelpful - it should be deleted to prevent useless information from clogging up the template, since pretty much every book that's notable enough for Wikipedia will have both hardcover and paperback editions by now. "Size and weight" isn't even documented, ditto. Seriously, who on earth thought that weighing a book was a good idea for this infobox? Shoemaker's Holiday ( talk) 21:19, 16 April 2009 (UTC)
Can we get the category changed to [[Category:Book infobox templates| ]] since it is of the highest importance in that category? Ta. -- Alan Liefting ( talk) - 02:54, 27 April 2009 (UTC)
{{
editprotected}}
Requesting sync with the sandbox for some minor code cleanup. This is preliminary work before getting on with merging {{ infobox book in series}} into here. Chris Cunningham (not at work) - talk 10:52, 6 July 2009 (UTC)
{{ editprotected}} For media_type, is it possible to remove the lowercase template? It makes the formatting look bad in articles where we've placed capitals. (such as the first letter) If it's left that way for a reason, can someone please explain? blurred peace ☮ 23:27, 23 May 2009 (UTC)