Jump to content

Template talk:Infobox book: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 137: Line 137:


::::Nudge. [[User:Pigsonthewing|Andy Mabbett]] | [[User talk:Pigsonthewing|Talk to Andy Mabbett]] 16:50, 8 August 2007 (UTC)
::::Nudge. [[User:Pigsonthewing|Andy Mabbett]] | [[User talk:Pigsonthewing|Talk to Andy Mabbett]] 16:50, 8 August 2007 (UTC)
:::::Unfortunately, there is no way to automatically 'split' a name in Wikipedia... there are no string functions. Thus, the only way to get the names into separate first and last parameters would be to build a bot, or do it manually for every page. The #time: parserfunction can change date formats around. For example, <nowiki>{{#time: c|10 June 2007}}</nowiki> produces {{#time: c|10 June 2007}}. The 'c' indicates that ISO8601 format should be used. A 'Y' instead of 'c' would return just the four digit year. However, this might run into trouble with the date parameter values on some templates. For instance, if a range (e.g. 1954-1955) were used in the date parameter <nowiki>{{#time: c|1954-1955}}</nowiki> would return {{#time: c|1954-1955}}. --[[User talk:CBDunkerson|CBD]] 12:26, 10 August 2007 (UTC)

Revision as of 12:26, 10 August 2007

WikiProject iconBooks Template‑class
WikiProject iconThis 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.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconNovels Template‑class High‑importance
WikiProject iconThis 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, please visit the project page, where you can join the project and contribute to the general Project discussion to talk over new ideas and suggestions.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
HighThis template has been rated as High-importance on the project's importance scale.
WikiProject iconChildren's literature Template‑class
WikiProject iconThis 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.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Tasks you can do:

Here are some open tasks for WikiProject Children's literature, an attempt to create and standardize articles related to children's literature. Feel free to help with any of the following tasks.

Things you can do
Archive
Archives


Change to Pub date from Release date

This is exactly what I was afraid off - the change going off half cocked. We need to keep everything consistent and also in line with the wording of the "Short story" infobox. Could someone please make the change to the relevant two line, I have copied in here the two lines from the already changes "short story" template so I believe they should work as found. {{editprotected}} <tr><th>Publication date</th><td>{{{pub_date|{{{release_date|}}}}}}</td></tr><!--
-->{{#if:{{{english_release_date|}}}{{{english_pub_date|}}}|<tr><th>Published in English</th><td>{{{english_pub_date|{{{english_release_date}}}}}}</td></tr>}}<!--

These should go instead of the currect "publish_date" and "english_release_date" lines

Regards :: Kevinalewis : (Talk Page)/(Desk) 08:08, 20 June 2007 (UTC)[reply]

done. — Carl (CBM · talk) 16:04, 22 June 2007 (UTC)[reply]

ISBN link?

Why doesn't the ISBN entry create the hyperlink like when you have it explictly in the article? (ex. "ISBN 0345340744" makes a useful link in the article but when in the infobox, no luck) --MarsRover 22:59, 5 July 2007 (UTC)[reply]

It does; all you need do is use the "ISBN" prefix as you would in the article. This is std WikiMedia as far as I am aware. It isn't a hyperlink as such but a wikilink to a specific wiki isbn search page. :: Kevinalewis : (Talk Page)/(Desk) 08:10, 6 July 2007 (UTC)[reply]
Thanks, it does but then the infobox then has ISBN label duplicated. Any way around that? --MarsRover 19:05, 6 July 2007 (UTC)[reply]
Unfortunately, no. Wikipedia has not (yet) installed string functions (like removing/replacing part of a string). -- SatyrTN (talk | contribs) 14:02, 16 July 2007 (UTC)[reply]
Then change the infobox so the headings are handled differently and the ISBN comes up as a real ISBN. I mean, duh. DreamGuy 06:25, 17 July 2007 (UTC)[reply]

Dedicated to/In memoriam

I suggest adding this line into the template. What do others reckon?--Svetovid 10:42, 6 July 2007 (UTC)[reply]

Interesting idea - not sure what to think on it myself, it is such a large template already. :: Kevinalewis : (Talk Page)/(Desk) 16:17, 6 July 2007 (UTC)[reply]
Don't people dedicate books just using the first name of the person? IMO, doesn't sound too useful. --MarsRover 19:09, 6 July 2007 (UTC)[reply]

Pretty trivial info for an infobox. Why not add wordcount or number of illustrations or weight of the book too while we are at it? DreamGuy 06:23, 17 July 2007 (UTC)[reply]

Amazon

why not add a link on this to allow to search for the book on amazon? --Stinkfly 12:35, 15 July 2007 (UTC)[reply]

Because if you list an ISBN Wikipedia does that already. --P3d0 18:17, 15 July 2007 (UTC)[reply]
And if you did this outside that mechanism that would be essentially advertising. Which is not what wikipedia is about. :: Kevinalewis : (Talk Page)/(Desk) 08:14, 16 July 2007 (UTC)[reply]

ISBN

Is there some reason the template doesn't turn the ISBN code into a link to the page that allows people to search for that ISBN on other sites? Seems pretty silly to not have that. DreamGuy 06:22, 17 July 2007 (UTC)[reply]

{{editprotected}}

I see from above that people who did the coding got all confused or something....

Not they didn't, they just were aiming at a different end result. Be kind! :: Kevinalewis : (Talk Page)/(Desk) 09:50, 17 July 2007 (UTC)[reply]
I was being kind by assuming they were just confused and not intentionally choosing to come up with an end result which was impractical for no good reason. If they did that on purpose then they really ought to rethink their priorities. DreamGuy 22:12, 17 July 2007 (UTC)[reply]

Here's how to fix it:

Remove the line

{{#if:{{{isbn|}}}|<tr><th>[[International Standard Book Number|ISBN]]</th><td>{{{isbn|}}}</td></tr>}}


Add the line:

{{#if: {{{isbn|}}} |<tr><td colspan=2 style="text-align: center">ISBN {{{isbn|}}}</td></tr>}}

I can see how this would work for the lazier editor - BUT it would break ALL the existing template usage article pages. The change aim could be achieved I'm sure but it needs to take account of pages the currently include the "= ISBN 9-999-99999-2" style format and those that attempt to use the "= 9-999-99999-9" style format. All editors currently need to do is precede the number with "ISBN" which is easy. I can see the value in allowing both but any change needs to work for both formats. :: Kevinalewis : (Talk Page)/(Desk) 09:50, 17 July 2007 (UTC)[reply]
Preceding the number with anything nowiki is completely impractical -- the whole point is to have the template do the grunt work, and if it doesn;t there's no point to even using the template in the first place, as you could just hand code the whole thing each time. And I don't understand how the two different ISBN formats would not just automatically work the way I suggest. DreamGuy 22:12, 17 July 2007 (UTC)[reply]
In actual fact this also alters the tidy alignment of columns which we currently have so we need some concensus on whether that is desirable. :: Kevinalewis : (Talk Page)/(Desk) 09:54, 17 July 2007 (UTC)[reply]
It doesn't alter any tidy alignment of columns in that we already have image captions centered so can have something else up there centered, AND give it the visibility it needs. Alleged tidiness shouldn't destroy the practical function of the template. And, honestly, this particular template is rather ugly to begin with, so certainly can be reworked.
We already had several people above say the ISBN link should work, and that's what this change would do. There's your consensus right there. DreamGuy 22:12, 17 July 2007 (UTC)[reply]
No, actually you have had a number of people express a desire for the same result you are pushing for, which I have no problem with. What we are actually debating to the best way to deliver what is requested. The agreement is that the "= ISBN" with the extra "ISBN" should not be necessary. I don't know that anyone disputes that. The concensus we need to on the eventual infobox appearance or layout and secondly on the technical method of coding. This second part ideally should take account of the "vast" majority of articles that make use of the "= ISBN" article coding. I think we should debate the resultant appearance first and then consider if this can be technically achieved second (with or without Bot mass changes to existing articles.) Once initial point on layout, what ever we do on ISBN we should do also with OCLC. :: Kevinalewis : (Talk Page)/(Desk) 07:40, 18 July 2007 (UTC)[reply]

It seems to me that this would need not only a code change but a bot job to correct the current uses. In any case, since this will have an effect on all the pages that use the template, it needs more thorough discussion and consensus than it has received. — Carl (CBM · talk) 23:14, 17 July 2007 (UTC)[reply]

The Bot would only be needed is we decided on a layout and a technical coding change that left the existing article markup out on a limb. Personally I think we should be able to come up with something that could avoid needing to do that. :: Kevinalewis : (Talk Page)/(Desk) 07:40, 18 July 2007 (UTC)[reply]

Hmmm, how would this affect the boxes having multiple ISBNs f.ex. in Oryx_and_Crake? feydey 15:58, 18 July 2007 (UTC)[reply]

Very good point, I would hope the coding would be able to tell that the first characters were "ISBN" and thus the processing should continue as now. :: Kevinalewis : (Talk Page)/(Desk) 08:27, 19 July 2007 (UTC)[reply]

Size of image

What size is the image of the cover displayed at? I am about to resize some scanned images of book covers, and would like to know the size. Say the displayed size was 200 px wide (like album covers) then I would produce images exactly 400 px wide. This would make the rendering easier. 216.123.197.27 18:42, 17 July 2007 (UTC)[reply]

COinS

Any chance that this template uses COinS, in the same way as {{cite book}}? Andy Mabbett | Talk to Andy Mabbett 11:06, 18 July 2007 (UTC)[reply]

I have had a look at COinS but you might need to expain a bit more - must be being a bit dense this morning. :: Kevinalewis : (Talk Page)/(Desk) 08:32, 19 July 2007 (UTC)[reply]
Try Wikipedia:WikiProject Microformats/COinS. Andy Mabbett | Talk to Andy Mabbett 10:05, 19 July 2007 (UTC)[reply]
Ok, not sure how {{cite book}} etc actually do the necessary though. To me it looks as though the template documentation just asserts that id does. I see nothing obvious in the code that gives a clue as to "how" it does it. So how to know whether this template complies? :: Kevinalewis : (Talk Page)/(Desk) 11:21, 19 July 2007 (UTC)[reply]
[Belated response - apologies] you need a coins aware browser tool, such as Zotero or OpenURL Referrer extensions for Firefox. Andy Mabbett | Talk to Andy Mabbett 10:38, 1 August 2007 (UTC)[reply]

Edit protected request

{{edit protected}}

On the final line, Please replace {{/doc}} with {{Template doc}}. Thank you. Andy Mabbett | Talk to Andy Mabbett 11:08, 18 July 2007 (UTC)[reply]

The doc page has the code
<includeonly>{{Template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
which I prefer, as it is not as garish as the big icon and green box. I usually leave templates with whichever system was put in place first, since I doubt there is complete agreement about which system is better. — Carl (CBM · talk) 14:47, 18 July 2007 (UTC)[reply]

Title color

I recently had a look at the Book infobox on FR and frankly, I think it's more aesthetically pleasing. Take a look at fr:L'Assommoir and en:L'Assommoir to see what I mean. I would like to bring FR's color scheme and grid into EN; what do the rest of you think? Our template's look seems to have come from another time, when Wikipedia's templates were generally boxy and black and white. The changes I'm proposing would bring our template up-to-date, visually. See here for the source on FR. --Zantastik talk 01:41, 1 August 2007 (UTC)[reply]

FR's white-on-pale-blue is too low-contrast to be read by people with some visual disabilities. Accessibility should come before aesthetics. Andy Mabbett | Talk to Andy Mabbett 10:36, 1 August 2007 (UTC)[reply]
I didn't think of that. You're probably right. --Zantastik talk 16:23, 8 August 2007 (UTC)[reply]

Edit-protected request: COinS metadata

{{editprotected}}

Please add the necessary mark-up for COinS metadata, modelled on these edits to add COinS to the similar {{infobox journal}} template. See the source-code of {{cite book}} for the specific fields. I'll be happy to check a "sandbox" version if preferred.. Thank you. Andy Mabbett | Talk to Andy Mabbett 10:32, 3 August 2007 (UTC)[reply]

Editprotected requests are for immediate changes. If you write the code, I'd be happy to implement it for you, after checking it. Cheers. --MZMcBride 20:06, 3 August 2007 (UTC)[reply]
OK; done at User:Pigsonthewing/scratchpad2 (examples on that page's talk page). The only issue is the date, which expects wither a year (or ISO8601 format), but I don't think it breaks anything. Also, it would be better if the infobox had "first" and "last" parameters for author name. Andy Mabbett | Talk to Andy Mabbett 13:14, 4 August 2007 (UTC)[reply]
There's also the issue that the square brackets from linked items are passed as part of the parameter values :-( Andy Mabbett | Talk to Andy Mabbett 13:19, 4 August 2007 (UTC)[reply]
Done. Cheers. --MZMcBride 14:22, 4 August 2007 (UTC)[reply]
Thank you. Does anyone have any idea what we can do about the issues I raised? Andy Mabbett | Talk to Andy Mabbett 14:29, 4 August 2007 (UTC)[reply]
Nudge. Andy Mabbett | Talk to Andy Mabbett 16:50, 8 August 2007 (UTC)[reply]
Unfortunately, there is no way to automatically 'split' a name in Wikipedia... there are no string functions. Thus, the only way to get the names into separate first and last parameters would be to build a bot, or do it manually for every page. The #time: parserfunction can change date formats around. For example, {{#time: c|10 June 2007}} produces 2007-06-10T00:00:00+00:00. The 'c' indicates that ISO8601 format should be used. A 'Y' instead of 'c' would return just the four digit year. However, this might run into trouble with the date parameter values on some templates. For instance, if a range (e.g. 1954-1955) were used in the date parameter {{#time: c|1954-1955}} would return Error: Invalid time.. --CBD 12:26, 10 August 2007 (UTC)[reply]