Template:Character infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 1: Line 1:
{| class="infobox" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}" cellspacing="0"
{{Infobox|start|name={{{name|}}}|media={{{image|}}}|caption={{{caption|}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|bg=#{{#switch:{{{variant}}}|Ban=933|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
|-
 
{{#if:{{{image|}}}|
{{Infobox|section|title={{{section1-title|Biographical information}}}|entries=
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|entry|title={{{fullname-title|Full name}}}|content={{{fullname|}}}}}
{{Infobox|entry|title={{{homeworld-title|Homeworld}}}|content={{{homeworld|}}}}}
{{Infobox|entry|title={{{birth-title|Born}}}|content={{{birth|}}}}}
{{Infobox|entry|title={{{death-title|Died}}}|content={{{death|}}}}}
{{Infobox|entry|title={{{causeofdeath-title|Cause of death}}}|content={{{causeofdeath|}}}}}
{{Infobox|entry|title={{{parents-title|Parents}}}|content={{{parents|}}}}}
{{Infobox|entry|title={{{siblings-title|Siblings}}}|content={{{siblings|}}}}}
{{Infobox|entry|title={{{spouses-title|Spouse(s)}}}|content={{{spouses|}}}}}
{{Infobox|entry|title={{{children-title|Children}}}|content={{{children|}}}}}
}}
}}
|-
 
{{#if:{{{fullname|}}}{{{homeworld|}}}{{{birth|}}}{{{death|}}}{{{causeofdeath|}}}{{{parents|}}}{{{siblings|}}}{{{spouses|}}}{{{children|}}}|{{#if:{{{hidea|}}}||
{{Infobox|section|title={{{section2-title|Personal details}}}|entries=
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}" {{!}} {{{section1-title|Biographical information}}}}}
{{Infobox|entry|title={{{species-title|Species}}}|content={{{species|}}}}}
{{Infobox|entry|title={{{gender-title|Gender}}}|content={{{gender|}}}}}
{{Infobox|entry|title={{{pronouns-title|Pronouns}}}|content={{{pronouns|}}}}}
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{Infobox|entry|title={{{mass-title|Weight}}}|content={{{mass|}}}}}
{{Infobox|entry|title={{{hair-title|Hair color}}}|content={{{hair|}}}}}
{{Infobox|entry|title={{{eyes-title|Eye color}}}|content={{{eyes|}}}}}
}}
}}
|-
 
{{#if:{{{fullname|}}}|
{{Infobox|section|title=Political and military information|entries=
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{{fullname-title|Full name}}}:
{{Infobox|entry|title={{{rank-title|Rank}}}|content={{{rank|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{sn-title|[[Service number]]}}}|content={{{sn|}}}}}
{{{fullname}}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
{{Infobox|entry|title={{{misc-title|Miscellaneous}}}|content={{{misc|}}}}}
}}
}}
|-
 
{{#if:{{{homeworld|}}}|
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Character {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}{{#if:{{{nocat|{{NAMESPACE}}}}}||{{#if:{{#pos:{{lc:{{{gender|}}}}}|female}}|[[Category:Female characters]]|{{#if:{{#pos:{{lc:{{{gender|}}}}}|male}}|[[Category:Male characters]]}}}}}}</includeonly><noinclude>{{clear}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{homeworld-title|Homeworld}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{homeworld}}}
}}
|-
{{#if:{{{birth|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{birth-title|Born}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{birth}}}
}}
|-
{{#if:{{{death|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{death-title|Died}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{death}}}
}}
|-
{{#if:{{{causeofdeath|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{causeofdeath-title|Cause of death}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{causeofdeath}}}
}}
|-
{{#if:{{{parents|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{parents-title|Parents}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{parents}}}
}}
|-
{{#if:{{{siblings|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{siblings-title|Siblings}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{siblings}}}
}}
|-
{{#if:{{{spouses|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{spouses-title|Spouse(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{spouses}}}
}}
|-
{{#if:{{{children|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{children-title|Children}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{children}}}
}}
|-
{{#if:{{{species|}}}{{{gender|}}}{{{pronouns|}}}{{{height|}}}{{{mass|}}}{{{hair|}}}{{{eyes|}}}|{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}" {{!}} {{{section2-title|Personal details}}}}}
}}
|-
{{#if:{{{species|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{species-title|Species}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{species}}}
}}
|-
{{#if:{{{gender|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{gender-title|Gender}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{gender}}}
}}
|-
{{#if:{{{pronouns|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{pronouns-title|Pronouns}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{pronouns}}}
}}
|-
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height-title|Height}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height}}}
}}
|-
{{#if:{{{mass|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{mass-title|Weight}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{mass}}}
}}
|-
{{#if:{{{hair|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{hair-title|Hair color}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{hair}}}
}}
|-
{{#if:{{{eyes|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{eyes-title|Eye color}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{eyes}}}
}}
|-
{{#if:{{{affiliation|}}}{{{rank|}}}{{{sn|}}}{{{notable|}}}{{{misc|}}}|{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|{{#switch:{{{variant|}}}|Cov=BF94E4|Human=71A6D2|Forerunner=F2F2F2|#default=777}}}}}" {{!}} {{{section3-title|Political and military information}}}}}
}}
|-
{{#if:{{{affiliation|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{affiliation-title|Affiliation}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{affiliation}}}
}}
|-
{{#if:{{{rank|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{rank-title|Rank}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{rank}}}
}}
|-
{{#if:{{{sn|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{sn-title|[[Service number|Service number]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{sn}}}
}}
|-
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable-title|Notable info}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{notable}}}
}}
|-
{{#if:{{{misc|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{misc-title|Miscellaneous}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{misc}}}
}}
|-
| class="infoboxfooter" colspan="2" | &nbsp;
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Character {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}{{#if:{{{nocat|{{NAMESPACE}}}}}||{{#if:{{#pos:{{lc:{{{gender|}}}}}|female}}|[[Category:Female characters]]|{{#if:{{#pos:{{lc:{{{gender|}}}}}|male}}|[[Category:Male characters]]}}}}}}</includeonly><noinclude>{{clear}}
==Usage==
==Usage==
Copy and paste the following into the article and fill in the fields.
Copy and paste the following into the article and fill in the fields.
Line 199: Line 65:
:<nowiki>*</nowiki> <small>Note: For Forerunner characters when identifying rates and ranks, use the following format: <code><nowiki>RANK-TITLE ([[Rate|R]]: RATE-GROUP)</nowiki></code></small>
:<nowiki>*</nowiki> <small>Note: For Forerunner characters when identifying rates and ranks, use the following format: <code><nowiki>RANK-TITLE ([[Rate|R]]: RATE-GROUP)</nowiki></code></small>
:<nowiki>**</nowiki> <small>Note: For those with [[UNSCMID]], use the following format: <code><nowiki>SN-NUMBER ([[UNSCMID]]: UNSCMID-NUMBER)</nowiki></code></small>
:<nowiki>**</nowiki> <small>Note: For those with [[UNSCMID]], use the following format: <code><nowiki>SN-NUMBER ([[UNSCMID]]: UNSCMID-NUMBER)</nowiki></code></small>
===Custom parameters===
The following allow you to alter the style and title of the sub-sections:
<pre>
|color=
|color2=
|BG=
|nameBG=
|imageBG=
|sectionBG=
|fieldBG=
|lineBG=
|section1-title=
|section2-title=
|section3-title=
</pre>
===Display parameters===
The following allow you to force-hide the section headers:
<pre>
|hidea=
|hideb=
|hidec=
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 21:52, August 27, 2023

 

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=
|causeofdeath=
|parents=
|siblings=
|spouses=
|children=
|species=
|gender=
|pronouns=
|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)