Template:Character infobox: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{| class="infobox" style="width:300px; color:{{{color|#000}}}; background:{{{BG|#555}}}" cellspacing="0"
{| class="infobox" style="width:300px" cellspacing="0"
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! class="infoboxheading" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}} class="infoboxmedia" colspan="2" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
|-
|-
{{#if:{{{fullname|}}}{{{homeworld|}}}{{{birth|}}}{{{death|}}}{{{causeofdeath|}}}{{{parents|}}}{{{siblings|}}}{{{spouses|}}}{{{children|}}}|{{#if:{{{hidea|}}}||
{{#if:{{{fullname|}}}{{{homeworld|}}}{{{birth|}}}{{{death|}}}{{{causeofdeath|}}}{{{parents|}}}{{{siblings|}}}{{{spouses|}}}{{{children|}}}|{{#if:{{{hidea|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|}}}" {{!}} {{{section1-title|Biographical information}}}}}
! class="infoboxsubheading" colspan="2" {{!}} {{{section1-title|Biographical information}}}}}
}}
}}
|-
|-
{{#if:{{{fullname|}}}|
{{#if:{{{fullname|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{!}} class="infoboxlabel" style="width:100px" {{!}}
{{{fullname-title|Full name}}}:
{{{fullname-title|Full name}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{fullname}}}
{{{fullname}}}
}}
}}
|-
|-
{{#if:{{{homeworld|}}}|
{{#if:{{{homeworld|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{homeworld-title|Homeworld}}}:
{{{homeworld-title|Homeworld}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{homeworld}}}
{{{homeworld}}}
}}
}}
|-
|-
{{#if:{{{birth|}}}|
{{#if:{{{birth|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{birth-title|Born}}}:
{{{birth-title|Born}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{birth}}}
{{{birth}}}
}}
}}
|-
|-
{{#if:{{{death|}}}|
{{#if:{{{death|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{death-title|Died}}}:
{{{death-title|Died}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{death}}}
{{{death}}}
}}
}}
|-
|-
{{#if:{{{causeofdeath|}}}|
{{#if:{{{causeofdeath|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{causeofdeath-title|Cause of death}}}:
{{{causeofdeath-title|Cause of death}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{causeofdeath}}}
{{{causeofdeath}}}
}}
}}
|-
|-
{{#if:{{{parents|}}}|
{{#if:{{{parents|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{parents-title|Parents}}}:
{{{parents-title|Parents}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{parents}}}
{{{parents}}}
}}
}}
|-
|-
{{#if:{{{siblings|}}}|
{{#if:{{{siblings|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{siblings-title|Siblings}}}:
{{{siblings-title|Siblings}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{siblings}}}
{{{siblings}}}
}}
}}
|-
|-
{{#if:{{{spouses|}}}|
{{#if:{{{spouses|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{spouses-title|Spouse(s)}}}:
{{{spouses-title|Spouse(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{spouses}}}
{{{spouses}}}
}}
}}
|-
|-
{{#if:{{{children|}}}|
{{#if:{{{children|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{children-title|Children}}}:
{{{children-title|Children}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{children}}}
{{{children}}}
}}
}}
|-
|-
{{#if:{{{species|}}}{{{gender|}}}{{{height|}}}{{{mass|}}}{{{hair|}}}{{{eyes|}}}|{{#if:{{{hideb|}}}||
{{#if:{{{species|}}}{{{gender|}}}{{{height|}}}{{{mass|}}}{{{hair|}}}{{{eyes|}}}|{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#777}}}" {{!}} {{{section2-title|Personal details}}}}}
! class="infoboxsubheading" colspan="2" {{!}} {{{section2-title|Personal details}}}}}
}}
}}
|-
|-
{{#if:{{{species|}}}|
{{#if:{{{species|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{species-title|Species}}}:
{{{species-title|Species}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{species}}}
{{{species}}}
}}
}}
|-
|-
{{#if:{{{gender|}}}|
{{#if:{{{gender|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{gender-title|Gender}}}:
{{{gender-title|Gender}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{gender}}}
{{{gender}}}
}}
}}
|-
|-
{{#if:{{{pronouns|}}}|
{{#if:{{{pronouns|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{pronouns-title|Pronouns}}}:
{{{pronouns-title|Pronouns}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{pronouns}}}
{{{pronouns}}}
}}
}}
|-
|-
{{#if:{{{height|}}}|
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{height-title|Height}}}:
{{{height-title|Height}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{height}}}
{{{height}}}
}}
}}
|-
|-
{{#if:{{{mass|}}}|
{{#if:{{{mass|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{mass-title|Weight}}}:
{{{mass-title|Weight}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{mass}}}
{{{mass}}}
}}
}}
|-
|-
{{#if:{{{hair|}}}|
{{#if:{{{hair|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{hair-title|Hair color}}}:
{{{hair-title|Hair color}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{hair}}}
{{{hair}}}
}}
}}
|-
|-
{{#if:{{{eyes|}}}|
{{#if:{{{eyes|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{eyes-title|Eye color}}}:
{{{eyes-title|Eye color}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{eyes}}}
{{{eyes}}}
}}
}}
|-
|-
{{#if:{{{affiliation|}}}{{{rank|}}}{{{notable|}}}{{{misc|}}}|{{#if:{{{hidec|}}}||
{{#if:{{{affiliation|}}}{{{rank|}}}{{{notable|}}}{{{misc|}}}|{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#777}}}" {{!}} {{{section3-title|Political and military information}}}}}
! class="infoboxsubheading" colspan="2" {{!}} {{{section3-title|Political and military information}}}}}
}}
}}
|-
|-
{{#if:{{{affiliation|}}}|
{{#if:{{{affiliation|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{affiliation-title|Affiliation}}}:
{{{affiliation-title|Affiliation}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{affiliation}}}
{{{affiliation}}}
}}
}}
|-
|-
{{#if:{{{rank|}}}|
{{#if:{{{rank|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{rank-title|Rank}}}:
{{{rank-title|Rank}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{rank}}}
{{{rank}}}
}}
}}
|-
|-
{{#if:{{{notable|}}}|
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{notable-title|Notable info}}}:
{{{notable-title|Notable info}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{notable}}}
{{{notable}}}
}}
}}
|-
|-
{{#if:{{{misc|}}}|
{{#if:{{{misc|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" {{!}}
{{{misc-title|Miscellaneous}}}:
{{{misc-title|Miscellaneous}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" {{!}}
{{{misc}}}
{{{misc}}}
}}
}}

Revision as of 13:37, August 21, 2023

Character infobox
 

Usage

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

{{Character infobox
|name=
|image=
|homeworld=
|birth=
|death=
|causeofdeath=
|parents=
|siblings=
|spouses=
|children=
|species=
|gender=
|pronouns=
|height=
|mass=
|hair=
|eyes=
|affiliation=
|rank=
|notable=
}}