Tolkien Gateway

Template:Book

(Difference between revisions)
m (Changed th to td)
(Changed template to test a new layout system. Shall expand if all goes well)
Line 1: Line 1:
<includeonly><table class="TGtable" border="1" cellpadding="4" style="float: right; margin: 0 0 1em 1em; width: 225px; border-collapse: collapse; font-size: 95%; clear: right;clear:right;"> {{t|1=<tr><th colspan="2" style="text-align: center; background:#B0C4DE">'''{{{title}}}'''</th></tr>|1{{{title|}}}=}} {{t|1=<tr><td colspan="2" style="font-size: 90%; font-weight: normal; padding: 0;">{{{image}}}</td></tr>|1{{{image|}}}=}} {{t|1=<tr><td colspan="2"><small>'''Author''': {{{author}}}</small></td></tr>|1{{{author|}}}=}} {{t|1=<tr><th colspan="2" style="text-align: center; background:#B0C4DE">'''Publication information:'''</th></tr>|1{{{publisher|}}}{{{date|}}}{{{format|}}}{{{pages|}}}{{{isbn|}}}=}} {{t|1=<tr><td colspan="2"><small>'''Publisher''': {{{publisher}}}</small></td></tr>|1{{{publisher|}}}=}} {{t|1=<tr><td colspan="2"><small>'''Released''': {{{date}}}</small></td></tr>|1{{{date|}}}=}} {{t|1=<tr><td colspan="2"><small>'''Format''': {{{format}}}</small></td></tr>|1{{{format|}}}=}} {{t|1=<tr><td colspan="2"><small>'''Pages''': {{{pages}}}</small></td></tr>|1{{{pages|}}}=}} {{t|1=<tr><td colspan="2"><small>'''ISBN''': ISBN {{{isbn}}}</small></td></tr>|1{{{isbn|}}}=}}</table></includeonly><noinclude>
+
<includeonly><table class="TGtable" border="1" cellpadding="4" style="float: right; margin: 0 0 1em 1em; width: 225px; border-collapse: collapse; font-size: 95%; clear: right;clear:right;"> {{t|1=<tr><th colspan="2" style="text-align: center; background:#B0C4DE; font-style: italic;">'''{{{title}}}'''</th></tr>|1{{{title|}}}=}} {{t|1=<tr><td colspan="2" style="font-size: 90%; font-weight: normal; padding: 0;">{{{image}}}</td></tr>|1{{{image|}}}=}} {{t|1=<tr><td style="border-right: 0;"><small>'''Author'''</small></td><td style="border-left: 0;"><small>{{{author}}}</small></td></tr>|1{{{author|}}}=}} {{t|1=<tr><th colspan="2" style="text-align: center; background:#B0C4DE">'''Publication information:'''</th></tr>|1{{{publisher|}}}{{{date|}}}{{{format|}}}{{{pages|}}}{{{isbn|}}}=}} {{t|1=<tr><td style="border-right: 0;"><small>'''Publisher'''</small></td><td style="border-left: 0;"><small>{{{publisher}}}</small></td></tr>|1{{{publisher|}}}=}} {{t|1=<tr><td style="border-right: 0;"><small>'''Released'''</small></td><td style="border-left: 0;"><small>{{{date}}}</small></td></tr>|1{{{date|}}}=}} {{t|1=<tr><td style="border-right: 0;"><small>'''Format'''</small></td><td style="border-left: 0;"><small>{{{format}}}</small></td></tr>|1{{{format|}}}=}} {{t|1=<tr><td style="border-right: 0;"><small>'''Pages'''</small></td><td style="border-left: 0;"><small>{{{pages}}}</small></td></tr>|1{{{pages|}}}=}} {{t|1=<tr><td style="border-right: 0;"><small>'''ISBN'''</small></td><td style="border-left: 0;"><small>ISBN {{{isbn}}}</small></td></tr>|1{{{isbn|}}}=}}</table></includeonly><noinclude>
{{clear}}
+
{{book
<table class="TGtable" border="1" cellpadding="4" style="float: right; margin: 0 0 1em 1em; width: 225px; border-collapse: collapse; font-size: 95%; clear: right;">
+
| title={{{title}}}
<tr><th colspan="2" style="text-align: center; background:#B0C4DE">'''{{{title}}}'''</th></tr>
+
| image={{{image}}}
<tr><td colspan="2" style="font-size: 90%; text-align: center;">{{{image}}}</td></tr>
+
| author={{{author}}}
<tr><td colspan="2"><small>'''Author''': {{{author}}}</small></td></tr>
+
| publisher={{{publisher}}}
<tr><th colspan="2" style="text-align: center; background:#B0C4DE">'''Publication information:'''</th></tr>
+
| date={{{date}}}
<tr><td colspan="2"><small>'''Publisher''': {{{publisher}}}</small></td></tr>
+
| format={{{format}}}
<tr><td colspan="2"><small>'''Released''': {{{date}}}</small></td></tr>
+
| pages={{{pages}}}
<tr><td colspan="2"><small>'''Format''': {{{format}}}</small></td></tr>
+
| isbn={{{isbn}}}
<tr><td colspan="2"><small>'''Pages''': {{{pages}}}</small></td></tr>
+
}}
<tr><td colspan="2"><small>'''ISBN''': ISBN {{{isbn}}}</small></td></tr></table>
+
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>

Revision as of 21:28, 14 August 2011

{{{title}}}
{{{image}}}
Author{{{author}}}
Publisher{{{publisher}}}
Released{{{date}}}
Format{{{format}}}
Pages{{{pages}}}
ISBN[[Special:BookSources/{{{isbn}}}|{{{isbn}}}]]

Usage

{{book
| title=
| image=
| author=
| publisher=
| date=
| format=
| pages=
| isbn=
}}