Template:Unit infobox: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - "<div style="clear:both">{{{caption}}}</div>" to "<div>{{{caption}}}</div>") |
m (Text replacement - "text-align: *center; " to "") |
||
Line 1: | Line 1: | ||
{| class="infobox" cellspacing="0" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}" | {| class="infobox" cellspacing="0" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}" | ||
{{!}}- | {{!}}- | ||
! style="background:{{{nameBG|transparent}}} | ! style="background:{{{nameBG|transparent}}}; font-size:120%; color:#FFFFFF" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
! style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}} | ! style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}; border-bottom:1px solid {{{lineBG|#999999}}}" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|<div>{{{caption}}}</div>}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
Line 85: | Line 85: | ||
{{{othernames|}}} | {{{othernames|}}} | ||
{{!}}-}} | {{!}}-}} | ||
| colspan="2" style=" | | colspan="2" style="background:{{{BG|transparent}}}; padding:0; font-size:9px; line-height:10px" | | ||
|}<noinclude> | |}<noinclude> | ||
__NOTOC__{{clear}} | __NOTOC__{{clear}} |
Revision as of 09:50, September 15, 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=