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: 252px; background: #F0F0F0; border-collapse: collapse; border: 1px solid #40826D; line-height: 1.5; clear: right;"> {{t|1=<tr><th colspan="2" style="padding: 0; background: #40826D; color: white; font-weight: normal;">{{{image}}}</th></tr>|1{{{image|}}}=}} {{t|1=<tr><th colspan="2" style="color: white; background: #40826D;">{{{name|{{#explode:{{PAGENAME}}| (|0}}}}}</th></tr>|1{{{name|}}}=}} {{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%;">Derivation of Name</td><td style="font-size: 80%;">{{{derivation}}}</td></tr>|1{{{derivation|}}}=}} {{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%;">Owned by</td><td style="font-size: 80%;">{{{ownedby}}}</td></tr>|1{{{ownedby|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Maker</td><td style="font-size: 80%;">{{{maker}}}</td></tr>|1{{{maker|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Appearance</td><td style="font-size: 80%;">{{{appearance}}}</td></tr>|1{{{appearance|}}}=}}</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> {{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|}}}=}}
{{objects
 
 
{{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}}}
| name={{{name}}}
| caption={{{caption}}}
| pronun={{pronun}}
| othernames={{{othernames}}}
| othernames={{{othernames}}}
| derivation={{{derivation}}}
| location={{{location}}}
| location={{{location}}}
| ownedby={{{ownedby}}}
| owner={{{owner}}}
| maker={{{maker}}}
| appearance={{{appearance}}}
| appearance={{{appearance}}}
| creator={{{creator}}}
| created={{{created}}}
| createdlocation={{{createdlocation}}}
| destroyer={{{destroyer}}}
| destroyed={{{destroyed}}}
| destroyedlocation={{{destroyedlocation}}}
| notablefor={{{notablefor}}}
}}
}}
==Usage==
==Usage==
<pre>
<pre>
{{objects
{{object
| name=
| image=
| image=
| name=
| caption=
| pronun=
| othernames=
| othernames=
| derivation=
| location=
| location=
| ownedby=
| owner=
| maker=
| 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

Template:Object

Usage

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