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" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#if:{{{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;" | {{#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}}} | |||
}} | |||
|- 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;" | {{#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 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;" | {{#if:{{{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;" | {{#if:{{{next story|}}}| | ||
{{!}}style="text-align: left; border-bottom:1px solid gray; border-top: 1px solid gray;"{{!}}'''Following Story:''' | |||
{{!}}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 }}