Template:Megastructure infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "<noinclude>↵{{clear}}↵===Usage instructions===" to "<noinclude>{{clear}} ==Usage instructions==")
m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} ?class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} ?class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to " {{Infobox|entry|title=$2|content=$1}}")
Line 10: Line 10:
}}
}}
|-
|-
{{#if:{{{description|}}}|
{{Infobox|entry|title={{{description-title|Description}}}|content={{{description|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{location-title|Location}}}|content={{{location|}}}}}
{{{description-title|Description}}}:
{{Infobox|entry|title={{{anchor-title|Gravitational anchor}}}|content={{{anchor|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{description}}}
}}
|-
{{#if:{{{location|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{location-title|Location}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{location}}}
}}
|-
{{#if:{{{anchor|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{anchor-title|Gravitational anchor}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{anchor}}}
}}
|-
{{#if:{{{hideb|}}}||
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section2-title|Operation overview}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section2-title|Operation overview}}}
}}
}}
|-
|-
{{#if:{{{type|}}}|
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{function-title|Function}}}|content={{{function|}}}}}
{{{type-title|Type}}}:
{{Infobox|entry|title={{{caretaker-title|Attached AI(s)}}}|content={{{caretaker|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{constructed-title|Date of construction}}}|content={{{constructed|}}}}}
{{{type}}}
{{Infobox|entry|title={{{destroyed-title|Date of destruction}}}|content={{{destroyed|}}}}}
}}
|-
{{#if:{{{function|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{function-title|Function}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{function}}}
}}
|-
{{#if:{{{caretaker|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{caretaker-title|Attached AI(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{caretaker}}}
}}
|-
{{#if:{{{constructed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{constructed-title|Date of construction}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{constructed}}}
}}
|-
{{#if:{{{destroyed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{destroyed-title|Date of destruction}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{destroyed}}}
}}
|-
{{#if:{{{hidec|}}}||
{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section3-title|Structural information}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section3-title|Structural information}}}
}}
}}
|-
|-
{{#if:{{{diameter|}}}|
{{Infobox|entry|title={{{diameter-title|Diameter}}}|content={{{diameter|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{surface width-title|Surface width}}}|content={{{surface width|}}}}}
{{{diameter-title|Diameter}}}:
{{Infobox|entry|title={{{surface depth-title|Surface depth}}}|content={{{surface depth|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{gravity-title|Gravity}}}|content={{{gravity|}}}}}
{{{diameter}}}
{{Infobox|entry|title={{{surface temperature-title|Surface temperature}}}|content={{{surface temperature|}}}}}
}}
{{Infobox|entry|title={{{atmosphere-title|Atmospheric composition}}}|content={{{atmosphere|}}}}}
|-
{{#if:{{{surface width|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{surface width-title|Surface width}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{surface width}}}
}}
|-
{{#if:{{{surface depth|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{surface depth-title|Surface depth}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{surface depth}}}
}}
|-
{{#if:{{{gravity|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{gravity-title|Gravity}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{gravity}}}
}}
|-
{{#if:{{{surface temperature|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{surface temperature-title|Surface temperature}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{surface temperature}}}
}}
|-
{{#if:{{{atmosphere|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{atmosphere-title|Atmospheric composition}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{atmosphere}}}
}}
|-
{{Infobox|end}}<noinclude>{{clear}}
{{Infobox|end}}<noinclude>{{clear}}
==Usage instructions==
==Usage instructions==

Revision as of 13:30, August 29, 2023

Megastructure infobox
General overview
Operation overview
Structural information
 

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{Megastructure infobox
|image=
|description=
|location=
|anchor=
|type=
|function=
|caretaker=
|constructed=
|destroyed=
|diameter=
|surface width=
|surface depth=
|gravity=
|surface temperature=
|atmosphere=
}}

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 General Overview section header)
  • hideb (hides Operation Overview section header)
  • hideb (hides Structural Info section header)
|hidea=
|hideb=
|hidec=