User:CelticWanderer/Book infobox: Difference between revisions

From Discworld & Terry Pratchett Wiki
Jump to navigation Jump to search
(template broken due to existence of the current template:t)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
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.
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>


Any questions, feedback or concerns please mention them on the '''[[User talk:CelticWanderer/Book infobox|talk page]]'''.
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.


{{User:CelticWander/Book infobox template}}
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}}}
| 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>{{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-->
}}
</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-->
}}