Template:Location infobox: Difference between revisions

From Tolkien Gateway
m (Typo in hex)
m (Changes realms to regions, and added major towns (to more closely align with T:Kingdom))
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 #567057; line-height:1.5;"> <tr style="color: white; background: #567057; 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: #567057; 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: #567057; color: white;">{{{image}}}</th></tr> <tr><td colspan="2" class="seqcream" style="background: #567057; 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;">'''General Information'''</th></tr>|1{{{othernames|}}}{{{pronun|}}}{{{location|}}}{{{type|}}}{{{realms|}}}{{{inhabitants|}}}{{{description|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">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%;">Type</td><td style="font-size: 80%;">{{{type}}}</td></tr>|1{{{type|}}}=}} {{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><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''History'''</th></tr>|1{{{created|}}}{{{destroyed|}}}{{{events|}}}=}}  {{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
<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 #567057; line-height:1.5;"> <tr style="color: white; background: #567057; 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: #567057; 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: #567057; color: white;">{{{image}}}</th></tr> <tr><td colspan="2" class="seqcream" style="background: #567057; 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;">'''General Information'''</th></tr>|1{{{othernames|}}}{{{pronun|}}}{{{location|}}}{{{type|}}}{{{realms|}}}{{{inhabitants|}}}{{{description|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">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%;">Type</td><td style="font-size: 80%;">{{{type}}}</td></tr>|1{{{type|}}}=}} {{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%;">Regions</td><td style="font-size: 80%;">{{{regions|}}}{{{realms}}}</td></tr>|1{{{realms|}}}{{{regions|}}}=}} {{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Major&nbsp;towns</td><td style="font-size: 80%;">{{{towns}}}</td></tr>|1{{{towns|}}}=}}{{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><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''History'''</th></tr>|1{{{created|}}}{{{destroyed|}}}{{{events|}}}=}}  {{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}}}
| name={{{name}}}
| image={{{image}}}
| image={{{image}}}
Line 7: Line 7:
| location={{{location}}}}
| location={{{location}}}}
| type={{{type}}}
| type={{{type}}}
| description={{{description}}}
| regions={{{regions}}}
| towns={{{towns}}}
| inhabitants={{{inhabitants}}}
| inhabitants={{{inhabitants}}}
| realms={{{realms}}}
| description={{{description}}}
| created={{{created}}}
| created={{{created}}}
| destroyed={{{destroyed}}}
| destroyed={{{destroyed}}}
Line 24: Line 25:
| location=
| location=
| type=
| type=
| description=
| regions=
| towns=
| inhabitants=
| inhabitants=
| realms=
| description=
| created=
| created=
| destroyed=
| destroyed=

Revision as of 13:41, 31 January 2018

{{{name}}}
{{{type}}}
{{{image}}}
{{{caption}}}
General Information
Pronunciation{{{pronun}}}}
Other names{{{othernames}}}
Location{{{location}}}}
Type{{{type}}}
Description{{{description}}}
Regions{{{regions}}}{{{realms}}}
Major towns{{{towns}}}
Inhabitants{{{inhabitants}}}
History
Created{{{created}}}
Destroyed{{{destroyed}}}
Events{{{events}}}

Usage

{{location
| name=
| image=
| caption=
| pronun=
| othernames=
| location=
| type=
| description=
| regions=
| towns=
| inhabitants=
| created=
| destroyed=
| events=
}}