Tolkien Gateway

Template:Letter infobox

(Difference between revisions)
m (more css tweaks...)
m
Line 7: Line 7:
 
<tr style="font-size:80%;">
 
<tr style="font-size:80%;">
 
<td colspan="2">
 
<td colspan="2">
<table border="0" cellspacing="0" cellpadding="4"><tr>
+
<table border="0" cellspacing="0" cellpadding="4" style="width:100%"><tr>
 
<td>{{#ifexpr: ({{{#|0}}}-1)>0 | [[Letter {{#expr:{{{#|0}}}-1}}|&larr; Letter {{#expr:{{{#|0}}}-1}}]] | }}</td>
 
<td>{{#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="text-align: right;">{{#ifexpr: ({{{#|999}}}+1)<355 | [[Letter {{#expr:{{{#|999}}}+1}}|Letter {{#expr:{{{#|999}}}+1}}]] &rarr; | }}</td>

Revision as of 16:13, 3 August 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 {{{#}}}.