Template:Infobox Novel: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(adding hidden field to companions)
m (making things optional :))
Line 1: Line 1:
{| border="0" cellspacing="0" cellpadding="4" style="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; "
<includeonly>{| border="0" cellspacing="0" cellpadding="4" style="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; "
 
| bgcolor=white align="center" colspan="2" | {{{image|}}}
| bgcolor=white align="center" colspan="2" | {{{image}}}
|- valign="top"
|- valign="top"
| align="center" colspan=2 bgcolor="#0041b7" style="border-bottom:0px solid gray; font-size:larger; color:white;" | '''{{{novel name}}}'''
| align="center" colspan=2 bgcolor="#0041b7" style="border-bottom:0px solid gray; font-size:larger; color:white;" | '''{{{novel name}}}'''
|- class{{{series}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{series}}}="hiddenStructure" style="vertical-align: top;"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" width="80pt" | '''Series:'''
{{#if:{{{series|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{series}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" width="80pt"{{!}}'''Series:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{series}}}
}}
|- class{{{number}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{number}}}="hiddenStructure" style="vertical-align: top;"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Release Number:'''
{{#if:{{{number|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{number}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Release Number:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{number}}}
}}
|- valign="top"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Doctor:'''
{{#if:{{{doctor|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{doctor}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Doctor:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{doctor}}}
}}
|- class{{{companions}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{companions}}}="hiddenStructure" style="vertical-align: top;"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Companions:'''
{{#if:{{{companions|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{companions}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Companions:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{companions}}}
}}
|- valign="top"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Enemy:'''
{{#if:{{{enemy|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{enemy}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Enemy:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{enemy}}}
}}
|- valign="top"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" | '''Setting:'''
{{#if:{{{year|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{year}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Setting:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{year}}}
}}
|- valign="top"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''Author:'''
{{#if:{{{writer|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{writer}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Author:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{writer}}}
}}
|- valign="top"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''Publisher:'''
{{#if:{{{publisher|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{publisher}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Publisher:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{publisher}}}
}}
|- valign="top"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''Publication:'''
{{#if:{{{release date|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{release date}}}
{{!}}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"
|- valign="top"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''Format:'''
{{#if:{{{format|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{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}}}
}}
|- class{{{isbn}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{isbn}}}="hiddenStructure" style="vertical-align: top;"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''ISBN:'''
{{#if:{{{isbn|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{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 story}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{previous story}}}="hiddenStructure" style="vertical-align: top;"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''Previous Story:'''
{{#if:{{{previous story|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{previous story}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Previous Story:'''
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{previous story}}}
}}
|- class{{{next story}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{next story}}}="hiddenStructure" style="vertical-align: top;"
| style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;" '''Following Story:'''
{{#if:{{{next story|}}}|
| style="border-bottom:1px solid gray; border-top: 1px solid gray;" | {{{next story}}}
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Following Story:'''
|- valign="top"
{{!}}style="border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}{{{next story}}}
|}
}}
<noinclude>
|}</includeonly><noinclude>
==Usage==
==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).
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).

Revision as of 18:34, 31 January 2010

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 Novel
|novel name     =
|image          =
|series         =
|number         =
|doctor         =
|companions     =
|enemy          =
|year           =
|writer         =
|publisher      =
|release date   =
|format         =
|isbn           = ISBN
|previous story =
|next story     =
}}

Definition of fields

{{Infobox Novel
|novel name     = Name of novel
|image          = Image of novel cover/identifying image of novel at 250px
|series         = Series the novel is part of
|number         = Number of novel in series
|doctor         = Doctor in novel
|companions     = Companions in novel
|enemy          = Any enemies in the novel
|year           = Setting(s) of the novel
|writer         = Writer of the novel
|publisher      = Publisher of the novel
|release date   = Release date of the novel
|format         = Format and page count of the novel
|isbn           = The novel's ISBN, leave a space between ISBN and the number
|previous story = Previous released novel in series
|next story     = Next released novel in series
}}