Template:Letter infobox: Difference between revisions

From Tolkien Gateway
m (This is a complete hash)
m (This really is a mess)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #ccc;">
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #ccc;"><tr style="font-size: 80%;"><td colspan="2" style="background:#ccc; text-align:center;">''[[The Letters of J.R.R. Tolkien]]''</td></tr>
<tr style="font-size: 80%;"><td colspan="2" style="background:#ccc; text-align:center;">''[[The Letters of J.R.R. Tolkien]]''</td></tr>
 
<tr style="background:#ccc;"><td colspan="2">
<tr style="background:#ccc;">
<td style="font-size: 80%;">{{#ifexpr: ({{{#|0}}}-1)>0 | [[Letter {{#expr:{{{#|0}}}-1}}|&larr;]] | }}</td>
<td colspan="2" style="font-size: 80%;">{{#ifexpr: ({{{#|0}}}-1)>0 | [[Letter {{#expr:{{{#|0}}}-1}}|&larr;]] | }}</td>
<th style="width:100%;">Letter {{{#}}}</th>
<th style="width:100%;">Letter {{{#}}}</th>
<td style="font-size: 80%; text-align: right;">{{#ifexpr: ({{{#|999}}}+1)<355 | [[Letter {{#expr:{{{#|999}}}+1}}|&rarr;]] | }}</td>
<td style="font-size: 80%; text-align: right;">{{#ifexpr: ({{{#|999}}}+1)<355 | [[Letter {{#expr:{{{#|999}}}+1}}|&rarr;]] | }}</td>
</td></tr></table></td></tr>
</tr>
 
<tr style="font-size: 80%;"><td style="vertical-align: top;">Recipient</td><td style="width:100%;">{{{to|''Unknown''}}}</td></tr>
<tr style="font-size: 80%;"><td style="vertical-align: top;">Recipient</td><td style="width:100%;">{{{to|''Unknown''}}}</td></tr>
<tr style="font-size: 80%;"><td style="vertical-align: top;">Date</td><td>{{{date|''Unknown''}}}</td></tr>
<tr style="font-size: 80%;"><td style="vertical-align: top;">Date</td><td>{{{date|''Unknown''}}}</td></tr>

Revision as of 20:30, 5 September 2010

The Letters of J.R.R. Tolkien
Letter {{{#}}}
RecipientUnknown
DateUnknown

Usage

{{letter infobox
| #=
| to=
| date=
| subject=
}}
  • {{{#}}} -- the number of the letter. Required.
  • {{{to}}} -- the recipient of the letter. Defaults to Unknown.
  • {{{date}}} -- the date of the letter. Defaults to Unknown.
  • {{{subject}}} -- intended to be a list of keyword links, e.g. "[[War]]<br />[[The Lord of the Rings]]<br />[[Boromir]]" for Letter 66. Optional.
  • 'Previous' and 'Next' links are automatically generated at the bottom of the infobox from {{{#}}}.