Template:Unit 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}}")
No edit summary
Line 1: Line 1:
{| class="infobox" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}" cellspacing="0"
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Ban=933|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#{{#switch:{{{variant}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|777}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
|-
{{Infobox|entry|title={{{mission-title|Function}}}|content={{{mission|}}}}}
{{Infobox|entry|title={{{mission-title|Function}}}|content={{{mission|}}}}}
{{Infobox|entry|title={{{leader-title|Leader}}}|content={{{leader|}}}}}
{{Infobox|entry|title={{{leader-title|Leader}}}|content={{{leader|}}}}}
Line 16: Line 13:
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
<!-- {{Infobox|entry|title={{{equipment-title|Equipment}}}|content={{{equipment|}}}}}
<!-- {{Infobox|entry|title={{{equipment-title|Equipment}}}|content={{{equipment|}}}}}
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}} -->
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}} -->
{{Infobox|entry|title={{{notable-title|Notable individuals}}}|content={{{notable|}}}}}
{{Infobox|entry|title={{{notable-title|Notable individuals}}}|content={{{notable|}}}}}
{{Infobox|entry|title={{{othernames-title|Also known as}}}|content={{{othernames|}}}}}
{{Infobox|entry|title={{{othernames-title|Also known as}}}|content={{{othernames|}}}}}
{{Infobox|end}}<noinclude>
 
__NOTOC__{{clear}}
{{Infobox|end}}<noinclude>{{clear}}
==About==
==About==
Standardised for all faction use.
Standardized for all faction use.
<!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
<!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
==Usage==
==Usage==
Line 51: Line 48:
|name=
|name=
|<FIELD>-title=
|<FIELD>-title=
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
</pre>
</pre>


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

Revision as of 11:28, August 29, 2023

Unit infobox
 

About

Standardized for all faction use.

Usage

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

Note: adding 'Cov' in the "variant" field will set every title using Covenant standards (i.e. Group as opposed to Branch, Ministry as opposed to Operational authority). The opposite is the same if 'Human' is added instead.
{{Unit infobox|variant= <specify Cov, Ban, Human, Forerunner. No value makes infobox grey>
|image=
|mission=
|leader=
|species=
|headquarters=
|authority=
|branch=
|affiliation=
|role=
|size=
|notable=
|othernames=
}}

Custom parameters

The following are custom parameters that allows you to alter the infobox

|name=
|<FIELD>-title=