Template:Location infobox: Difference between revisions

From Tolkien Gateway
mNo edit summary
(Added "Rebuilt")
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:#78866B; border-collapse:collapse; border:1px solid #78866B; font-size:smaller; line-height:1.5; ">
<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><th colspan="2" style="font-weight: normal; font-size: 80%; background: #ACE1AF;">'''{{#if:{{{inhabitants|}}}|People and History|History}}'''</th></tr>|1{{{created|}}}{{{destroyed|}}}{{{rebuilt|}}}{{{events|}}}=}} {{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%;">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%;">Rebuilt</td><td style="font-size: 80%;">{{{rebuilt}}}</td></tr>|1{{{rebuilt|}}}=}}{{t|1=<tr style="vertical-align: top;"><td style="font-size: 80%;">Events</td><td style="font-size: 80%;">{{{events}}}</td></tr>|1{{{events|}}}=}} {{#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>{{location infobox
<tr style="text-align:center; background:#f0f0f0;">
| name={{{name}}}
<td colspan="2" style="padding:0; background:#78866B; color:#fff;">{{{image}}}</td>
| image={{{image}}}
</tr>
| caption={{{caption}}}
<tr style="color:#fff; background:#78866B; font-size:larger;">
| pronun={{{pronun}}}}
<th colspan="2">{{{name}}}</th>
| othernames={{{othernames}}}
</tr> <tr><th colspan="2" style="text-align:left; font-weight:normal; background:#ACE1AF;">'''Physical Description'''</th></tr> {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Type</td><td>{{{type}}}</td></tr>|1{{{type}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Location</td><td>{{{location}}}</td></tr>|1{{{location}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Inhabitants</td><td>{{{inhabitants}}}</td></tr>|1{{{inhabitants}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Kingdoms subjected to</td><td>{{{realms}}}</td></tr>|1{{{realms}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Description</td><td>{{{description}}}</td></tr>|1{{{description}}}=}}
| location={{{location}}}}
 
| type={{{type}}}
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#ACE1AF;">'''General Information'''</th></tr> {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Other names</td><td>{{{othernames}}}</td></tr>|1{{{othernames}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Etymology</td><td>{{{etymology}}}</td></tr>|1{{{etymology}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>Events</td><td>{{{events}}}</td></tr>|1{{{events}}}=}} {{t|1=<tr style="vertical-align: top; background: #f0f0f0"><td>References</td><td>{{{references}}}</td></tr>|1{{{references}}}=}}<noinclude>
| description={{{description}}}
{{clear}}
| regions={{{regions}}}
| towns={{{towns}}}
| inhabitants={{{inhabitants}}}
| created={{{created}}}
| destroyed={{{destroyed}}}
| rebuilt={{{rebuilt}}}
| events={{{events}}}
}}
==Usage==
==Usage==
<pre>
<pre>
{{location
{{location infobox
| name=
| image=
| image=
| name=
| caption=
| pronun=
| othernames=
| othernames=
| etymology=
| location=
| type=
| type=
| location=
| description=
| regions=
| towns=
| inhabitants=
| inhabitants=
| realms=
| created=
| description=
| destroyed=
| rebuilt=
| events=
| events=
| references=
}}
|}}
</pre>
</pre>
[[Category:Infobox templates|Location]]</noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Revision as of 19:28, 14 March 2020

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

Usage

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