Template:Infobox character: Difference between revisions

From KB Lexicon
No edit summary
No edit summary
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:{{{full 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:{{{quote|}}}|
<div class="infobox-caption">{{{caption|}}}</div>
 
|-
|-
| colspan="2" class="infobox-quote" | “{{{quote}}}”
! class="infobox-label" | Gender
}}
| class="infobox-data" | <span class="val">{{{gender|}}}</span>
{{#if:{{{nicknames|}}}|
|-
|-
! class="infobox-label" | Nicknames
! class="infobox-label" | Nicknames
| class="infobox-data" | {{{nicknames}}}
| class="infobox-data" | <span class="val">{{{nicknames|}}}</span>
}}
{{#if:{{{birthdate|}}}|
|-
|-
! 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:{{{family|}}}|
|-
|-
! class="infobox-label" | Family
! class="infobox-label" | Family
| class="infobox-data" | {{{family}}}
| class="infobox-data" | <span class="val">{{{family|}}}</span>
}}
{{#if:{{{bloodtype|}}}|
|-
|-
! class="infobox-label" | Bloodtype
! class="infobox-label" | Bloodtype
| class="infobox-data" | {{{bloodtype}}}
| 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:{{{theme song|}}}|
|-
|-
! 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:{{{friends|}}}|
! class="infobox-label" | Significant Other
| class="infobox-data" | <span class="val">{{{significant_other|}}}</span>
|-
|-
! class="infobox-label" | Friends
! class="infobox-label" | Friends
| class="infobox-data" | {{{friends}}}
| class="infobox-data" | <span class="val">{{{friends|}}}</span>
}}
{{#if:{{{relationships|}}}|
|-
! class="infobox-label" | Relationships
| class="infobox-data" | {{{relationships}}}
}}
{{#if:{{{first_appearance|}}}|
|-
! class="infobox-label" | Graduation Year
| class="infobox-data" | {{{graduation year}}}
}}
{{#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        =
| significant_other=
| friends          =
| status          =
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 13:01, 8 September 2025

Infobox character

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

Gender
Nicknames
Born
Died
Family
Bloodtype
Social Class
Hogwarts House
Graduation Year
Occupation
Residence
Wand
Patronus
Significant Other
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         = 
| significant_other= 
| friends          = 
| status           = 
}}