Template:Location infobox: Difference between revisions

From Tolkien Gateway
m (Non-breakign space)
(Changed infobox width, colour and added image caption)
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 #78866B; line-height: 1.5;clear:right;"> {{t|1=<tr><th colspan="2" style="font-weight: normal; padding: 0; background: #78866B; color: white;">{{{image}}}</th></tr>|1{{{image|}}}=}} {{t|1=<tr style="color: white; background: #78866B;"><th colspan="2">{{{name}}}</th></tr>|1{{{name|}}}=}} {{t|1=<tr><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''Physical Description'''</th></tr>|1{{{type|}}}{{{location|}}}{{{realms|}}}{{{inhabitants|}}}{{{description|}}}{{{climate|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Type</td><td style="font-size: 80%;">{{{type}}}</td></tr>|1{{{type|}}}=}} {{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%;">Realms</td><td style="font-size: 80%;">{{{realms}}}</td></tr>|1{{{realms|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Inhabitants</td><td style="font-size: 80%;">{{{inhabitants}}}</td></tr>|1{{{inhabitants|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Description</td><td style="font-size: 80%;">{{{description}}}</td></tr>|1{{{description|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Climate</td><td style="font-size: 80%;">{{{climate}}}</td></tr>|1{{{climate|}}}=}} {{t|1=<tr><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''General Information'''</th></tr>|1{{{othernames|}}}{{{etymology|}}}{{{created|}}}{{{destroyed|}}}{{{events|}}}{{{references|}}}=}} {{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%;">Etymology</td><td style="font-size: 80%;">{{{etymology}}}</td></tr>|1{{{etymology|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Created</td><td style="font-size: 80%;">{{{created}}}</td></tr>|1{{{created|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Destroyed</td><td style="font-size: 80%;">{{{destroyed}}}</td></tr>|1{{{destroyed|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Events</td><td style="font-size: 80%;">{{{events}}}</td></tr>|1{{{events|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">References</td><td style="font-size: 80%;">{{{references}}}</td></tr>|1{{{references|}}}=}}</table></includeonly><noinclude>{{location
<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 #405441; line-height:1.5;"> <tr style="color: white; background: #405441; 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: #405441; color: white; font-size: 80%; text-align: center;" class="seqcream">{{{type|}}}</td></tr> {{t|1=<tr><th colspan="2" style="font-weight: normal; padding: 0; background: #405441; color: white;">{{{image}}}</th></tr> <tr><td colspan="2" class="seqcream" style="background: #405441; color: white; font-size: 80%; text-align: center; padding-left: 10px; padding-right: 10px; height: 2px;">{{{caption|}}}</td></tr>|1{{{image|}}}=}} {{t|1=<tr><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''Physical Description'''</th></tr>|1{{{type|}}}{{{location|}}}{{{realms|}}}{{{inhabitants|}}}{{{description|}}}{{{climate|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Type</td><td style="font-size: 80%;">{{{type}}}</td></tr>|1{{{type|}}}=}} {{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%;">Realms</td><td style="font-size: 80%;">{{{realms}}}</td></tr>|1{{{realms|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Inhabitants</td><td style="font-size: 80%;">{{{inhabitants}}}</td></tr>|1{{{inhabitants|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Description</td><td style="font-size: 80%;">{{{description}}}</td></tr>|1{{{description|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Climate</td><td style="font-size: 80%;">{{{climate}}}</td></tr>|1{{{climate|}}}=}} {{t|1=<tr><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''General Information'''</th></tr>|1{{{othernames|}}}{{{etymology|}}}{{{created|}}}{{{destroyed|}}}{{{events|}}}{{{references|}}}=}} {{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%;">Etymology</td><td style="font-size: 80%;">{{{etymology}}}</td></tr>|1{{{etymology|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Created</td><td style="font-size: 80%;">{{{created}}}</td></tr>|1{{{created|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Destroyed</td><td style="font-size: 80%;">{{{destroyed}}}</td></tr>|1{{{destroyed|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Events</td><td style="font-size: 80%;">{{{events}}}</td></tr>|1{{{events|}}}=}}</table></includeonly><noinclude>{{location
| name={{{name}}}
| image={{{image}}}
| image={{{image}}}
| name={{{name}}}
| caption={{{caption}}}
| type={{{type}}}
| type={{{type}}}
| location={{{location}}}}
| location={{{location}}}}
Line 13: Line 15:
| destroyed={{{destroyed}}}
| destroyed={{{destroyed}}}
| events={{{events}}}
| events={{{events}}}
| references='''DEPRECATED'''
}}
}}
==Usage==
==Usage==
<pre>
<pre>
{{location
{{location
| name=
| image=
| image=
| name=
| caption=
| type=
| type=
| location=
| location=
Line 33: Line 35:
}}
}}
</pre>
</pre>
'''N.B.''' The {{{references}}} parameter has been deprecated; please include references within articles instead.
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Revision as of 09:42, 28 January 2018

{{{name}}}
{{{type}}}
{{{image}}}
{{{caption}}}
Physical Description
Type{{{type}}}
Location{{{location}}}}
Realms{{{realms}}}
Inhabitants{{{inhabitants}}}
Description{{{description}}}
Climate{{{climate}}}
General Information
Other names{{{othernames}}}
Etymology{{{etymology}}}
Created{{{created}}}
Destroyed{{{destroyed}}}
Events{{{events}}}

Usage

{{location
| name=
| image=
| caption=
| type=
| location=
| inhabitants=
| realms=
| description=
| climate=
| othernames=
| etymology=
| created=
| destroyed=
| events=
}}