Template:Base infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 2: Line 2:
{{Infobox|title|name={{{name|}}}}}
{{Infobox|title|name={{{name|}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{hidea|}}}||
 
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{section2-title|Facility information}}}
{{Infobox|section|title={{{section2-title|Facility information}}}|bg=#E6D3A3|entries=
}}
|-
{{Infobox|entry|title={{{location-title|Location}}}|content={{{location|}}}}}
{{Infobox|entry|title={{{location-title|Location}}}|content={{{location|}}}}}
{{Infobox|entry|title={{{purpose-title|Purpose}}}|content={{{purpose|}}}}}
{{Infobox|entry|title={{{purpose-title|Purpose}}}|content={{{purpose|}}}}}
Line 14: Line 12:
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}}
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}}
{{Infobox|entry|title={{{complement-title|Complement}}}|content={{{complement|}}}}}
{{Infobox|entry|title={{{complement-title|Complement}}}|content={{{complement|}}}}}
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{section1-title|Historical information}}}
}}
}}
|-
 
{{Infobox|section|title={{{section1-title|Historical information}}}|bg=#E6D3A3|entries=
{{Infobox|entry|title={{{built-title|Built}}}|content={{{built|}}}}}
{{Infobox|entry|title={{{built-title|Built}}}|content={{{built|}}}}}
{{Infobox|entry|title={{{usage-title|In use}}}|content={{{usage|}}}}}
{{Infobox|entry|title={{{usage-title|In use}}}|content={{{usage|}}}}}
Line 24: Line 21:
{{Infobox|entry|title={{{commander-title|Known commander(s)}}}|content={{{commander|}}}}}
{{Infobox|entry|title={{{commander-title|Known commander(s)}}}|content={{{commander|}}}}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
}}
{{Infobox|end}}<noinclude>{{clear}}
{{Infobox|end}}<noinclude>{{clear}}
==Usage==
==Usage==
Line 51: Line 50:


<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 18:07, August 28, 2023

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=