Template:Megastructure infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "border-bottom:1px solid {{{lineBG\|([^\n}]+)}}}; border-top:1px solid {{{lineBG\|[^\n}]+}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;"" to "border-color:{{{lineBG|$1}}}")
No edit summary
 
(47 intermediate revisions by one other user not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:260px; background:{{{BG|#668080}}}; color:{{{color1|#000}}};"
{{Infobox|start|bg=#668080}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#FFFFFF}}}; 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|General overview}}}|bg=#8FB2B2|color=#000|entries=
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|<div style="clear:both">{{{caption}}}</div>}}
{{Infobox|entry|title={{{description-title|Description}}}|content={{{description|}}}}}
{{Infobox|entry|title={{{location-title|Location}}}|content={{{location|}}}}}
{{Infobox|entry|title={{{anchor-title|Gravitational anchor}}}|content={{{anchor|}}}}}
}}
 
{{Infobox|section|title={{{section2-title|Operation overview}}}|bg=#8FB2B2|color=#000|entries=
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{Infobox|entry|title={{{function-title|Function}}}|content={{{function|}}}}}
{{Infobox|entry|title={{{caretaker-title|Attached AI(s)}}}|content={{{caretaker|}}}}}
{{Infobox|entry|title={{{constructed-title|Date of construction}}}|content={{{constructed|}}}}}
{{Infobox|entry|title={{{destroyed-title|Date of destruction}}}|content={{{destroyed|}}}}}
}}
}}
{{!}}-
 
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
{{Infobox|section|title={{{section3-title|Structural information}}}|bg=#8FB2B2|color=#000|entries=
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section1-title|General overview}}}}}
{{Infobox|entry|title={{{diameter-title|Diameter}}}|content={{{diameter|}}}}}
{{!}}-
{{Infobox|entry|title={{{surface width-title|Surface width}}}|content={{{surface width|}}}}}
{{#if:{{{description|}}}|
{{Infobox|entry|title={{{surface depth-title|Surface depth}}}|content={{{surface depth|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
{{Infobox|entry|title={{{gravity-title|Gravity}}}|content={{{gravity|}}}}}
'''{{{description-title|Description}}}''':
{{Infobox|entry|title={{{surface temperature-title|Surface temperature}}}|content={{{surface temperature|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{Infobox|entry|title={{{atmosphere-title|Atmospheric composition}}}|content={{{atmosphere|}}}}}
{{{description|}}}
}}
{{!}}-}}
 
{{#if:{{{location|}}}|
{{Infobox|end}}<noinclude>{{clear}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
==Usage instructions==
'''{{{location-title|Location}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{location|}}}
{{!}}-}}
{{#if:{{{anchor|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{anchor-title|Gravitational anchor}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{anchor|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section2-title|Operation overview}}}}}
{{!}}-
{{#if:{{{type|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{type-title|Type}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{type|}}}
{{!}}-}}
{{#if:{{{function|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{function-title|Function}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{function|}}}
{{!}}-}}
{{#if:{{{caretaker|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{caretaker-title|Attached AI(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{caretaker|}}}
{{!}}-}}
{{#if:{{{constructed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{constructed-title|Date of construction}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{constructed|}}}
{{!}}-}}
{{#if:{{{destroyed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{destroyed-title|Date of destruction}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{destroyed|}}}
{{!}}-}}
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#8FB2B2}}}" {{!}} {{{section3-title|Structural information}}}}}
{{!}}-
{{#if:{{{diameter|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{diameter-title|Diameter}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{diameter|}}}
{{!}}-}}
{{#if:{{{surface width|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{surface width-title|Surface width}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{surface width|}}}
{{!}}-}}
{{#if:{{{surface depth|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{surface depth-title|Surface depth}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{surface depth|}}}
{{!}}-}}
{{#if:{{{gravity|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{gravity-title|Gravity}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{gravity|}}}
{{!}}-}}
{{#if:{{{surface temperature|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{surface temperature-title|Surface temperature}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{surface temperature|}}}
{{!}}-}}
{{#if:{{{atmosphere|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{atmosphere-title|Atmospheric composition}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}} {{!}}
{{{atmosphere|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0; font-size:10px; line-height:10px;" |&nbsp;
|}<noinclude>
{{clear}}
===Usage instructions===
Paste the following code into the top of an article, filling all known fields:
Paste the following code into the top of an article, filling all known fields:
<pre>
<pre>
{{Megastructure infobox
{{Megastructure infobox
Line 122: Line 47:
|surface temperature=
|surface temperature=
|atmosphere=
|atmosphere=
}}</pre>
}}
</pre>


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


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

Latest revision as of 13:41, August 29, 2023

Megastructure infobox
 

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:

|section1-title=
|section2-title=