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 |
||
| Line 3: | Line 3: | ||
{| class="infobox-table" | {| class="infobox-table" | ||
|- | |- | ||
! colspan="2" class="infobox-title" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ! colspan="2" class="infobox-title" | {{#if:{{{full name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
{{#if:{{{image|}}}| | {{#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|}}}| | {{#if:{{{quote|}}}| | ||
|- | |- | ||
| colspan="2" class="infobox-quote" | “{{{quote}}}” | | colspan="2" class="infobox-quote" | “{{{quote}}}” | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{nicknames|}}}| | ||
|- | |- | ||
! class="infobox-label" | | ! class="infobox-label" | Nicknames | ||
| class="infobox-data" | {{{ | | class="infobox-data" | {{{nicknames}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{birthdate|}}}| | ||
|- | |- | ||
! class="infobox-label" | Born | ! class="infobox-label" | Born | ||
| Line 29: | Line 27: | ||
| class="infobox-data" | {{{died}}} | | class="infobox-data" | {{{died}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{family|}}}| | ||
|- | |- | ||
! class="infobox-label" | | ! class="infobox-label" | Family | ||
| class="infobox-data" | {{{ | | class="infobox-data" | {{{family}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{bloodtype|}}}| | ||
|- | |- | ||
! class="infobox-label" | | ! class="infobox-label" | Bloodtype | ||
| class="infobox-data" | {{{ | | class="infobox-data" | {{{bloodtype}}} | ||
}} | }} | ||
{{#if:{{{gender|}}}| | {{#if:{{{gender|}}}| | ||
| Line 49: | Line 47: | ||
| class="infobox-data" | {{{house}}} | | class="infobox-data" | {{{house}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{theme song|}}}| | ||
|- | |- | ||
! class="infobox-label" | Affiliation | ! class="infobox-label" | Affiliation | ||
| Line 69: | Line 67: | ||
| class="infobox-data" | {{{patronus}}} | | class="infobox-data" | {{{patronus}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{friends|}}}| | ||
|- | |- | ||
! class="infobox-label" | | ! class="infobox-label" | Friends | ||
| class="infobox-data" | {{{ | | class="infobox-data" | {{{friends}}} | ||
}} | }} | ||
{{#if:{{{relationships|}}}| | {{#if:{{{relationships|}}}| | ||
| Line 81: | Line 79: | ||
{{#if:{{{first_appearance|}}}| | {{#if:{{{first_appearance|}}}| | ||
|- | |- | ||
! class="infobox-label" | | ! class="infobox-label" | Graduation Year | ||
| class="infobox-data" | {{{ | | class="infobox-data" | {{{graduation year}}} | ||
}} | }} | ||
{{#if:{{{status|}}}| | {{#if:{{{status|}}}| | ||
| Line 108: | Line 106: | ||
"image": {"label":"Image filename","type":"wiki-file-name"}, | "image": {"label":"Image filename","type":"wiki-file-name"}, | ||
"image_alt": {"label":"Image alt text","type":"string"}, | "image_alt": {"label":"Image alt text","type":"string"}, | ||
"quote": {"label":"Short quote","type":"string"}, | "quote": {"label":"Short quote","type":"string"}, | ||
" | "nicknames": {"label":"Nicknames","type":"string"}, | ||
"born": {"label":"Born","type":"string"}, | "born": {"label":"Born","type":"string"}, | ||
"died": {"label":"Died","type":"string"}, | "died": {"label":"Died","type":"string"}, | ||
" | "family": {"label":"Family","type":"string"}, | ||
" | "bloodtype": {"label":"Bloodtype","type":"string"}, | ||
"gender": {"label":"Gender","type":"string"}, | "gender": {"label":"Gender","type":"string"}, | ||
"house": {"label":"House","type":"string"}, | "house": {"label":"House","type":"string"}, | ||
| Line 121: | Line 118: | ||
"wand": {"label":"Wand","type":"string"}, | "wand": {"label":"Wand","type":"string"}, | ||
"patronus": {"label":"Patronus","type":"string"}, | "patronus": {"label":"Patronus","type":"string"}, | ||
" | "friends": {"label":"Friends","type":"string"}, | ||
"relationships": {"label":"Relationships","type":"string"}, | "relationships": {"label":"Relationships","type":"string"}, | ||
" | "graduation year": {"label":"Graduation Year","type":"string"}, | ||
"status": {"label":"Status","type":"string"} | "status": {"label":"Status","type":"string"} | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"name","image","image_alt","caption","quote", | "name","image","image_alt","caption","quote", | ||
" | "nicknames","born","died","family","bloodtype","gender","house", | ||
"affiliation","occupation","wand","patronus"," | "affiliation","occupation","wand","patronus","friends", | ||
"relationships"," | "relationships","graduation year","status" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 12:41, 8 September 2025
| Infobox character
{{#if:| | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
[[File:{{{image}}}|frameless|260px|center|alt=]] - - |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label"
- |
class="infobox-label" | |
This is a simple infobox. To use:
{{Infobox character
| name = Example Name
| image = Example.jpg
}}