Template:Base infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to " {{Infobox|entry|title=$2|content=$1}}")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(11 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}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Facility information}}}|bg=#E6D3A3|entries=
}}
|-
{{#if:{{{hidea|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{section2-title|Facility information}}}
}}
|-
{{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 18: 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={{{section2-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 28: 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 instructions==
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.


Line 55: 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>

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=