Template:Character infobox: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{| class="infobox" style="width:300px" cellspacing="0"
{{Infobox|start|name={{{name|}}}|media={{{image|}}}|caption={{{caption|}}}}}
! class="infoboxheading" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
 
|-
{{Infobox|section|title={{{section1-title|Biographical information}}}|entries={{{fullname|}}}{{{homeworld|}}}{{{birth|}}}{{{death|}}}{{{causeofdeath|}}}{{{parents|}}}{{{siblings|}}}{{{spouses|}}}{{{children|}}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" 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|}}}}}
{{#if:{{{fullname|}}}{{{homeworld|}}}{{{birth|}}}{{{death|}}}{{{causeofdeath|}}}{{{parents|}}}{{{siblings|}}}{{{spouses|}}}{{{children|}}}|{{#if:{{{hidea|}}}||
{{Infobox|entry|title={{{death-title|Died}}}|content={{{death|}}}}}
! class="infoboxsubheading" colspan="2" {{!}} {{{section1-title|Biographical information}}}}}
{{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|}}}}}
{{#if:{{{fullname|}}}|
{{Infobox|entry|title={{{spouses-title|Spouse(s)}}}|content={{{spouses|}}}}}
{{!}} class="infoboxlabel" style="width:100px" {{!}}
{{Infobox|entry|title={{{children-title|Children}}}|content={{{children|}}}}}
{{{fullname-title|Full name}}}:
 
{{!}} class="infoboxcell" {{!}}
{{Infobox|section|title={{{section2-title|Personal details}}}|entries={{{species|}}}{{{gender|}}}{{{height|}}}{{{mass|}}}{{{hair|}}}{{{eyes|}}}}}
{{{fullname}}}
 
}}
{{Infobox|entry|title={{{species-title|Species}}}|content={{{species|}}}}}
|-
{{Infobox|entry|title={{{gender-title|Gender}}}|content={{{gender|}}}}}
{{#if:{{{homeworld|}}}|
{{Infobox|entry|title={{{pronouns-title|Pronouns}}}|content={{{pronouns|}}}}}
{{!}} class="infoboxlabel" {{!}}
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{{homeworld-title|Homeworld}}}:
{{Infobox|entry|title={{{mass-title|Weight}}}|content={{{mass|}}}}}
{{!}} class="infoboxcell" {{!}}
{{Infobox|entry|title={{{hair-title|Hair color}}}|content={{{hair|}}}}}
{{{homeworld}}}
{{Infobox|entry|title={{{eyes-title|Eye color}}}|content={{{eyes|}}}}}
}}
 
|-
{{Infobox|section|title={{{section3-title|Political and military information}}}|entries={{{affiliation|}}}{{{rank|}}}{{{notable|}}}{{{misc|}}}}}
{{#if:{{{birth|}}}|
 
{{!}} class="infoboxlabel" {{!}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}}}
{{{birth-title|Born}}}:
{{Infobox|entry|title={{{rank-title|Rank}}}|content={{{rank|}}}}}
{{!}} class="infoboxcell" {{!}}
{{Infobox|entry|title={{{notable-title|Notable info}}}|content={{{notable|}}}}}
{{{birth}}}
{{Infobox|entry|title={{{misc-title|Miscellaneous}}}|content={{{misc|}}}}}
}}
{{Infobox|entry|title=|content=}}
|-
{{Infobox|entry|title=|content=}}
{{#if:{{{death|}}}|
 
{{!}} class="infoboxlabel" {{!}}
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Character}}}}}</includeonly><noinclude>{{clear}}
{{{death-title|Died}}}:
{{!}} class="infoboxcell" {{!}}
{{{death}}}
}}
|-
{{#if:{{{causeofdeath|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{causeofdeath-title|Cause of death}}}:
{{!}} class="infoboxcell" {{!}}
{{{causeofdeath}}}
}}
|-
{{#if:{{{parents|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{parents-title|Parents}}}:
{{!}} class="infoboxcell" {{!}}
{{{parents}}}
}}
|-
{{#if:{{{siblings|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{siblings-title|Siblings}}}:
{{!}} class="infoboxcell" {{!}}
{{{siblings}}}
}}
|-
{{#if:{{{spouses|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{spouses-title|Spouse(s)}}}:
{{!}} class="infoboxcell" {{!}}
{{{spouses}}}
}}
|-
{{#if:{{{children|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{children-title|Children}}}:
{{!}} class="infoboxcell" {{!}}
{{{children}}}
}}
|-
{{#if:{{{species|}}}{{{gender|}}}{{{height|}}}{{{mass|}}}{{{hair|}}}{{{eyes|}}}|{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" {{!}} {{{section2-title|Personal details}}}}}
}}
|-
{{#if:{{{species|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{species-title|Species}}}:
{{!}} class="infoboxcell" {{!}}
{{{species}}}
}}
|-
{{#if:{{{gender|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{gender-title|Gender}}}:
{{!}} class="infoboxcell" {{!}}
{{{gender}}}
}}
|-
{{#if:{{{pronouns|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{pronouns-title|Pronouns}}}:
{{!}} class="infoboxcell" {{!}}
{{{pronouns}}}
}}
|-
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{height-title|Height}}}:
{{!}} class="infoboxcell" {{!}}
{{{height}}}
}}
|-
{{#if:{{{mass|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{mass-title|Weight}}}:
{{!}} class="infoboxcell" {{!}}
{{{mass}}}
}}
|-
{{#if:{{{hair|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{hair-title|Hair color}}}:
{{!}} class="infoboxcell" {{!}}
{{{hair}}}
}}
|-
{{#if:{{{eyes|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{eyes-title|Eye color}}}:
{{!}} class="infoboxcell" {{!}}
{{{eyes}}}
}}
|-
{{#if:{{{affiliation|}}}{{{rank|}}}{{{notable|}}}{{{misc|}}}|{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" {{!}} {{{section3-title|Political and military information}}}}}
}}
|-
{{#if:{{{affiliation|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{affiliation-title|Affiliation}}}:
{{!}} class="infoboxcell" {{!}}
{{{affiliation}}}
}}
|-
{{#if:{{{rank|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{rank-title|Rank}}}:
{{!}} class="infoboxcell" {{!}}
{{{rank}}}
}}
|-
{{#if:{{{notable|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{notable-title|Notable info}}}:
{{!}} class="infoboxcell" {{!}}
{{{notable}}}
}}
|-
{{#if:{{{misc|}}}|
{{!}} class="infoboxlabel" {{!}}
{{{misc-title|Miscellaneous}}}:
{{!}} class="infoboxcell" {{!}}
{{{misc}}}
}}
|-
| class="infoboxfooter" colspan="2" | &nbsp;
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Character}}}}}</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.

Revision as of 15:32, August 21, 2023

 

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=
}}