Template:Character infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Undo revision 1398211 by Editorguy (talk) - The existing styling is fine)
Tag: Undo
m (Text replacement - "margin:0 0 0.5em 1em;" to "margin:0 0 1em 1em;")
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:300px; margin:0 0 0.5em 1em; padding:2px; border-radius:0 0 .5em .5em; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}};"
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:300px; margin:0 0 1em 1em; padding:2px; border-radius:0 0 .5em .5em; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|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}}}}

Revision as of 16:35, March 31, 2021

Character infobox
Biographical information
Political and military information
 

Usage

Copy and paste the following into the article and fill in the fields.

{{Character infobox|variant= <specify Cov, Ban, Human or Forerunner. No value makes infobox grey>
|name=
|image=
|homeworld=
|birth=
|death=
|species=
|gender=
|height=
|mass=
|hair=
|eyes=
|affiliation=
|rank= <see below>*
|sn= <exclusive for human>**
|notable=
}}
* Note: For Forerunner characters when identifying rates and ranks, use the following format: RANK-TITLE ([[Rate|R]]: RATE-GROUP)
** Note: For those with UNSCMID, use the following format: SN-NUMBER ([[UNSCMID]]: UNSCMID-NUMBER)

Custom parameters

The following allows you to alter the title of the sub-sections:

|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=

Display parameters

The following allows you to hide the section header

  • hidea (hides Bio section header)
  • hideb (hides Politic/Military section header)
|hidea=
|hideb=