Template:Base infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(73 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; padding:2px; background:{{{BG|#D9B26F}}}; border-radius: 0 0 .7em .7em; color:{{{color1|inherit}}};"
{{Infobox|start|bg=#D9B26F|color=#000}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|section|title={{{section1-title|Facility information}}}|bg=#E6D3A3|entries=
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
{{Infobox|entry|title={{{location-title|Location}}}|content={{{location|}}}}}
{{Infobox|entry|title={{{purpose-title|Purpose}}}|content={{{purpose|}}}}}
{{Infobox|entry|title={{{length-title|Length}}}|content={{{length|}}}}}
{{Infobox|entry|title={{{width-title|Width}}}|content={{{width|}}}}}
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{Infobox|entry|title={{{surface-title|Area}}}|content={{{surface|}}}}}
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}}
{{Infobox|entry|title={{{complement-title|Complement}}}|content={{{complement|}}}}}
}}
 
{{Infobox|section|title={{{section2-title|Historical information}}}|bg=#E6D3A3|entries=
{{Infobox|entry|title={{{built-title|Built}}}|content={{{built|}}}}}
{{Infobox|entry|title={{{usage-title|In use}}}|content={{{usage|}}}}}
{{Infobox|entry|title={{{destroyed-title|Destroyed}}}|content={{{destroyed|}}}}}
{{Infobox|entry|title={{{controlledby-title|Controlled by}}}|content={{{controlledby|}}}}}
{{Infobox|entry|title={{{commander-title|Known commander(s)}}}|content={{{commander|}}}}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
}}
}}
{{!}}-
 
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
{{Infobox|end}}<noinclude>{{clear}}
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{section2-title|Facility information}}}}}
==Usage instructions==
{{!}}-
{{#if:{{{location|}}}|
{{!}} class="infoboxlabel" 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}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{purpose|}}}|
{{!}} class="infoboxlabel" 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}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{length-title|Length}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{lenght|}}}
{{!}}-}}
{{#if:{{{width|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{width-title|Width}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{height-title|Height}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{height|}}}
{{!}}-}}
{{#if:{{{surface|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{surface-title|Area}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{surface|}}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{!}} class="infoboxlabel" 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|Armament}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{complement|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{complement-title|Complement}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{complement|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{section1-title|Historical information}}}}}
{{!}}-
{{#if:{{{built|}}}|
{{!}} class="infoboxlabel" 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}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{destroyed|}}}|
{{!}} class="infoboxlabel" 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}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{usage|}}}|
{{!}} class="infoboxlabel" 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|In use}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{controlledby|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{controlledby-title|Controlled by}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{controlledby|}}}
{{!}}-}}
{{#if:{{{commander|}}}|
{{!}} class="infoboxlabel" 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-title|Known commander(s)}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" 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 info}}}''':
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" |&nbsp;
|}<noinclude>{{clear}}
==Usage==
Copy and paste the following into the article and fill in the fields.
Copy and paste the following into the article and fill in the fields.
<pre>
<pre>
{{Base infobox
{{Base infobox
Line 113: Line 39:
|complement=
|complement=
|built=
|built=
|usage=
|destroyed=
|destroyed=
|usage=
|controlledby=
|controlledby=
|notable=
|notable=
Line 122: Line 48:
==Custom parameters==
==Custom parameters==
The following allows you to alter the title of the sub-sections:
The following allows you to alter the title of the sub-sections:
<pre>
<pre>
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section1-title=
|section2-title=
|section2-title=
</pre>
</pre>


==Display parameters==
[[Category:Infobox templates]]</noinclude>
The following allows you to hide the section header
*hidea (hides Facility overview section header)
*hideb (hides Historical overview section header)
 
<pre>
|hidea=
|hideb=
</pre>
 
[[Category:Updated infoboxes|{{PAGENAME}}]]</noinclude>

Latest revision as of 11:11, June 14, 2024

Base infobox
 

Usage instructions

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

{{Base infobox
|image=
|location=
|purpose=
|length=
|width=
|height=
|surface=
|armament=
|complement=
|built=
|usage=
|destroyed=
|controlledby=
|notable=
}}

Custom parameters

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

|section1-title=
|section2-title=