Template:Letter infobox: Difference between revisions
From Tolkien Gateway
m (Trying to fix this mess) |
(Removal of 'Previous' and 'Next' arrows due to break of code with new letters) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em | <table border="0" cellspacing="0" cellpadding="4" class="tginfobox" style="float:right; margin:0 0 .5em 1em; 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>Letter {{{#}}}</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> | </table> | ||
<tr | |||
<td | |||
</td></tr></table></ | |||
<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> | }} | |||
</table> | |||
<noinclude> | <noinclude> | ||
{{clear}} | {{clear}} | ||
Line 27: | Line 17: | ||
* {{{date}}} -- the date 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. "<nowiki>[[War]]<br />[[The Lord of the Rings]]<br />[[Boromir]]</nowiki>" for [[Letter 66]]. ''Optional''. | * {{{subject}}} -- intended to be a list of keyword links, e.g. "<nowiki>[[War]]<br />[[The Lord of the Rings]]<br />[[Boromir]]</nowiki>" for [[Letter 66]]. ''Optional''. | ||
* 'Previous' and 'Next' links are automatically generated at the bottom of the infobox from {{{#}}}. | * <s>'Previous' and 'Next' links are automatically generated at the bottom of the infobox from {{{#}}}.</s> | ||
[[Category:Infobox templates|{{PAGENAME}}]] | [[Category:Infobox templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 12:20, 29 November 2023
The Letters of J.R.R. Tolkien | ||
| ||
---|---|---|
Recipient | Unknown | |
Date | Unknown |
Usage[edit source]
{{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 {{{#}}}.