Template:Object infobox: Difference between revisions
From Tolkien Gateway
(Tidied up) |
(Completely updated) |
||
Line 1: | Line 1: | ||
<includeonly><table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em .5em; width: | <includeonly><table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em .5em; width: 272px; background: #F0F0F0; border-collapse: collapse; border: 1px solid #40826D; line-height: 1.5;"> <tr style="color: white; background: #40826D; font-size: larger;"><th colspan="2" style="padding-bottom: 0; padding-top: 0;">{{{name|{{#explode:{{PAGENAME}}| (|0}}}}}</th></tr> {{t|1=<tr><th colspan="2" style="font-weight: normal; padding: 0; background: #40826D; color: white;">{{{image}}}</th></tr> <tr><td colspan="2" class="seqcream" style="background: #40826D; color: white; font-size: 80%; text-align: center; padding-left: 10px; padding-right: 10px; height: 2px;">{{{caption|}}}</td></tr>|1{{{image|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%; padding-right: 0px;">Pronunciation</td><td style="font-size: 80%;">{{{pronun}}}</td></tr>|1{{{pronun|}}}=}}{{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Other names</td><td style="font-size: 80%;">{{{othernames}}}</td></tr>|1{{{othernames|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Location</td><td style="font-size: 80%;">{{{location}}}</td></tr>|1{{{location|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Owner</td><td style="font-size: 80%;">{{{owner}}}</td></tr>|1{{{owner|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Appearance</td><td style="font-size: 80%;">{{{appearance}}}</td></tr>|1{{{appearance|}}}=}} | ||
{{ | |||
{{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">{{#if:{{{creator|}}}|Creator|Created}}</td><td style="font-size: 80%;">{{{creator}}}<br/>{{#if:{{{createdlocation|}}}|{{{createdlocation|}}}{{t|1=, {{{created|}}}|1{{{created|}}}=}}|{{{created|}}}}}</td></tr>|1{{{created|}}}{{{creator|}}}{{{createdlocation|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">{{#if:{{{destroyer|}}}|Destroyer|Destroyed}}</td><td style="font-size: 80%;">{{{destroyer}}}<br/>{{#if:{{{destroyedlocation|}}}|{{{destroyedlocation|}}}{{t|1=, {{{destroyed|}}}|1{{{destroyed|}}}=}}|{{{destroyed|}}}}}</td></tr>|1{{{destroyed|}}}{{{destroyer|}}}{{{destroyedlocation|}}}=}}{{#ifexist:Category:Images of {{{gallery|{{PAGENAME}}}}}|<tr style="vertical-align: top;"><td style="font-size: 80%;">'''Gallery'''</td><td style="font-size: 80%;">'''[[:Category:Images of {{{gallery|{{PAGENAME}}}}}|Images of {{{gallery|{{{name|{{#explode:{{PAGENAME}}| (|0}}}}}}}}]]'''</td></tr>}} </table></includeonly><noinclude> | |||
{{object | |||
| name={{{name}}} | |||
| image={{{image}}} | | image={{{image}}} | ||
| | | caption={{{caption}}} | ||
| pronun={{pronun}} | |||
| othernames={{{othernames}}} | | othernames={{{othernames}}} | ||
| location={{{location}}} | | location={{{location}}} | ||
| | | owner={{{owner}}} | ||
| appearance={{{appearance}}} | | appearance={{{appearance}}} | ||
| creator={{{creator}}} | |||
| created={{{created}}} | |||
| createdlocation={{{createdlocation}}} | |||
| destroyer={{{destroyer}}} | |||
| destroyed={{{destroyed}}} | |||
| destroyedlocation={{{destroyedlocation}}} | |||
| notablefor={{{notablefor}}} | |||
}} | }} | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{ | {{object | ||
| name= | |||
| image= | | image= | ||
| | | caption= | ||
| pronun= | |||
| othernames= | | othernames= | ||
| location= | | location= | ||
| | | owner= | ||
| appearance= | | appearance= | ||
| creator= | |||
| created= | |||
| createdlocation= | |||
| destroyer= | |||
| destroyed= | |||
| destroyedlocation= | |||
| notablefor= | |||
</pre> | </pre> | ||
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude> | [[Category:Infobox templates|{{PAGENAME}}]]</noinclude> |
Revision as of 18:55, 14 January 2018
Usage
{{object | name= | image= | caption= | pronun= | othernames= | location= | owner= | appearance= | creator= | created= | createdlocation= | destroyer= | destroyed= | destroyedlocation= | notablefor=