Template:Object infobox: Difference between revisions

From Tolkien Gateway
m (Tweaked)
m (Further tweeks)
Line 1: Line 1:
<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> <tr><td colspan="2" style="padding: 0; background: #40826D; font-size: 80%; text-align: center; color: white;" class="seqcream">{{{type|}}}</td></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&nbsp;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|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Notable&nbsp;for</td><td style="font-size: 80%;">{{{notablefor}}}</td></tr>|1{{{notablefor|}}}=}}{{#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>
<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> <tr><td colspan="2" style="padding: 0; background: #40826D; font-size: 80%; text-align: center; color: white;" class="seqcream">{{{type|}}}</td></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&nbsp;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%;">{{#if:{{{creator|}}}|{{{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%;">{{#if:{{{destroyer|}}}|{{{destroyer|}}}<br/>}}{{#if:{{{destroyedlocation|}}}|{{{destroyedlocation|}}}{{t|1=, {{{destroyed|}}}|1{{{destroyed|}}}=}}|{{{destroyed|}}}}}</td></tr>|1{{{destroyed|}}}{{{destroyer|}}}{{{destroyedlocation|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Notable&nbsp;for</td><td style="font-size: 80%;">{{{notablefor}}}</td></tr>|1{{{notablefor|}}}=}}{{#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 infobox
{{object infobox
| name={{{name}}}
| name={{{name}}}

Revision as of 17:17, 15 January 2018

{{{name}}}
{{{type}}}
{{{image}}}
{{{caption}}}
Pronunciation{{{pronun}}}
Other names{{{othernames}}}
Location{{{location}}}
Owner{{{owner}}}
Appearance{{{appearance}}}
Creator{{{creator}}}
{{{createdlocation}}}, {{{created}}}
Destroyer{{{destroyer}}}
{{{destroyedlocation}}}, {{{destroyed}}}
Notable for{{{notablefor}}}

Usage

{{object infobox
| name=
| image=
| caption=
| pronun=
| othernames=
| location=
| owner=
| type=
| appearance=
| creator=
| created=
| createdlocation=
| destroyer=
| destroyed=
| destroyedlocation=
| notablefor=
}}