Template:Base infobox: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
(Updating template)
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 #292914; font-size:smaller; line-height:1.5;">
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; padding:2px; background:{{{BG|#666600}}}; 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:#666600; 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:#5C5C33; font-size:larger;"><th colspan="2">{{{base}}}</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:#85855C;">'''History'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Location</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}}; padding: 7px;" colspan="2" {{!}} {{{image|}}}
}}
{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#85855C}}}" {{!}} {{{section1-title|History}}}}}
{{!}}-
{{#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 #33331A; border-bottom: 1px solid #33331A;">Built</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{built|}}}|
{{!}} 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;" {{!}}
'''{{{built-title|Built}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{built|}}}
{{{built|}}}
</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 #33331A; border-bottom: 1px solid #33331A;">Destroyed</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{destroyed|}}}|
{{!}} 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-title|Destroyed}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{destroyed|}}}
{{{destroyed|}}}
</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 #33331A; border-bottom: 1px solid #33331A;">Purpose</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{purpose|}}}|
{{!}} 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;" {{!}}
'''{{{purpose-title|Purpose}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{purpose|}}}
{{{purpose|}}}
</td></tr>|1{{{purpose|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Usage</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{usage|}}}|
{{!}} 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;" {{!}}
'''{{{usage-title|Usage}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{usage|}}}
{{{usage|}}}
</td></tr>|1{{{usage|}}}=}} {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#85855C;">'''Facility 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 #33331A; border-bottom: 1px solid #33331A;">Section(s)</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{{section(s)|}}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
</td></tr>|1{{{section(s)|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Defenses</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#85855C}}}" {{!}} {{{section2-title|Facility information}}}}}
{{{defence|}}}
{{!}}-
</td></tr>|1{{{defence|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Armament</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{#if:{{{defense|}}}|
{{!}} 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;" {{!}}
'''{{{defense-title|Defense}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{defense|}}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{!}} 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;" {{!}}
'''{{{armament-title|In service}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{armament|}}}
{{{armament|}}}
</td></tr>|1{{{armament|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Equipment</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{equipment|}}}|
{{!}} 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;" {{!}}
'''{{{equipment-title|Equipment}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{equipment|}}}
{{{equipment|}}}
</td></tr>|1{{{equipment|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Vehicles</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{vehicles|}}}|
{{!}} 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;" {{!}}
'''{{{vehicles-title|Vehicles}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{vehicles|}}}
{{{vehicles|}}}
</td></tr>|1{{{vehicles|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Known personnel</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{soldier(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; width:100px;" {{!}}
'''{{{soldier(s)-title|Known personnel}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{soldier(s)|}}}
{{{soldier(s)|}}}
</td></tr>|1{{{soldier(s)|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Known commanders</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{commander(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; width:100px;" {{!}}
'''{{{commander(s)-title|Known commanders}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{commander(s)|}}}
{{{commander(s)|}}}
</td></tr>|1{{{commander(s)|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Era(s)</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{era(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; width:100px;" {{!}}
'''{{{era(s)-title|Era(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;" {{!}}
{{{era(s)|}}}
{{{era(s)|}}}
</td></tr>|1{{{era(s)|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">Notable</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#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}}}''':
{{!}} 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 #33331A; border-bottom: 1px solid #33331A;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #33331A; border-bottom: 1px solid #33331A;">
{{!}}-}}
{{#if:{{{affiliation|}}}|
{{!}} 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;" {{!}}
'''{{{affiliation-title|Affiliation}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{affiliation|}}}
{{{affiliation|}}}
</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:Base Infobox|[Source]]]</td></tr></table><noinclude>
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" |&nbsp;
|}<noinclude>{{clear}}
==Usage==
==Usage==
Copy and paste the following into the article and fill in the fields.
<pre>
<pre>
{{Base Infobox
{{Base Infobox
|base=
|base=
|image=
|image=
|location=
|built=
|built=
|destroyed=
|destroyed=
Line 57: Line 123:
</pre>
</pre>


[[Category:Templates|{{PAGENAME}}]]</noinclude>
==Custom parameters==
The following allows you to alter the title of the sub-sections:
<pre>
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=
</pre>
 
==Display parameters==
The following allows you to hide the section header
*hidea (hides History section header)
*hideb (hides Facility information section header)
 
<pre>
|hidea=
|hideb=
</pre>
 
[[Category:Updated infoboxes|{{PAGENAME}}]]</noinclude>

Revision as of 20:12, January 13, 2015

Base infobox
History
Facility information
 

Usage

Copy and paste the following into the article and fill in the fields.

{{Base Infobox
|base=
|image=
|location=
|built=
|destroyed=
|purpose=
|usage=
|section(s)=
|defense=
|armament=
|equipment=
|vehicles=
|soldier(s)=
|commander(s)=
|era(s)=
|notable=
|affiliation=
}}

Custom parameters

The following allows you to alter the title of the sub-sections:

|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=

Display parameters

The following allows you to hide the section header

  • hidea (hides History section header)
  • hideb (hides Facility information section header)
|hidea=
|hideb=