Template:Base infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "cellspacing="0" {{!}}- !" to "cellspacing="0" !")
mNo edit summary
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:260px; background:{{{BG|#D9B26F}}}; color:{{{color1|inherit}}}" cellspacing="0"
{{Infobox|start|bg=#D9B26F|color=#000}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}" class="infoboxheading" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
{{!}}-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{image|}}}|
 
! style="background:{{{imageBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999}}}" colspan="2" class="infoboxmedia" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Facility information}}}|bg=#E6D3A3|entries=
{{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|}}}}}
}}
}}
{{!}}-
 
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
{{Infobox|section|title={{{section2-title|Historical information}}}|bg=#E6D3A3|entries=
! colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#E6D3A3}}}" class="infoboxsubheading" {{!}} {{{section2-title|Facility information}}}}}
{{Infobox|entry|title={{{built-title|Built}}}|content={{{built|}}}}}
{{!}}-
{{Infobox|entry|title={{{usage-title|In use}}}|content={{{usage|}}}}}
{{#if:{{{location|}}}|
{{Infobox|entry|title={{{destroyed-title|Destroyed}}}|content={{{destroyed|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{controlledby-title|Controlled by}}}|content={{{controlledby|}}}}}
'''{{{location-title|Location}}}''':
{{Infobox|entry|title={{{commander-title|Known commander(s)}}}|content={{{commander|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
{{{location|}}}
}}
{{!}}-}}
 
{{#if:{{{purpose|}}}|
{{Infobox|end}}<noinclude>{{clear}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{purpose-title|Purpose}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{purpose|}}}
{{!}}-}}
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{length-title|Length}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length|}}}
{{!}}-}}
{{#if:{{{width|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{width-title|Width}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{width|}}}
{{!}}-}}
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{height-title|Height}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height|}}}
{{!}}-}}
{{#if:{{{surface|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{surface-title|Area}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{surface|}}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{armament-title|Armament}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{armament|}}}
{{!}}-}}
{{#if:{{{complement|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{complement-title|Complement}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{complement|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#E6D3A3}}}" class="infoboxsubheading" {{!}} {{{section1-title|Historical information}}}}}
{{!}}-
{{#if:{{{built|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{built-title|Built}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{built|}}}
{{!}}-}}
{{#if:{{{usage|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{usage-title|In use}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{usage|}}}
{{!}}-}}
{{#if:{{{destroyed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{destroyed-title|Destroyed}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{destroyed|}}}
{{!}}-}}
{{#if:{{{controlledby|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{controlledby-title|Controlled by}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{controlledby|}}}
{{!}}-}}
{{#if:{{{commander|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{commander-title|Known commander(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{commander|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
'''{{{notable-title|Notable info}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable|}}}
{{!}}-}}
| class="infoboxfooter" colspan="2" | &nbsp;
|}<noinclude>{{clear}}
==Usage==
==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 121: 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>
==Display parameters==
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>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 14:32, March 22, 2024

Base infobox
 

Usage

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=