User:CelticWanderer/Book infobox: Difference between revisions

From Discworld & Terry Pratchett Wiki
Jump to navigation Jump to search
(page created as suggestion for an updated book infoxbox)
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Here is a possible template I would like to suggest we could implement as an update to the current [[Template:Book Data]]. It is based on a template from another wiki so the main credit goes there, however, I have tweaked some aspects of the template and made some appropriate changes to make it fit more comfortably into this wiki. What do you think?
Here is a possible template I would like to suggest we could implement as an update to the current '''[[Template:Book Data]]'''. It is based on a template from another wiki so the main credit goes there, however, I have tweaked some aspects of the template and made some appropriate changes to make it fit more comfortably into this wiki. The template will show any parameter that is filled and hide any that is not. I have included all the aspects of the current book data template as well as include some additional fields that could be used. What do you think?


I will be happy to make the changeover on each of the book pages if it agreed that it could be implemented.
I will be happy to make the changeover on each of the book pages if it agreed that it could be implemented.


Any questions, feedback or concerns please mention them on the '''[[User talk:CelticWanderer/Book infobox|talk page]]'''.
I will also need to create a small template '''[[Template:t]]''' in order for this to work.........<s>(edit) Ok, as <code>Template:t</code> already exists I am going to have rethink this because the template is broken with the current <code>Template:t</code> in place.</s>


<includeonly><table class="wikitable" border="1" cellpadding="4" style="float: right; margin: 0 0 1em 1em; width: 225px; border-collapse: collapse; font-size: 96%; clear: right;clear:right;"> {{t|1=<tr><th colspan="2" style="text-align: center; background:#333333; color:#f7f7f7; font-size:110%; font-style: italic;">'''{{{title}}}'''</th></tr>|1{{{title|}}}=}} {{t|1=<tr><td colspan="2" style="font-size: 90%; font-weight: normal; padding: 0; text-align:center;">{{{image}}}</td></tr>|1{{{image|}}}=}} {{t|1=<tr><td style="width: 35px; padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Co-author(s)'''</small></td><td style="width: 65px; border-left: 0;"><small>{{{coauthors}}}</small></td></tr>|1{{{coauthors|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Foreword&nbsp;by'''</small></td><td style="border-left: 0;"><small>{{{foreword}}}</small></td></tr>|1{{{foreword|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Editor'''</small></td><td style="border-left: 0;"><small>{{{editor}}}</small></td></tr>|1{{{editor|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Contributor(s)'''</small></td><td style="border-left: 0;"><small>{{{contributors}}}</small></td></tr>|1{{{contributors|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Illustrator(s)'''</small></td><td style="border-left: 0;"><small>{{{illustrators}}}</small></td></tr>|1{{{illustrators|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Publisher'''</small></td><td style="border-left: 0;"><small>{{{publisher}}}</small></td></tr>|1{{{publisher|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Publication&nbsp;date'''</small></td><td style="border-left: 0;"><small>{{{date}}}</small></td></tr>|1{{{date|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Format'''</small></td><td style="border-left: 0;"><small>{{{format}}}</small></td></tr>|1{{{format|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Pages'''</small></td><td style="border-left: 0;"><small>{{{pages}}}</small></td></tr>|1{{{pages|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''ISBN'''</small></td><td style="border-left: 0;"><small>[http://www.amazon.co.uk/gp/search/ref=sr_adv_b/?search-alias=stripbooks&field-isbn={{{isbn}}} {{{isbn}}}]</small></td></tr>|1{{{isbn|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Main&nbsp;characters'''</small></td><td style="border-left: 0;"><small>{{{characters}}}</small></td></tr>|1{{{characters|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Series'''</small></td><td style="border-left: 0; font-style: italic;"><small>{{{series}}}</small></td></tr>|1{{{series|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Book&nbsp;no.'''</small></td><td style="border-left: 0;"><small>{{{bookno}}}</small></td></tr>|1{{{bookno|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Annotations'''</small></td><td style="border-left: 0;"><small>[[{{PAGENAME}}/Annotations|{{{annotations}}}]]</small></td></tr>|1{{{annotations|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Notes'''</small></td><td style="border-left: 0;"><small>{{{notes}}}</small></td></tr>|1{{{notes|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Preceded&nbsp;by'''</small></td><td style="border-left: 0; font-style: italic;"><small>{{{precededby}}}</small></td></tr>|1{{{precededby|}}}=}} {{t|1=<tr><td style="padding-left:3px; border-right: 0; vertical-align: top;"><small>'''Followed&nbsp;by'''</small></td><td style="border-left: 0; font-style: italic;"><small>{{{followedby}}}</small></td></tr>|1{{{followedby|}}}=}} <tr><td colspan="2" style="font-size: 90%; font-weight: normal; padding: 0; text-align:center;">All data relative to first UK edition.</td></tr>
Success. Managed to get it to work. <code>Template:t</code> in this template now uses <code>Template:t-</code>. The width of the template is a standard 285px but this can change with ease depending on the px size attribute for an image.
</table></includeonly><noinclude>
 
{{Book infobox
Any questions, feedback or concerns please direct them to the '''[[User talk:CelticWanderer/Book infobox|talk page]]'''. I will be interested to see what people think.
 
{{User:CelticWanderer/Book infobox template
| title={{{title}}}
| title={{{title}}}
| image={{{image}}}
| image={{{image}}}
Line 29: Line 31:
}}
}}
==Usage==
==Usage==
<pre>{{Book infobox
<pre>{{User:CelticWanderer/Book infobox template
| title        =
| title        =
| image        = <!--285px seems to be a good size-->
| image        = <!--285px seems to be a good size-->
Line 41: Line 43:
| format        = <!--paperback or hardcover-->
| format        = <!--paperback or hardcover-->
| pages        =
| pages        =
| isbn          = <!--add known isbn no. here-->
| isbn          =  
| characters    = <!--add the main characters here-->
| characters    = <!--main characters only-->
| series        =
| series        =
| bookno        = <!--book number in the series: e.g. use #1-->
| bookno        = <!--book number in the series: e.g. use #1, #2, #3 etc.-->
| annotations  = <!--if yes, type 'View' in this field; if no, leave blank-->
| annotations  = <!--if any type 'View' in this field-->
| notes        =
| notes        =
| precededby    = <!--add the preceding book in the series-->
| precededby    = <!--add the preceding book in the series-->
| followedby    = <!add the following book in the series-->
| followedby    = <!--add the following book in the series-->
}}
}}
</pre>
</pre>

Latest revision as of 00:24, 10 June 2013

Here is a possible template I would like to suggest we could implement as an update to the current Template:Book Data. It is based on a template from another wiki so the main credit goes there, however, I have tweaked some aspects of the template and made some appropriate changes to make it fit more comfortably into this wiki. The template will show any parameter that is filled and hide any that is not. I have included all the aspects of the current book data template as well as include some additional fields that could be used. What do you think?

I will be happy to make the changeover on each of the book pages if it agreed that it could be implemented.

I will also need to create a small template Template:t in order for this to work.........(edit) Ok, as Template:t already exists I am going to have rethink this because the template is broken with the current Template:t in place.

Success. Managed to get it to work. Template:t in this template now uses Template:t-. The width of the template is a standard 285px but this can change with ease depending on the px size attribute for an image.

Any questions, feedback or concerns please direct them to the talk page. I will be interested to see what people think.

{{{title}}}
{{{image}}}
Co-author(s){{{coauthors}}}
Foreword by{{{foreword}}}
Editor{{{editor}}}
Contributor(s){{{contributors}}}
Illustrator(s){{{illustrators}}}
Publisher{{{publisher}}}
Publication date{{{date}}}
Format{{{format}}}
Pages{{{pages}}}
ISBN{{{isbn}}}
Main characters{{{characters}}}
Series{{{series}}}
Book no.{{{bookno}}}
Annotations{{{annotations}}}
Notes{{{notes}}}
Preceded by{{{precededby}}}
Followed by{{{followedby}}}
All data relative to UK first edition.

Usage

{{User:CelticWanderer/Book infobox template
| title         =
| image         = <!--285px seems to be a good size-->
| coauthors     =
| foreword      =
| editor        =
| contributors  =
| illustrators  =
| publisher     =
| date          = <!--date of publication-->
| format        = <!--paperback or hardcover-->
| pages         =
| isbn          = 
| characters    = <!--main characters only-->
| series        =
| bookno        = <!--book number in the series: e.g. use #1, #2, #3 etc.-->
| annotations   = <!--if any type 'View' in this field-->
| notes         =
| precededby    = <!--add the preceding book in the series-->
| followedby    = <!--add the following book in the series-->
}}