Template:City infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
mNo edit summary
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #14293D; font-size:smaller; line-height:1.5;">
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; padding:2px; background:{{{BG|#3D5266}}}; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em; color:{{{color1|inherit}}};"
<tr><td colspan="2"><div id="infoboxinternal">
{{!}}-
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#906050; border-collapse:collapse;">
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#ffffff}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<tr style="text-align:center; color:#ffffff; background: #3D5266; font-size:larger;"><th colspan="2">{{{city}}}</th></tr>
{{!}}-
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|##808000}}};">{{{image|}}}</td></tr>
{{#if:{{{image|}}}|
{{t|1=|1{{{hideb|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#4C6680;">'''General information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">Location</td><td class="infoboxcell" style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
}}
{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#ffffff}}}; text-align:center; background:{{{sectionBG|#4C6680}}}" {{!}} {{{section1-title|Overview}}}}}
{{!}}-
{{#if:{{{location|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{location-title|Location}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{location|}}}
{{{location|}}}
</td></tr>|1{{{location|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">Built</td><td class="infoboxcell" style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">
{{!}}-}}
{{{built|}}}
{{#if:{{{totalarea|}}}|
</td></tr>|1{{{built|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">Destroyed</td><td class="infoboxcell" style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
{{{destroyed|}}}
'''{{{totalarea-title|Total area}}}''':
</td></tr>|1{{{destroyed|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">Notable events</td><td class="infoboxcell" style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{totalarea|}}}
{{!}}-}}
{{#if:{{{population|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{population-title|Population}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{population|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{notable-title|Notable structure(s)}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{notable|}}}
{{{notable|}}}
</td></tr>|1{{{notable|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #666633; border-bottom: 1px solid #666633;">
{{!}}-}}
{{{affiliation|}}}
{{#if:{{{governance|}}}|
</td></tr>|1{{{affiliation|}}}=}}</table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">[[Template:City|[Source]]]</td></tr></table><noinclude>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 
'''{{{governance-title|Governed by}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{governance|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" |&nbsp;
|}<noinclude>
==Usage==
==Usage==
<pre>
<pre>
{{City
{{City infobox
|city =
|image=
|image =
|location=
|location =
|totalarea=
|built =
|population=
|destroyed =
|notable=  
|notable =
|governance=
|affiliation =
}}
}}
</pre>
</pre>


[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Updated infoboxes|{{PAGENAME}}]]
</noinclude>

Revision as of 10:37, September 28, 2013

City infobox
Overview
 

Usage

{{City infobox
|image=
|location=
|totalarea=
|population=
|notable= 
|governance=
}}