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}}")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(6 intermediate revisions by 2 users not shown)
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 11: Line 8:
{{Infobox|entry|title={{{headquarters-title|Headquarters}}}|content={{{headquarters|}}}}}
{{Infobox|entry|title={{{headquarters-title|Headquarters}}}|content={{{headquarters|}}}}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{Infobox|entry|title={{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}|content={{{authority|}}}}}
{{Infobox|entry|title={{{authority-title|{{#switch:{{{variant}}}|Cov=Ministry|Human=Operational authority|Authority}}}}}|content={{{authority|}}}}}
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}|content={{{branch|}}}}}
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant}}}|Cov=Group|Branch}}}}}|content={{{branch|}}}}}
{{Infobox|entry|title={{{role-title|Other role(s)}}}|content={{{role|}}}}}
{{Infobox|entry|title={{{role-title|Other role(s)}}}|content={{{role|}}}}}
{{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==
Standardized for all faction use. <!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
Standardised for all faction use.
 
<!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
==Usage instructions==
==Usage==
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:
: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.
: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.
Line 51: Line 47:
|name=
|name=
|<FIELD>-title=
|<FIELD>-title=
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
</pre>
</pre>


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

Latest revision as of 10:10, June 14, 2024

Unit infobox
 

Standardized for all faction use.

Usage instructions

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=