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)
 
(template broken due to existence of the current template:t)
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.
I will also need to create a small template '''[[Template:t]]''' in order for this to work.........(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.


Any questions, feedback or concerns please mention them on the '''[[User talk:CelticWanderer/Book infobox|talk page]]'''.
Any questions, feedback or concerns please mention them on the '''[[User talk:CelticWanderer/Book infobox|talk page]]'''.


<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>
{{User:CelticWander/Book infobox template}}
</table></includeonly><noinclude>
{{Book infobox
| title={{{title}}}
| image={{{image}}}
| coauthors={{{coauthors}}}
| foreword={{{foreword}}}
| editor={{{editor}}}
| contributors={{{contributors}}}
| illustrators={{{illustrators}}}
| publisher={{{publisher}}}
| date={{{date}}}
| format={{{format}}}
| pages={{{pages}}}
| isbn={{{isbn}}}
| characters={{{characters}}}
| series={{{series}}}
| bookno={{{bookno}}}
| annotations={{{annotations}}}
| notes={{{notes}}}
| precededby={{{precededby}}}
| followedby={{{followedby}}}
}}
==Usage==
<pre>{{Book infobox
| 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          = <!--add known isbn no. here-->
| characters    = <!--add the main characters here-->
| series        =
| bookno        = <!--book number in the series: e.g. use #1-->
| annotations  = <!--if yes, type 'View' in this field; if no, leave blank-->
| notes        =
| precededby    = <!--add the preceding book in the series-->
| followedby    = <!add the following book in the series-->
}}
</pre>

Revision as of 22:49, 9 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.

Any questions, feedback or concerns please mention them on the talk page.

All data relative to UK first edition.