Template:Base infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - ";"" to """)
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:260px; background:{{{BG|#D9B26F}}}; color:{{{color1|inherit}}}"
{{Infobox|start|bg=#D9B26F|color=#000}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}; 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|Facility information}}}|bg=#E6D3A3|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={{{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="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{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|#999999}}}; 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|#999999}}}" {{!}}
{{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|#999999}}}; width:100px" {{!}}
==Usage instructions==
'''{{{purpose-title|Purpose}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{purpose|}}}
{{!}}-}}
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{length-title|Length}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{length|}}}
{{!}}-}}
{{#if:{{{width|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{width-title|Width}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{width|}}}
{{!}}-}}
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{height-title|Height}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{height|}}}
{{!}}-}}
{{#if:{{{surface|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{surface-title|Area}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{surface|}}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{armament-title|Armament}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{armament|}}}
{{!}}-}}
{{#if:{{{complement|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{complement-title|Complement}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{complement|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#E6D3A3}}}" {{!}} {{{section1-title|Historical information}}}}}
{{!}}-
{{#if:{{{built|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{built-title|Built}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{built|}}}
{{!}}-}}
{{#if:{{{usage|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{usage-title|In use}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{usage|}}}
{{!}}-}}
{{#if:{{{destroyed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{destroyed-title|Destroyed}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{destroyed|}}}
{{!}}-}}
{{#if:{{{controlledby|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{controlledby-title|Controlled by}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{controlledby|}}}
{{!}}-}}
{{#if:{{{commander|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{commander-title|Known commander(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{commander|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}; width:100px" {{!}}
'''{{{notable-title|Notable info}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{notable|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0; font-size:10px; line-height:10px" | &nbsp;
|}<noinclude>{{clear}}
==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 122: 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>

Latest revision as of 10: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=