Tolkien Gateway

Template:Chapter

(Difference between revisions)
(Added default blanking; tidied up a bit)
m (Fixed usage)
Line 1: Line 1:
<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>
+
<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>
 
==Usage==
 
==Usage==
 +
{{scene
 +
| title={{{title}}}
 +
| image={{{images}}}
 +
| book={{{book}}}
 +
| number={{{number}}}
 +
| length={{{length}}}
 +
| written={{{written}}}
 +
| event={{{event}}
 +
| date={{{date}}}
 +
| location={{{location}}}
 +
| perspective={{{perspective}}}
 +
| previous={{{previous}}}
 +
| next={{{next}}}
 +
|}}
 
<pre>
 
<pre>
 
{{scene
 
{{scene
Line 8: Line 22:
 
| number=
 
| number=
 
| length=
 
| length=
| written=  
+
| written=
 
| event=
 
| event=
| date =  
+
| date=
| location=  
+
| location=
| perspective=  
+
| perspective=
| previous=  
+
| previous=
| next=  
+
| next=
 
|}}
 
|}}
 
</pre>
 
</pre>
 
[[Category:Infobox templates|{{PAGENAME}}]]
 
[[Category:Infobox templates|{{PAGENAME}}]]

Revision as of 20:08, 5 September 2010

Usage

{{{images}}}
Scene number{{{number}}}
Event{Template:Event
Navigation
[[{{{previous}}}|Previous]] [[{{{next}}}|Next]]
{{scene
| title=
| image=
| book=
| number=
| length=
| written=
| event=
| date=
| location=
| perspective=
| previous=
| next=
|}}