Template:Unit infobox: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(86 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:6px; padding:2px; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em; color:{{{color|inherit}}}; background:{{{BG|{{#switch:{{{variant|}}}|Cov=darkslateblue|Human=cornflowerblue|#default=cornflowerblue}}}}};"
{{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=mediumpurple|Human=lightblue|#default=lightblue}}}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
{{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:{{{species|}}}|
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{Infobox|entry|title={{{authority-title|{{#switch:{{{variant}}}|Cov=Ministry|Human=Operational authority|Authority}}}}}|content={{{authority|}}}}}
'''{{{species-title|Species}}}''':
{{Infobox|entry|title={{{branch-title|{{#switch:{{{variant}}}|Cov=Group|Branch}}}}}|content={{{branch|}}}}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; width:100%; line-height:14px;" {{!}}
{{Infobox|entry|title={{{role-title|Other role(s)}}}|content={{{role|}}}}}
{{{species|}}}
{{Infobox|entry|title={{{size-title|Size}}}|content={{{size|}}}}}
{{!}}-}}
<!-- {{Infobox|entry|title={{{equipment-title|Equipment}}}|content={{{equipment|}}}}}
{{#if:{{{affiliation|}}}|
{{Infobox|entry|title={{{armament-title|Armament}}}|content={{{armament|}}}}} -->
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
{{Infobox|entry|title={{{notable-title|Notable individuals}}}|content={{{notable|}}}}}
'''{{{affiliation-title|Affiliation}}}:'''
{{Infobox|entry|title={{{othernames-title|Also known as}}}|content={{{othernames|}}}}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
 
{{{affiliation|}}}
{{Infobox|end}}<noinclude>{{clear}}
{{!}}-}}
Standardized for all faction use. <!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
{{#if:{{{authority|}}}|
 
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
==Usage instructions==
'''{{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{authority|}}}
{{!}}-}}
{{#if:{{{branch|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{branch-title|{{#switch:{{{variant|}}}|Cov=Group|Human=Branch|Branch}}}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{branch|}}}
{{!}}-}}
{{#if:{{{mission|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{mission-title|Function}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{mission|}}}
{{!}}-}}
{{#if:{{{role|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{role-title|Other role(s)}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{role|}}}
{{!}}-}}
{{#if:{{{size|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{size-title|Size}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{size|}}}
{{!}}-}}
{{#if:{{{equipment|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{equipment-title|Equipment}}}:'''
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{equipment|}}}
{{!}}-}}
{{#if:{{{armament|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{armament-title|Armament}}}:'''
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{armament|}}}
{{!}}-}}
{{#if:{{{notable|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding-left:4px; line-height:14px; width:70px;" {{!}}
'''{{{notable-title|Notable}}}:'''
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; line-height:14px;" {{!}}
{{{notable|}}}
{{!}}-}}
| colspan="2" style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:9px; line-height:10px;" |&nbsp;
|}<noinclude>
__NOTOC__{{clear}}
==About==
Standardised for all faction use.
<!-- #2D1452: Covenant, #B0C4DE: Human. ???: Forerunner, ???: 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 or Human. Human is set as default>
{{Unit infobox|variant= <specify Cov, Ban, Human, Forerunner. No value makes infobox grey>
|image=
|image=
|mission=
|leader=
|species=
|headquarters=
|authority=
|authority=
|branch=
|branch=
|mission=
|affiliation=
|role=
|role=
|size=
|size=
|armament=
|equipment=
|notable=
|notable=
|othernames=
}}
}}
</pre>
</pre>
Line 92: 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:Updated infoboxes|{{PAGENAME}}]]
[[Category:Infobox templates]]</noinclude>
</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=