User:CelticWanderer/Book infobox: Difference between revisions

From Discworld & Terry Pratchett Wiki
Jump to navigation Jump to search
(template fixed and example works)
mNo edit summary
 
Line 5: Line 5:
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>  
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>  


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 225px but this can change with ease depending on the px size attribute for an image.
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.


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.
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:CelticWander/Book infobox template
{{User:CelticWanderer/Book infobox template
| title={{{title}}}
| title={{{title}}}
| image={{{image}}}
| image={{{image}}}
Line 31: Line 31:
}}
}}
==Usage==
==Usage==
<pre>{{User:CelticWander/Book infobox template
<pre>{{User:CelticWanderer/Book infobox template
| title        =
| title        =
| image        = <!--285px seems to be a good size-->
| image        = <!--285px seems to be a good size-->

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-->
}}