Tolkien Gateway

Template:Letter infobox

(Difference between revisions)
(added subject)
m (css tweak)
Line 6: Line 6:
 
<tr style="font-size: 80%;"><td>Recipient</td><td>{{{to}}}</td></tr>
 
<tr style="font-size: 80%;"><td>Recipient</td><td>{{{to}}}</td></tr>
 
<tr style="font-size: 80%;"><td>Date</td><td>{{{date}}}</td></tr>
 
<tr style="font-size: 80%;"><td>Date</td><td>{{{date}}}</td></tr>
<tr style="font-size: 80%;"><td>Subject(s)</td><td>{{{subject}}}</td></tr>
+
{{#if: {{{subject}}} | <tr style="font-size: 80%;"><td>Subject(s)</td><td>{{{subject}}}</td></tr> | }}
  
<tr style="font-size:80%; border-top:1px solid #ccc;">
+
<tr style="font-size:80%;">
<td>{{#ifexpr:({{{#|0}}}-1)>0|[[Letter {{#expr:{{{#|0}}}-1}}|&larr; Letter {{#expr:{{{#|0}}}-1}}]]| }}</td>
+
<td style="margin:.5em;">{{#ifexpr: ({{{#|0}}}-1)>0 | [[Letter {{#expr:{{{#|0}}}-1}}|&larr; Letter {{#expr:{{{#|0}}}-1}}]] | }}</td>
<td style="text-align: right;">{{#ifexpr:({{{#|999}}}+1)<355|[[Letter {{#expr:{{{#|999}}}+1}}|Letter {{#expr:{{{#|999}}}+1}}]] &rarr;| }}</td>
+
<td style="margin:.5em; text-align: right;">{{#ifexpr: ({{{#|999}}}+1)<355 | [[Letter {{#expr:{{{#|999}}}+1}}|Letter {{#expr:{{{#|999}}}+1}}]] &rarr; | }}</td>
 
</tr>
 
</tr>
  
 
</table>
 
</table>

Revision as of 13:45, 3 August 2010

The Letters of J.R.R. Tolkien
Letter {{{#}}}
Recipient{{{to}}}
Date{{{date}}}
Subject(s){{{subject}}}