Template:Unit infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "border-bottom: *1px solid {{{lineBG\|([^\n}]+)}}}; border-top: *1px solid {{{lineBG\|[^\n}]+}}}; " to "border-color:{{{lineBG|$1}}}; ")
m (Text replacement - " line-height: *14px;" to "")
Line 8: Line 8:
{{!}}-
{{!}}-
{{#if:{{{mission|}}}|
{{#if:{{{mission|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{mission-title|Function}}}''':
'''{{{mission-title|Function}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{mission|}}}
{{{mission|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{leader|}}}|
{{#if:{{{leader|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{leader-title|Leader}}}''':
'''{{{leader-title|Leader}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{leader|}}}
{{{leader|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{species|}}}|
{{#if:{{{species|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{species-title|Species}}}''':
'''{{{species-title|Species}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{species|}}}
{{{species|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{headquarters|}}}|
{{#if:{{{headquarters|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{headquarters-title|Headquarters}}}''':
'''{{{headquarters-title|Headquarters}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{headquarters|}}}
{{{headquarters|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{affiliation|}}}|
{{#if:{{{affiliation|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{affiliation-title|Affiliation}}}:'''
'''{{{affiliation-title|Affiliation}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{affiliation|}}}
{{{affiliation|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{authority|}}}|
{{#if:{{{authority|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}''':
'''{{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{authority|}}}
{{{authority|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{branch|}}}|
{{#if:{{{branch|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}''':
'''{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{branch|}}}
{{{branch|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{role|}}}|
{{#if:{{{role|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{role-title|Other role(s)}}}''':
'''{{{role-title|Other role(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{role|}}}
{{{role|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{size|}}}|
{{#if:{{{size|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{size-title|Size}}}''':
'''{{{size-title|Size}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{size|}}}
{{{size|}}}
{{!}}-}}
{{!}}-}}
<!-- {{#if:{{{equipment|}}}|
<!-- {{#if:{{{equipment|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{equipment-title|Equipment}}}:'''
'''{{{equipment-title|Equipment}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{equipment|}}}
{{{equipment|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{#if:{{{armament|}}}|
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{armament-title|Armament}}}:'''
'''{{{armament-title|Armament}}}:'''
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{armament|}}}
{{{armament|}}}
{{!}}-}} -->
{{!}}-}} -->
{{#if:{{{notable|}}}|
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{notable-title|Notable individuals}}}:'''
'''{{{notable-title|Notable individuals}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{notable|}}}
{{{notable|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{othernames|}}}|
{{#if:{{{othernames|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{othernames-title|Also known as}}}:'''
'''{{{othernames-title|Also known as}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{othernames|}}}
{{{othernames|}}}
{{!}}-}}
{{!}}-}}

Revision as of 22:43, September 14, 2022

Unit infobox
 

About

Standardised 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=
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=