Template:Letter infobox
(Difference between revisions)
(added usage instructions) |
KingAragorn (Talk | contribs) m |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width: | + | <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;clear:right;"><tr style="font-size: 80%;"><td colspan="2" style="background:#ccc; text-align:center;">''[[The Letters of J.R.R. Tolkien]]''</td></tr> <tr><th colspan="2" style="padding:0;"><table border="0" cellspacing="0" cellpadding="4" style="margin:0; width:100%"><tr style="background:#ccc;"><td style="font-size: 80%; text-align: left; width:20px;">{{#ifexpr: ({{{#|0}}}-1)>0 | [[Letter {{#expr:{{{#|0}}}-1}}|←]] | }}</td> <td>Letter {{{#}}}</td> <td style="font-size: 80%; text-align: right; width:20px;">{{#ifexpr: ({{{#|999}}}+1)<355 | [[Letter {{#expr:{{{#|999}}}+1}}|→]] | }}</td> </tr></table></th></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> {{#if: {{{subject|}}} | <tr style="font-size: 80%;"><td style="vertical-align: top;">Subject(s)</td><td>{{{subject}}}</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><th colspan="2" style=" | + | |
− | < | + | |
− | + | ||
− | {{# | + | |
− | <tr style="font-size:80%;"> | + | |
− | <td style=" | + | |
− | <td style=" | + | |
− | </tr> | + | |
</table> | </table> | ||
− | |||
<noinclude> | <noinclude> | ||
{{clear}} | {{clear}} | ||
Line 16: | Line 6: | ||
<pre> | <pre> | ||
{{letter infobox | {{letter infobox | ||
− | + | | #= | |
− | + | | to= | |
− | + | | date= | |
− | + | | subject= | |
}} | }} | ||
</pre> | </pre> | ||
Line 29: | Line 19: | ||
* 'Previous' and 'Next' links are automatically generated at the bottom of the infobox from {{{#}}}. | * 'Previous' and 'Next' links are automatically generated at the bottom of the infobox from {{{#}}}. | ||
− | [[Category:Infobox templates| | + | [[Category:Infobox templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> |
Latest revision as of 15:38, 12 July 2011
The Letters of J.R.R. Tolkien | ||||
| ||||
---|---|---|---|---|
Recipient | Unknown | |||
Date | Unknown |
[edit] 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 {{{#}}}.