Template:Object infobox: Difference between revisions

From Tolkien Gateway
(Tidied up)
m (Styling)
 
(12 intermediate revisions by 2 users not shown)
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" class="tginfobox" style="float:right; margin:0 0 .5em .5em; 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>}}{{t|1=<tr><th colspan="2" style="font-weight: normal; font-size: 80%; color: white; background: #40826D;">'''Audio'''</th></tr>|1{{{audio|}}}=}}{{t|1=<tr style="vertical-align: top; text-align:center;"><td colspan="2" style="font-size: 80%;">{{{audio}}}</td></tr>|1{{{audio|}}}=}}{{t|1=<tr style="vertical-align: top;"><td colspan="2" style="font-size: 80%; text-align:center">{{{audiocaption}}}</td></tr>|1{{{audiocaption|}}}=}} </table></includeonly><noinclude>
{{objects
{{object infobox
| 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}}}
| type={{{type}}}
| appearance={{{appearance}}}
| appearance={{{appearance}}}
| creator={{{creator}}}
| created={{{created}}}
| createdlocation={{{createdlocation}}}
| destroyer={{{destroyer}}}
| destroyed={{{destroyed}}}
| destroyedlocation={{{destroyedlocation}}}
| notablefor={{{notablefor}}}
| audio={{{audio}}}
| audiocaption={{{audiocaption}}}
}}
}}
==Usage==
==Usage==
<pre>
<pre>
{{objects
{{object infobox
| name=
| image=
| image=
| name=
| caption=
| pronun=
| othernames=
| othernames=
| derivation=
| location=
| location=
| ownedby=
| owner=
| maker=
| type=
| appearance=
| appearance=
| creator=
| created=
| createdlocation=
| destroyer=
| destroyed=
| destroyedlocation=
| notablefor=
| audio=
| audiocaption=
}}
}}
</pre>
</pre>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:26, 4 June 2023

{{{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}}}
Audio
{{{audio}}}
{{{audiocaption}}}

Usage[edit source]

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