Template:Infobox Reference Book: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (Changed protection level for "Template:Infobox Reference Book": infoboxes routinely locked on other wikis to prevent the kind of minor, but ultimately chaotic, variable tampering that we've been experiencing. Propose changes at forum:panopticon. )
(switchover to new format)
Line 1: Line 1:
<includeonly><div>
<includeonly><div id="infobox-exterior">  
{| border="0" cellspacing="0" cellpadding="4" style="clear:right;float:right; margin:0 0 .5em 1em; width:250px; background:#f1f4fa; border-collapse:collapse; border:1px solid #999; font-size:smaller; line-height:1.5; "
{| class="infobox-interior"
| bgcolor=white align="center" colspan="2" | {{#if:{{{image|}}}|[[file:{{{image}}}|250px]]|No image available}} {{#if:{{{cover|}}}|Cover art by {{{cover}}}|}}
|-
|- valign="top"
! colspan="3" class=wh style="font-size:150%"| {{{name|{{PAGENAME}}}}}
| align="center" colspan=2 bgcolor="#336666" style="border-bottom:0px solid gray; font-size:larger; color:white;" | '''{{{book name}}}'''
|-
|- valign="top"
{{#if:{{{image|}}}|{{!}}class="info-both" colspan="2"{{!}}{{infobox image|{{{image}}}|{{#if:{{{caption|}}}|{{{caption}}}|}}}}}}
{{#if:{{{writer|}}}|
|-
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Author:'''
{{#if:{{{writer|}}}|{{!}}class="info-left"{{!}}Written by:}}
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{writer}}}
{{#if:{{{writer|}}}|{{!}}class="info-right"{{!}}{{{writer}}}}}
|-
{{#if:{{{cover|}}}|{{!}}class="info-left"{{!}}Cover by:}}
{{#if:{{{cover|}}}|{{!}}class="info-right"{{!}}{{{cover}}}}}
|-
{{ #if: {{{type|}}}|{{!}}class="info-left"{{!}}Type:}}
{{ #if: {{{type|}}}|{{!}}class="info-right"{{!}}{{{type}}}}}
|-
{{ #if: {{{publisher|}}}|{{!}}class="info-left"{{!}}Publisher:}}
{{ #if: {{{publisher|}}}|{{!}}class="info-right"{{!}}{{{publisher}}}}}
|-
{{ #if: {{{isbn|}}}|{{!}}class="info-left"{{!}}ISBN:}}
{{ #if: {{{isbn|}}}|{{!}}class="info-right"{{!}}{{{isbn}}}}}
|-
{{ #if: {{{release date|}}}|{{!}}class="info-left"{{!}}Release date:}}
{{ #if: {{{release date|}}}|{{!}}class="info-right"{{!}}{{{release date}}}}}
|-
{{ #if: {{{format|}}}|{{!}}class="info-left"{{!}}Format:}}
{{ #if: {{{format|}}}|{{!}}class="info-right"{{!}}{{{format}}}}}
|-
|-
{{#if:{{{nav|}}}||!colspan="3" class=info-both{{!}}Navigation}}
|-
{{#if:{{{nav|}}}||!class=info-left style="text-align:left"{{!}}&larr;Previous}}
{{#if:{{{nav|}}}||!class=info-right{{!}}Next&rarr;}}
|-
{{#if:{{{series|}}}|{{!}}colspan="3" class="info-both-nav" {{!}}{{{series}}}}}
|-
{{#switch:{{{prev|}}}
|=
|none={{!}}class="info-left-nav"{{!}}none
|#default={{!}}class="info-left-nav"{{!}}''{{dab away|{{{prev}}}}}''
}}
}}
|- valign="top"
{{#switch:{{{next|}}}
{{#if:{{{publisher|}}}|
|=
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Publisher:'''
|none={{!}}class="info-left-nav"{{!}}none
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{publisher}}}
|#default={{!}}class="info-right-nav"{{!}}''{{dab away|{{{next}}}}}''
}}
}}  
|- valign="top"
|-
{{#if:{{{release date|}}}|
|}</div></includeonly><noinclude>
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Publication:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{release date}}}
}}
|- valign="top"
{{#if:{{{format|}}}|
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Format:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{format}}}
}}
|- valign="top"
{{#if:{{{isbn|}}}|
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''ISBN:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{isbn}}}
}}
|- class{{{previous release}}}="hiddenStructure" style="vertical-align: top;"
{{#if:{{{previous release|}}}|
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Previous Release:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{previous release}}}
}}
|- class{{{next release}}}="hiddenStructure" style="vertical-align: top;"
{{#if:{{{next release|}}}|
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Following Release:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{next release}}}
}}
|}
</div></includeonly><noinclude>
== Usage ==
Copy and paste '''all''' of the text below onto whichever article page it is needed for (even if some fields are not needed copy '''all''' of the text).
<pre>
{{Infobox Reference Book
|book name        =
|image            =
|cover            =
|writer            =
|publisher        =
|release date      =
|format            =
|isbn              = 
|previous release  =
|next release      =
}}
</pre>
 
== Description of fields ==
<pre>
{{Infobox Reference Book
|book name        = Name/Title of the book
|image            = Cover image of book at 250px
|cover            = Cover artist, if known
|writer            = Writer of book
|publisher        = Publisher of book
|release date      = Release date/Publish date of book
|format            = Format and page count of book
|isbn              = Type ISBN followed by the number
|previous release  = If reference book is part of a series, the previous book
|next release      = If reference book is part of a series, the next book
}}
</pre>
 


[[Category:Infoboxes|Reference Book]]</noinclude>
{{documentation}}[[Category:Infoboxes|Reference]]</noinclude>

Revision as of 04:31, 21 April 2012


Instructions for {{Infobox Reference Book}}
Infobox Reference Book
Written by: Writer(s) of book
Cover by: Cover artist, if known
Type: freeform variable for defining the genre of the book: cookbook, quiz book, guide book, encyclopedia, crticism, etc.
Publisher: ##|Publisher of book
ISBN: Type ISBN followed by the number
Release date: Release date/Publish date of book
Format: Format and page count of book
Navigation
←Previous Next→
Name of series
previous book next book

Usage

Copy and paste all of the text below onto whichever article page it is needed for (even if some fields are not needed copy all of the text).

{{Infobox Reference Book
|image             =
|cover             =
|writer            =
|publisher         =
|publisher2        =
|publisher3        =
|release date      =
|format            =
|type              =
|isbn              =
|prev              =
|next              =
}}