Tolkien Gateway

Template:Chapter

(Difference between revisions)
(an idea)
 
(Added default blanking; tidied up a bit)
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 Navy; font-size:smaller; line-height:1.5; ">
+
<includeonly><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 Navy; font-size:smaller; line-height:1.5;"> {{t|1=<tr style="background: Navy; color: SkyBlue; font-size: larger;"><th colspan="2">{{{title}}}</th></tr>|1{{{title|}}}=}} {{t|1=<tr style="text-align: center; background: SkyBlue;"><td colspan="2" style="padding:0;">{{{image}}}</td></tr>|1{{{image|}}}=}} {{t|1=<tr style="text-align: center; background: SkyBlue;"><td colspan="2" style="padding:0;"><small>Chapter of <br/>{{{book}}}</small></td></tr>|1{{{book|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td>Number </td><td>{{{number}}}</td></tr>|1{{{number|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td><small>Length in paragraphs</small></td><td>{{{length}}}</td></tr>|1{{{length|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td>Written ca.</td><td>{{{written}}}</td></tr>|1{{{written|}}}=}} {{t|1=<tr><th colspan="2" style="text-align:left; font-weight:normal; color: black; background: SkyBlue;"><center>'''Synopsis'''</center></th></tr>|1{{{event|}}}{{{date|}}}{{{location|}}}{{{perspective|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td>Event</td><td>{{{event}}}</td></tr>|1{{{event|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td>Date</td><td>{{{date}}}</td></tr>|1{{{date|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td>Location</td><td>{{{location}}}</td></tr>|1{{{location|}}}=}} {{t|1=<tr style="vertical-align: top; background: #F0F0F0;"><td>Perspective</td><td>{{{perspective}}}</td></tr>|1{{{perspective|}}}=}} <tr><th colspan="2" style="text-align:left; font-weight:normal; color: Black; background: SkyBlue;"><center>'''Navigation'''</center></th></tr><tr style="text-align:center; background: #F0F0F0;"><td><center><small>''{{#if:{{{previous|}}}|''[[{{{previous}}}|Previous]]''|'''None'''}}''</small></center></td><td><center><small>''{{#if:{{{next|}}}|''[[{{{next}}}|Next]]''|'''None'''}}''</center></small></tr></table></includeonly><noinclude><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 Navy; font-size:smaller; line-height:1.5;"> <tr style="background: Navy; color: SkyBlue; font-size: larger;"><th colspan="2">{{{title}}}</th></tr> <tr style="text-align: center; background: SkyBlue;"><td colspan="2" style="padding:0;">{{{image}}}</td></tr> <tr style="text-align: center; background: SkyBlue;"><td colspan="2" style="padding:0;"><small>Chapter of <br/>{{{book}}}</small></td></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td>Number </td><td>{{{number}}}</td></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td><small>Length in paragraphs</small></td><td>{{{length}}}</td></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td>Written ca.</td><td>{{{written}}}</td></tr> <tr><th colspan="2" style="text-align:left; font-weight:normal; color: black; background: SkyBlue;"><center>'''Synopsis'''</center></th></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td>Event</td><td>{{{event}}}</td></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td>Date</td><td>{{{date}}}</td></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td>Location</td><td>{{{location}}}</td></tr> <tr style="vertical-align: top; background: #F0F0F0;"><td>Perspective</td><td>{{{perspective}}}</td></tr> <tr><th colspan="2" style="text-align:left; font-weight:normal; color: Black; background: SkyBlue;"><center>'''Navigation'''</center></th></tr><tr style="text-align:center; background: #F0F0F0;"><td><center><small>''{{{previous}}}''</small></center></td><td><center><small>''{{{next}}}''</center></small></tr></table>
<tr style="background:Navy; color:SkyBlue; font-size:larger;">
+
<th colspan="2" >{{{title}}}</th>
+
<tr style="text-align:center; background:Navy;"></tr>
+
</tr>
+
<tr style="text-align:center; background:Navy; color:Navy">
+
<td colspan="2" style="padding:0; background:Navy; color: SkyBlue">{{{image}}}</td>
+
</tr>
+
<tr style="text-align:center; background:Navy; color:Navy">
+
<td colspan="2" style="padding:0; background:Navy; color:SkyBlue;"><small>Chapter of <br>{{{book}}}</small></td>
+
 
+
</tr>
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue"><td>Number </td><td>{{{number}}}</td></tr>|1{{{number}}}=}}  
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue">
+
<td><small>Length in paragraphs</small></td><td>{{{length}}}</td></tr>|1{{{length}}}=}}  
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue">
+
<td>Written ca.</td><td>{{{written}}}</td></tr>|1{{{written}}}=}}  
+
</tr>
+
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:#SkyBlue;background:#Navy;"><center>'''Synopsis'''</center></th></tr>
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue">
+
<td>Event</td><td>{{{event}}}</td></tr>|1{{{event}}}=}}  
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue">
+
<td>Date</td><td>{{{date}}}</td></tr>|1{{{date}}}=}}  
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue">
+
<td>Location</td><td>{{{location}}}</td></tr>|1{{{location}}}=}}
+
{{t|1=<tr style="vertical-align: top; background: #SkyBlue">
+
<td>Perspective</td><td>{{{perspective}}}</td></tr>|1{{{perspective}}}=}}
+
</tr>
+
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:#SkyBlue;background:#Navy;"><center>'''Navigation'''</center></th></tr>
+
<tr style="text-align:center; background:SkyBlue;">
+
<td><center><small>{{#if:{{{previous|}}}|''[[{{{previous}}}|Previous]]''|'''None'''}}</small></center></td>
+
<td><center><small>{{#if:{{{next|}}}|''[[{{{next}}}|Next]]''|'''None'''}}</center></small></tr></table><noinclude>
+
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{scene
 
{{scene
| image=
 
 
| title=
 
| title=
 +
| image=
 
| book=
 
| book=
 
| number=
 
| number=
 
| length=
 
| length=
| written =  
+
| written=  
 
| event=
 
| event=
 
| date =  
 
| date =  
| location =  
+
| location=  
| perspective =  
+
| perspective=  
 
| previous=  
 
| previous=  
 
| next=  
 
| next=  
 
|}}
 
|}}
 
</pre>
 
</pre>
[[Category:Infobox templates]]
+
[[Category:Infobox templates|{{PAGENAME}}]]

Revision as of 22:05, 17 August 2010

{{{title}}}
{{{image}}}
Chapter of
{{{book}}}
Number {{{number}}}
Length in paragraphs{{{length}}}
Written ca.{{{written}}}
Synopsis
Event{{{event}}}
Date{{{date}}}
Location{{{location}}}
Perspective{{{perspective}}}
Navigation
{{{previous}}}
{{{next}}}

Usage

{{scene
| title=
| image=
| book=
| number=
| length=
| written= 
| event=
| date = 
| location= 
| perspective= 
| previous= 
| next= 
|}}