Wikia

Harry Potter Wiki

Changes: Template:Book infobox

View source

Back to page

(Add behind the scenes divider.)
(Redesign + removing OOU section)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:#fff; border-collapse:collapse; border:1px solid #000000; font-size:smaller; line-height:1.5; ">
+
<div id="Book_infobox" class="infobox hidable" style="padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
<tr style="text-align:center; background:#f0f0f0;">
+
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px"
<td colspan="2" style="padding:0; background:{{#if:#458B74|#458B74|#999999}}; color:#fff;">{{{image|}}}</td>
+
|-
</tr><tr style="color:#fff; background:{{#if:#458B74|#458B74|#999999}}; font-size:larger;">
+
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|background: #{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|background: #458B74}}}}" | {{{image|}}}
<th colspan="2">{{{name}}}</th>
+
|-
</tr> {{t|1=|1{{{hidea|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{#if:#73B9A2|#73B9A2|#CCCCCC}};">'''Publication information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Author'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
! class="infoboxheading" colspan="2" style="{{#if:{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|background: #{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|background: #458B74}}; {{{css|}}}" | {{{{{{2|name}}}}}}
  +
{{#if:{{{hidep|}}}|{{!}}-|{{!}}-
  +
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|73B9A2}}" {{!}} '''Publication&nbsp;information'''}}
  +
{{#if:{{{author|}}}|
  +
{{!}}-
  +
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Author
  +
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{author|}}}
 
{{{author|}}}
</td></tr>|1{{{author|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Released'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}}-
  +
|}}{{#if:{{{released|}}}|
  +
{{!}}-
  +
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Released
  +
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{released|}}}
 
{{{released|}}}
</td></tr>|1{{{released|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Publisher'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}}-
  +
|}}{{#if:{{{publisher|}}}|
  +
{{!}}-
  +
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Publisher
  +
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{publisher|}}}
 
{{{publisher|}}}
</td></tr>|1{{{publisher|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Subject'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}}-
  +
|}}{{#if:{{{subject|}}}|
  +
{{!}}-
  +
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Subject
  +
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{subject|}}}
 
{{{subject|}}}
</td></tr>|1{{{subject|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Copies'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}}-
  +
|}}{{#if:{{{copies|}}}|
  +
{{!}}-
  +
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Copies
  +
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{copies|}}}
 
{{{copies|}}}
</td></tr>|1{{{copies|}}}=}} {{t|1=|1{{{hidea|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{#if:{{{bgcolor2|}}}|{{{bgcolor2}}}|#73B9A2}};">'''Behind the scenes'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''First appearance'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{!}}-
{{{first|}}}
+
|}}
</td></tr>|1{{{first|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Latest appearance'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
|}
{{{latest|}}}
+
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|background: #{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|background: #458B74}}"><span class="hidable-button"></span>[[{{{srclink|Template:Book infobox}}}|[Source]]]</div>
</td></tr>|1{{{latest|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Last appearance'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
+
{{#if:{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}|{{rb|#{{#if:{{{bgcolor1|}}}|{{{bgcolor1}}}|458B74}}}}|{{rb|#458B74}}}}</div><noinclude>
{{{last|}}}
 
</td></tr>|1{{{last|}}}=}}</table><noinclude>
 
   
 
==Usage==
 
==Usage==
Line 29: Line 29:
 
|publisher=''Publisher''
 
|publisher=''Publisher''
 
|subject=''Subject''
 
|subject=''Subject''
|copies=''Known copies in existance''
+
|copies=''Known copies in existence''
|first=''First appearance, real-world chronology''
 
|latest=''Latest appearance, real-world chronology''
 
|last=''Last appearance, real-world chronology''
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 43: Line 43:
 
|subject=
 
|subject=
 
|copies=
 
|copies=
|first=
 
|latest=
 
|last=
 
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 11:59, January 27, 2010

{{{name}}}
Publication information

Usage

{{Book infobox
|name=''Full title''
|image=''book image, maximum 250px''
|author=''Name of Author''
|released=''Place of Released and/or year of Released''
|publisher=''Publisher''
|subject=''Subject''
|copies=''Known copies in existence''
}}

Clean template

{{Book infobox
|name=
|image=
|author=
|released=
|publisher=
|subject=
|copies=
}}

Around Wikia's network

Random Wiki