Template:Unit infobox: Difference between revisions

no edit summary
mNo edit summary
No edit summary
 
(72 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:6px; padding:2px; border-radius: 0 0 .7em .7em; color:{{{color|#000}}}; background:{{{BG|{{#switch:{{{variant|}}}|Cov=#9966CC|Human=#3779AE|#default=#3779AE}}}}};"
{{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|}}}}}
{{!}} class="infoboxlabel" 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|}}}}}
{{!}} class="infoboxcell" 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;" {{!}}
{{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|}}}}} -->
{{!}} class="infoboxlabel" 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|}}}}}
{{!}} class="infoboxcell" 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}}
{{!}}-}}
{{#if:{{{authority|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{authority-title|{{#switch:{{{variant|}}}|Cov=Ministry|Human=Operational<br>authority|Authority}}}}}''':
{{!}} class="infoboxcell" 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|}}}|
{{!}} class="infoboxlabel" 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}}}}}''':
{{!}} class="infoboxcell" 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|}}}|
{{!}} class="infoboxlabel" 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}}}''':
{{!}} class="infoboxcell" 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|}}}|
{{!}} class="infoboxlabel" 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)}}}''':
{{!}} class="infoboxcell" 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|}}}|
{{!}} class="infoboxlabel" 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}}}''':
{{!}} class="infoboxcell" 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|}}}|
{{!}} class="infoboxlabel" 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}}}:'''
{{!}} class="infoboxcell" 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|}}}|
{{!}} class="infoboxlabel" 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 individuals}}}:'''
{{!}} class="infoboxcell" 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|}}}
{{!}}-}}
{{#if:{{{othernames|}}}|
{{!}} class="infoboxlabel" 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;" {{!}}
'''{{{othernames-title|Also known as}}}:'''
{{!}} class="infoboxcell" 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;" {{!}}
{{{othernames|}}}
{{!}}-}}
| colspan="2" style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:9px; line-height:10px;" |&nbsp;
|}<noinclude>
__NOTOC__{{clear}}
==About==
==About==
Standardised for all faction use.
Standardized for all faction use.
<!-- #2D1452: Covenant, #B0C4DE: Human. ???: Forerunner, ???: Others -->
<!-- #9966CC: Covenant, #3779AE: Ban. 993333: Human. #B3B3B3: Forerunner, #555: Others -->
==Usage==
==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=
|othernames=
Line 99: Line 44:
==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>