Template talk:Book list
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
Created
[edit]A tool to standardize and promote comprehensive bibliographies.
Based on the existing templates template:Infobox book & template:Episode list
An example of a bibliography in progress can be found at the Stephen King bibliography.
There is an ongoing effort to add a Bibliography link to the template:Infobox Writer.
--Deflective 02:00, 23 June 2007 (UTC)
Slight more versatile line color code
[edit]In an effort to make things more "user friendly" (read "harder to mess up"), may I suggest that you alter this code...
{{#switch: {{lc:{{{line_color|Љ}}}}} | novel=#93B8C4 | shortstory=#AFDCEC | poetry=#FFF380 | play=#CCFB5D | screenplay=#A0C544 | nonfiction=#636363 | comic=#CC6666 | unpublished=#DBDBDB | Љ=#CCCCFF | {{{line_color}}} }}
...with this code...
{{ifeqor | compare={{{line_color|Љ}}} | novel | novella | novelette | novellette | book | output=#93B8C4 | default= {{ ifeqor | compare={{{line_color|Љ}}} | shortstory | short story | shortstorycollection | short story collection | short storycollection | collection | output=#AFDCEC | default= {{ifeqor | compare={{{line_color|Љ}}} | poetry | poem | poetry collection | poetrycollection | poem collection | poemcollection | output=#FFF380 | default= {{ifeqor | compare={{{line_color|Љ}}} | play | theatrical play | theatricalplay | output=#CCFB5D | default= {{ifeqor | compare={{{line_color|Љ}}} | screenplay | screen play | movie script | output=#A0C544 | default= {{ifeqor | compare={{{line_color|Љ}}} | nonfiction | non-fiction | non fiction | output=#636363 | default= {{ifeqor | compare={{{line_color|Љ}}} | comic | comicbook | comic book | comic script | comicbook script | comic book script | comicscript | comicbookscript | comic bookscript | output=#CC6666 | default= {{ifeqor | compare={{{line_color|Љ}}} | unpublished | un published | notpublished | not published | output=#DBDBDB | default= {{#ifeq: {{{line_color|Љ}}} | Љ | #CCCCFF | {{{line_color}}} }} }} }} }} }} }} }} }} }}
While I realize that it would take up more space in the coding, it would allow for users who accidentally place spaces in the input value as well as people who aren't paying attention and use a similar name that isn't quite correct. We shouldn't pander to people who can't pay attention, but — at the same time — I expect people not to pay attention and would rather not have their mistakes reflect on Wikipedia; thus, idiot-proof templates (or as close to it as we can get).
Thank you. hornoir (talk) 15:49, 6 January 2009 (UTC)
Book number and title align
[edit]{{editprotected}}
I like to make a change to added a book number column to the left of title and the option to change the title align from "center" to "left" to be inline with {{Episode list}}. d'oh! talk 07:17, 29 July 2010 (UTC)
- Additionally, in the sandbox I have made changes for the sublist feature I just completed. d'oh! talk 12:17, 29 July 2010 (UTC)
- I think the book number column is fine. Why an option to change the title align instead of just making it standard? EpisodeList doesn't allow such a change as far as I can tell. Why is a sublist option needed? You argued at RFPP that this template isn't used that much, so I haven't seen any usage yet that would indicate the need for a transclusion of an abbreviated list in a main article. Also, why does your sandbox version change the top matter of the code? -- AnmaFinotera (talk ~ contribs) 13:05, 29 July 2010 (UTC)
- With the align, I wanted {{Book list}} to follow {{Episode list}}, in the case of Goosebumps where both templates are used and it may not look good together but it doesn't matter too much. Going back to Goosebumps again with sublist, as sublist is badly needed here (you can see I started to use sublist) and I wanted to add the feature to {{Book list}} in-case other editors might need it. d'oh! talk 13:27, 29 July 2010 (UTC)
- I think changing the alignment is fine, I was asking why make it optional at all though rather than just change it to center to be consistent with the ep list. :-) Hmmm...I can see where it would be useful to that (and you are a brave brave soul for tackling that mess! *grin*. Going with the more standard sublist would be better than doing just a custom template for it, so that would be fine. I'm guessing it is based on the episode list's sublist code? -- AnmaFinotera (talk ~ contribs) 13:34, 29 July 2010 (UTC)
- I just hope I am still sane coming out of it. :P I made it a option so I didn't change the style too much in-case it creates issues for other articles. Yes, the sublist is a copy of episode list. d'oh! talk 13:55, 29 July 2010 (UTC)
- Done although there seem to be a couple of other changes made which were not explained here (e.g. the change to the colors at the top of the code), so this change may be reverted if it proves to be at all controversial. — Martin (MSGJ · talk) 18:29, 6 August 2010 (UTC)
- I just hope I am still sane coming out of it. :P I made it a option so I didn't change the style too much in-case it creates issues for other articles. Yes, the sublist is a copy of episode list. d'oh! talk 13:55, 29 July 2010 (UTC)
Edit request from Program Death, 12 April 2011
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
My suggestion is to put in alt_isbn because a lot of books have more than one. the hardcover is different then than the paper back. If you were to add then when people put these in wiki-pages they can put both.
Program Death (talk) 19:52, 12 April 2011 (UTC)
- Please provide a specific instruction as to what you want changed in this template (ie please change X to Y) and provide consensus for the change. Thanks Woody (talk) 21:35, 15 April 2011 (UTC)
Please remove indef protection
[edit]This is used in less than 100 articles. Any reason it's indef fully protected? Nikthestoned 11:08, 28 October 2011 (UTC)
Quirkiness
[edit]Sometimes the "short summary" row doesn't span all columns, as in The Pearl Saga. But it works correctly in other articles like Scary Stories to Tell in the Dark and The Accursed Kings. Also, is there a reason why the table aligns center by default when the wikitable is set at less than 100%, as in The Accursed Kings? Or is this normal?— TAnthonyTalk 20:39, 22 June 2015 (UTC)
- Fixed by the edit request described below. – Jonesey95 (talk) 16:47, 25 March 2016 (UTC)
Error message and tracking category for invalid ISBNs
[edit]I have added an error message and tracking category for invalid ISBNs. – Jonesey95 (talk) 04:03, 11 March 2016 (UTC)
Edit required
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Remove the bold around the title per MOS:BOLD. Also required is a change from:
|<tr><td colspan="{{#expr:{{#if:{{{book_number|}}}|0|1}}+1+{{#if:{{{author|}}}|0|1}}+{{#if:{{{publisher|}}}|0|1}}+{{#if:{{{publish_date|}}}|0|1}}+{{#if:{{{subject|}}}|0|1}}+{{#if:{{{genre|}}}|0|1}}+{{#if:{{{aux1|}}}|0|1}}+{{#if:{{{aux2|}}}|0|1}}+{{#if:{{{aux3|}}}|0|1}}+{{#if:{{{isbn|}}}|0|1}}}}" style="border-bottom:3px solid {{#switch: {{lc:{{{line_color|}}}}}
to:
|<tr><td colspan="11" style="border-bottom:3px solid {{#switch: {{lc:{{{line_color|}}}}}
Alex|The|Whovian? 04:35, 25 March 2016 (UTC)
- Please make the changes in the template's sandbox, if you know how, and then copy a page like Italo Calvino into your own sandbox to show how it would render differently using the sandbox version compared to the existing version. If you do not know how to do these things, reply here and I will do it when I have time. Thanks. – Jonesey95 (talk) 07:21, 25 March 2016 (UTC)
- @Jonesey95: Code modified in the sandbox; results are on the test cases page. Alex|The|Whovian? 07:35, 25 March 2016 (UTC)
- Done. Thanks for testing the code first. I applied it to a few more pages just to see what it would do, and it looked fine to me. – Jonesey95 (talk) 14:19, 25 March 2016 (UTC)
- @Jonesey95: Code modified in the sandbox; results are on the test cases page. Alex|The|Whovian? 07:35, 25 March 2016 (UTC)
- Thanks! I also noticed that
|title=
doesn't italicize automatically. Should it, or no? — TAnthonyTalk 14:24, 25 March 2016 (UTC)- It certainly should. I've updated the sandbox to remove italics when added manually, and then automatically italicize the title. Cases on the test cases page. On a sidenote, why is this template protected? It's only used on just over 100 pages. Alex|The|Whovian? 14:30, 25 March 2016 (UTC)
- Done again. I wondered if there was a way to do that. Nicely done.
- It certainly should. I've updated the sandbox to remove italics when added manually, and then automatically italicize the title. Cases on the test cases page. On a sidenote, why is this template protected? It's only used on just over 100 pages. Alex|The|Whovian? 14:30, 25 March 2016 (UTC)
- Thanks! I also noticed that
- As for the protection level, you'd have to ask PeterSymonds why it was protected in 2010. Fuhghettaboutit reduced the protection to template-editor level when that user right was added to WP, which is why I was able to edit it. – Jonesey95 (talk) 16:47, 25 March 2016 (UTC)
- Bit hard to, since PeterSymonds hasn't edited since April 2013... Alex|The|Whovian? 05:45, 26 March 2016 (UTC)
- As for the protection level, you'd have to ask PeterSymonds why it was protected in 2010. Fuhghettaboutit reduced the protection to template-editor level when that user right was added to WP, which is why I was able to edit it. – Jonesey95 (talk) 16:47, 25 March 2016 (UTC)
ISBN_note not working
[edit]The note is not displayed (see Guin Saga, for example.) Also, can there be added another | isbn = parameter that does not display ISBN. analogous to {{ISBNT| ? Smeagol 17 (talk) 09:15, 5 April 2023 (UTC)
- @Smeagol 17 That's because the parameter is
|isbn_note=
, not|ISBN_note=
; parameters are case-sensitive. -- Alex_21 TALK 09:35, 5 April 2023 (UTC)- Thanks. But would be good to have a ISNN-less parameter. Maybe |isbnt ? Also, here
makes a much wider gap if used in isbn_note then in graphic novel list.Smeagol 17 (talk) 09:50, 5 April 2023 (UTC)- We probably do not need "ISBN" repeated in every cell in the "ISBN" column. {{Graphic novel list}} does not show the characters "ISBN" in the cells; see List of Sailor Moon chapters and Guin Saga#Manga for an example.
- I have adjusted the sandbox to use {{ISBNT}}, which does not show the characters "ISBN" every time. See Template:Book list/testcases for an example. – Jonesey95 (talk) 12:44, 6 April 2023 (UTC)
- Yeah, I think this would be better. Smeagol 17 (talk) 10:54, 9 April 2023 (UTC)
- Seeing no objections on this poorly watched talk page, I have made this change. We'll see if it causes any problems. – Jonesey95 (talk) 16:24, 11 April 2023 (UTC)
- Yeah, I think this would be better. Smeagol 17 (talk) 10:54, 9 April 2023 (UTC)
- Thanks. But would be good to have a ISNN-less parameter. Maybe |isbnt ? Also, here