Template:Character infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(21 intermediate revisions by 3 users not shown)
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|bg=#{{#switch:{{{variant}}}|Ban=933|Cov=96C|Human=3779AE|Forerunner=B3B3B3|555}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Biographical information}}}|entries=
{{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|}}} {{{aged|{{Infobox/aged|{{{birth|}}}|{{{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|}}}}}
{{#if:{{{fullname|}}}|
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{Infobox|entry|title={{{mass-title|Weight}}}|content={{{mass|}}}}}
{{{fullname-title|Full name}}}:
{{Infobox|entry|title={{{hair-title|Hair color}}}|content={{{hair|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{eyes-title|Eye color}}}|content={{{eyes|}}}}}
{{{fullname}}}
}}
|-
{{#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|}}}{{{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" |  
|}<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>
{{Infobox|section|title={{{section3-title|Political and military information}}}|entries=
{{Character infobox
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
|variant=<specify Cov, Ban, Human or Forerunner. No value makes infobox grey>
{{Infobox|entry|title={{{rank-title|Rank}}}|content={{{rank|}}}}}
|name=
{{Infobox|entry|title={{{sn-title|[[Service number]]}}}|content={{{sn|}}}}}
|image=
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
|homeworld=
{{Infobox|entry|title={{{misc-title|Miscellaneous}}}|content={{{misc|}}}}}
|birth=
|death=
|causeofdeath=
|parents=
|siblings=
|spouses=
|children=
|species=
|gender=
|pronouns=
|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>
:<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>
{{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 10:10, June 14, 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)