Template:Unit 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
 
(45 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}"
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Ban=933|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#{{#switch:{{{variant}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|777}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|entry|title={{{mission-title|Function}}}|content={{{mission|}}}}}
! style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}}" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|<div style="clear:both">{{{caption}}}</div>}}
{{Infobox|entry|title={{{leader-title|Leader}}}|content={{{leader|}}}}}
}}
{{Infobox|entry|title={{{species-title|Species}}}|content={{{species|}}}}}
{{!}}-
{{Infobox|entry|title={{{headquarters-title|Headquarters}}}|content={{{headquarters|}}}}}
{{#if:{{{mission|}}}|
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
{{Infobox|entry|title={{{authority-title|{{#switch:{{{variant}}}|Cov=Ministry|Human=Operational authority|Authority}}}}}|content={{{authority|}}}}}
'''{{{mission-title|Function}}}''':
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant}}}|Cov=Group|Branch}}}}}|content={{{branch|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{Infobox|entry|title={{{role-title|Other role(s)}}}|content={{{role|}}}}}
{{{mission|}}}
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
{{!}}-}}
<!-- {{Infobox|entry|title={{{equipment-title|Equipment}}}|content={{{equipment|}}}}}
{{#if:{{{leader|}}}|
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}} -->
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
{{Infobox|entry|title={{{notable-title|Notable individuals}}}|content={{{notable|}}}}}
'''{{{leader-title|Leader}}}''':
{{Infobox|entry|title={{{othernames-title|Also known as}}}|content={{{othernames|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
 
{{{leader|}}}
{{Infobox|end}}<noinclude>{{clear}}
{{!}}-}}
Standardized for all faction use. <!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
{{#if:{{{species|}}}|
 
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
==Usage instructions==
'''{{{species-title|Species}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{species|}}}
{{!}}-}}
{{#if:{{{headquarters|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{headquarters-title|Headquarters}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{headquarters|}}}
{{!}}-}}
{{#if:{{{affiliation|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{affiliation-title|Affiliation}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{affiliation|}}}
{{!}}-}}
{{#if:{{{authority|}}}|
{{!}} 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}}}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{authority|}}}
{{!}}-}}
{{#if:{{{branch|}}}|
{{!}} 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}}}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{branch|}}}
{{!}}-}}
{{#if:{{{role|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{role-title|Other role(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{role|}}}
{{!}}-}}
{{#if:{{{size|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{size-title|Size}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{size|}}}
{{!}}-}}
<!-- {{#if:{{{equipment|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{equipment-title|Equipment}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{equipment|}}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{armament-title|Armament}}}:'''
{{!}} style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{armament|}}}
{{!}}-}} -->
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{notable-title|Notable individuals}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{notable|}}}
{{!}}-}}
{{#if:{{{othernames|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%; padding-left:4px; width:70px;" {{!}}
'''{{{othernames-title|Also known as}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F8FF}}}; border-color:{{{lineBG|#999999}}}; font-size:90%;" {{!}}
{{{othernames|}}}
{{!}}-}}
| colspan="2" style="text-align:center; background:{{{BG|transparent}}}; padding:0; font-size:9px; line-height:10px;" |&nbsp;
|}<noinclude>
__NOTOC__{{clear}}
==About==
Standardised for all faction use.
<!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
==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.
<pre>
<pre>
{{Unit infobox|variant= <specify Cov, Ban, Human, Forerunner. No value makes infobox grey>
{{Unit infobox|variant= <specify Cov, Ban, Human, Forerunner. No value makes infobox grey>
Line 113: Line 43:
==Custom parameters==
==Custom parameters==
The following are custom parameters that allows you to alter the infobox
The following are custom parameters that allows you to alter the infobox
<pre>
<pre>
|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=