Template:Character infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "<div>{{{caption}}}</div>" to "{{clear}}{{{caption}}}")
m (Text replacement - "{{pagetitle\|{{{pagename\|{{#if:{{{name\|}}}\|{{{name}}}\|{{PAGETITLE}}}}}}} - {{{pagelabel\|([^ ]+) {{#ifeq:{{SUBPAGENAME}}\|Silver\|\(Silver Timeline\)}}}}}}}" to "{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|$1}}}}}")
 
(44 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#{{#switch:{{{variant|}}}|Ban=993333|Cov=9966CC|Human=3779AE|Forerunner=B3B3B3|#default=555}}}}}"
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Ban=933|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
{{!}}-
{{Infobox|title|name={{{name|}}}}}
! style="background:{{{nameBG|transparent}}}; font-size:120%; color:#fff" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|section|title={{{section1-title|Biographical information}}}|entries=
! style="background:{{{imageBG|#f0f0f0}}}; border-bottom:1px solid {{{lineBG|#999}}}" colspan="2" {{!}} {{{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=
! colspan="2" style="font-size:90%; 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|}}}}}
{{#if:{{{fullname|}}}|
{{Infobox|entry|title={{{pronouns-title|Pronouns}}}|content={{{pronouns|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
'''{{{fullname-title|Full name}}}''':
{{Infobox|entry|title={{{mass-title|Weight}}}|content={{{mass|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{hair-title|Hair color}}}|content={{{hair|}}}}}
{{{fullname|}}}
{{Infobox|entry|title={{{eyes-title|Eye color}}}|content={{{eyes|}}}}}
{{!}}-}}
{{#if:{{{homeworld|}}}|
{{!}} 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|}}}{{{height|}}}{{{mass|}}}{{{hair|}}}{{{eyes|}}}|{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! colspan="2" style="font-size:90%; 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:{{{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|}}}|{{!}}-|{{!}}-
! colspan="2" style="font-size:90%; 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|}}}
{{!}}-}}
{{!}}-}}
| colspan="2" style="text-align:center; line-height:10px" | &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==
Copy and paste the following into the article and fill in the fields.
<pre>
{{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=
|height=
|mass=
|hair=
|eyes=
|affiliation=
|rank=<see below>*
|sn=<exclusive for human>**
|notable=
}}
}}
</pre>


:<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>
{{Infobox|section|title={{{section3-title|Political and military information}}}|entries=
:<nowiki>**</nowiki> <small>Note: For those with [[UNSCMID]], use the following format: <code><nowiki>SN-NUMBER ([[UNSCMID]]: UNSCMID-NUMBER)</nowiki></code></small>
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
 
{{Infobox|entry|title={{{rank-title|Rank}}}|content={{{rank|}}}}}
===Custom parameters===
{{Infobox|entry|title={{{sn-title|[[Service number]]}}}|content={{{sn|}}}}}
The following allow you to alter the style and title of the sub-sections:
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
 
{{Infobox|entry|title={{{misc-title|Miscellaneous}}}|content={{{misc|}}}}}
<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>
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Character}}}}}{{#if:{{{nocat|{{NAMESPACE}}}}}||{{#rmatch:{{{gender|}}}|Female|[[Category:Female characters]]|{{#rmatch:{{{gender|}}}|Male|[[Category:Male characters]]|{{#rmatch:{{{gender|}}}|Non-?binary|[[Category:Non-binary characters]]|{{#rmatch:{{{gender|}}}|N\/A{{!}}None{{!}}Genderless|[[Category:Genderless characters]]|{{#rmatch:{{{gender|}}}|^\?*${{!}}Unknown{{!}}Unspecified|[[Category:Characters of unspecified gender]]|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}}}</includeonly><noinclude>{{Doc/Template}} __NOTOC__ [[Category:Infobox templates]]</noinclude>

Latest revision as of 12:14, March 22, 2024

Character infobox
 
vde
Template Documentation

Description

This template is used to insert an infobox for use on articles about characters.

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)