Template:Unit infobox: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
mNo edit summary
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}}}}};"
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:300px; margin:.5em; padding:2px; border-radius: 0 0 .5em .5em; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}};"
{{!}}-
{{!}}-
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{!}}-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|#default=71A6D2}}}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
! 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|}}}
}}
}}
{{!}}-
{{!}}-
Line 78: Line 78:
==About==
==About==
Standardised for all faction use.
Standardised for all faction use.
<!-- #2D1452: Covenant, #B0C4DE: Human. ???: Forerunner, ???: Others -->
<!-- #9966CC: Covenant, #3779AE: 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, Human, Forerunner. No value makes infobox grey>
|image=
|image=
|authority=
|authority=