Template:Infobox character: Difference between revisions

From KB Lexicon
(Created page with "<!-- Template:Infobox character --> <div class="infobox infobox-character"> {| class="infobox-table" |- ! colspan="2" class="infobox-title" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} {{#if:{{{image|}}}| |- | colspan="2" class="infobox-image" | [[File:{{{image}}}|frameless|260px|center|alt={{{image_alt|}}}]] {{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}} }} {{#if:{{{quote|}}}| |- | colspan="2" class="infobox-quote" | “{{{quote}}}” }} {{#if:...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:Infobox character -->
<!-- Template:Infobox character (no ParserFunctions) -->
<div class="infobox infobox-character">
<div class="infobox infobox-character">
{| class="infobox-table"
{| class="infobox-table"
|-
|-
! colspan="2" class="infobox-title" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
 
|-
|-
| colspan="2" class="infobox-image" |
| colspan="2" class="infobox-image" |
[[File:{{{image}}}|frameless|260px|center|alt={{{image_alt|}}}]]
[[File:{{{image|}}}|frameless|260px|center|alt={{{image_alt|}}}]]
{{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}
<div class="infobox-caption">{{{caption|}}}</div>
}}
 
{{#if:{{{quote|}}}|
|-
|-
| colspan="2" class="infobox-quote" | “{{{quote}}}”
! class="infobox-label" | Gender
}}
| class="infobox-data" | <span class="val">{{{gender|}}}</span>
{{#if:{{{aliases|}}}|
|-
|-
! class="infobox-label" | Aliases
! class="infobox-label" | Nicknames
| class="infobox-data" | {{{aliases}}}
| class="infobox-data" | <span class="val">{{{nicknames|}}}</span>
}}
{{#if:{{{born|}}}|
|-
|-
! class="infobox-label" | Born
! class="infobox-label" | Born
| class="infobox-data" | {{{born}}}
| class="infobox-data" | <span class="val">{{{born|}}}</span>
}}
{{#if:{{{died|}}}|
|-
|-
! class="infobox-label" | Died
! class="infobox-label" | Died
| class="infobox-data" | {{{died}}}
| class="infobox-data" | <span class="val">{{{died|}}}</span>
}}
{{#if:{{{age|}}}|
|-
|-
! class="infobox-label" | Age
! class="infobox-label" | Family
| class="infobox-data" | {{{age}}}
| class="infobox-data" | <span class="val">{{{family|}}}</span>
}}
{{#if:{{{species|}}}|
|-
|-
! class="infobox-label" | Species
! class="infobox-label" | Bloodtype
| class="infobox-data" | {{{species}}}
| class="infobox-data" | <span class="val">{{{bloodtype|}}}</span>
}}
{{#if:{{{gender|}}}|
|-
|-
! class="infobox-label" | Gender
! class="infobox-label" | Social Class
| class="infobox-data" | {{{gender}}}
| class="infobox-data" | <span class="val">{{{social_class|}}}</span>
}}
{{#if:{{{house|}}}|
|-
|-
! class="infobox-label" | House
! class="infobox-label" | Hogwarts House
| class="infobox-data" | {{{house}}}
| class="infobox-data" | <span class="val">{{{house|}}}</span>
}}
{{#if:{{{affiliation|}}}|
|-
|-
! class="infobox-label" | Affiliation
! class="infobox-label" | Graduation Year
| class="infobox-data" | {{{affiliation}}}
| class="infobox-data" | <span class="val">{{{graduation_year|}}}</span>
}}
{{#if:{{{occupation|}}}|
|-
|-
! class="infobox-label" | Occupation
! class="infobox-label" | Occupation
| class="infobox-data" | {{{occupation}}}
| class="infobox-data" | <span class="val">{{{occupation|}}}</span>
}}
|-
{{#if:{{{wand|}}}|
! class="infobox-label" | Residence
| class="infobox-data" | <span class="val">{{{residence|}}}</span>
|-
|-
! class="infobox-label" | Wand
! class="infobox-label" | Wand
| class="infobox-data" | {{{wand}}}
| class="infobox-data" | <span class="val">{{{wand|}}}</span>
}}
{{#if:{{{patronus|}}}|
|-
|-
! class="infobox-label" | Patronus
! class="infobox-label" | Patronus
| class="infobox-data" | {{{patronus}}}
| class="infobox-data" | <span class="val">{{{patronus|}}}</span>
}}
|-
{{#if:{{{family|}}}|
! class="infobox-label" | Parents
| class="infobox-data" | <span class="val">{{{parents|}}}</span>
|-
! class="infobox-label" | Siblings
| class="infobox-data" | <span class="val">{{{siblings|}}}</span>
|-
|-
! class="infobox-label" | Family
! class="infobox-label" | Significant Other
| class="infobox-data" | {{{family}}}
| class="infobox-data" | <span class="val">{{{significant_other|}}}</span>
}}
{{#if:{{{relationships|}}}|
|-
|-
! class="infobox-label" | Relationships
! class="infobox-label" | Children
| class="infobox-data" | {{{relationships}}}
| class="infobox-data" | <span class="val">{{{children|}}}</span>
}}
{{#if:{{{first_appearance|}}}|
|-
|-
! class="infobox-label" | First appearance
! class="infobox-label" | Friends
| class="infobox-data" | {{{first_appearance}}}
| class="infobox-data" | <span class="val">{{{friends|}}}</span>
}}
{{#if:{{{status|}}}|
|-
|-
! class="infobox-label" | Status
! class="infobox-label" | Status
| class="infobox-data" | {{{status}}}
| class="infobox-data" | <span class="val">{{{status|}}}</span>
}}
|}
|}
</div>
</div>
<noinclude>
<noinclude>
This is a simple infobox. To use:
Usage:
<pre>
<pre>
{{Infobox character
{{Infobox character
| name = Example Name
| name             = Example Name
| image = Example.jpg
| image           = Example.jpg
| gender          =
| nicknames        =
| born            =
| died            =
| family          =
| bloodtype        =
| social_class    =
| house            =
| graduation_year  =
| occupation      =
| residence        =
| wand            =
| patronus        =
| parents          =
| siblings        =
| significant_other=
| children        =
| friends          =
| status          =
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>
<templatedata>
{
  "description": "Reusable character infobox.",
  "params": {
    "name": {"label":"Name","type":"string","suggested":true},
    "image": {"label":"Image filename","type":"wiki-file-name"},
    "image_alt": {"label":"Image alt text","type":"string"},
    "caption": {"label":"Image caption","type":"string"},
    "quote": {"label":"Short quote","type":"string"},
    "aliases": {"label":"Aliases","type":"string"},
    "born": {"label":"Born","type":"string"},
    "died": {"label":"Died","type":"string"},
    "age": {"label":"Age","type":"string"},
    "species": {"label":"Species","type":"string"},
    "gender": {"label":"Gender","type":"string"},
    "house": {"label":"House","type":"string"},
    "affiliation": {"label":"Affiliation","type":"string"},
    "occupation": {"label":"Occupation","type":"string"},
    "wand": {"label":"Wand","type":"string"},
    "patronus": {"label":"Patronus","type":"string"},
    "family": {"label":"Family","type":"string"},
    "relationships": {"label":"Relationships","type":"string"},
    "first_appearance": {"label":"First appearance","type":"string"},
    "status": {"label":"Status","type":"string"}
  },
  "paramOrder": [
    "name","image","image_alt","caption","quote",
    "aliases","born","died","age","species","gender","house",
    "affiliation","occupation","wand","patronus","family",
    "relationships","first_appearance","status"
  ]
}
</templatedata>

Latest revision as of 22:18, 15 November 2025

Infobox character

[[File:|frameless|260px|center|alt=]]

Gender
Nicknames
Born
Died
Family
Bloodtype
Social Class
Hogwarts House
Graduation Year
Occupation
Residence
Wand
Patronus
Parents
Siblings
Significant Other
Children
Friends
Status

Usage:

{{Infobox character
| name             = Example Name
| image            = Example.jpg
| gender           = 
| nicknames        = 
| born             = 
| died             = 
| family           = 
| bloodtype        = 
| social_class     = 
| house            = 
| graduation_year  = 
| occupation       = 
| residence        = 
| wand             = 
| patronus         = 
| parents          =
| siblings         =
| significant_other=
| children         = 
| friends          = 
| status           = 
}}