Template:Infobox character: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> {{#if:{{{image|}}}{{{caption|}}}{{{aliases|}}}{{{loyalties|}}}{{{title|}}}{{{role|}}}{{{birthplace|}}}{{{birthdate|}}}{{{status|}}}{{{species|}}}{{{Nationality|}}}{{{gender|}}}{{{orientation|}}}{{{partners|}}}{{{education|}}}{{{Known Languages|}}}| <div style="float:right; clear:right; margin:0 0 10px 15px; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:10px; font-size:90%; line-height:1.5em;"> <!-- Image + Caption --> {{#if:{{{image|}}}| <div style="text-align:center; margin-bottom:10px;"> [[File:{{{image}}}|250px|center]] {{#if:{{{caption|}}}|<div style="font-size:85%; color:#555;">{{{caption}}}</div>}} </div> }} <!-- Data Table --> <table style="width:100%; border-collapse:collapse; font-size:95%;"> {{#if:{{{aliases|}}}|<tr><td style="vertical-align:top; width:35%; font-weight:bold; padding:4px;">Aliases</td><td style="padding:4px;">{{{aliases}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{loyalties|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Loyalties</td><td style="padding:4px;">{{{loyalties}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{title|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Title</td><td style="padding:4px;">{{{title}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{role|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Role</td><td style="padding:4px;">{{{role}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{birthplace|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Birthplace</td><td style="padding:4px;">{{{birthplace}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{birthdate|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Birthdate</td><td style="padding:4px;">{{{birthdate}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{status|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Status</td><td style="padding:4px;">{{{status}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{species|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Species</td><td style="padding:4px;">{{{species}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{Nationality|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Nationality</td><td style="padding:4px;">{{{Nationality}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{gender|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Gender</td><td style="padding:4px;">{{{gender}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{orientation|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Orientation</td><td style="padding:4px;">{{{orientation}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{partners|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Partners</td><td style="padding:4px;">{{{partners}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} {{#if:{{{ | <includeonly> | ||
{{#if:{{{image|}}}{{{caption|}}}{{{aliases|}}}{{{loyalties|}}}{{{title|}}}{{{role|}}}{{{birthplace|}}}{{{birthdate|}}}{{{status|}}}{{{species|}}}{{{Nationality|}}}{{{gender|}}}{{{orientation|}}}{{{partners|}}}{{{education|}}}{{{Known Languages|}}}{{{appearance|}}}| | |||
<div style="float:right; clear:right; margin:0 0 10px 15px; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:10px; font-size:90%; line-height:1.5em;"> | |||
<!-- Image + Caption --> | |||
{{#if:{{{image|}}}| | |||
<div style="text-align:center; margin-bottom:10px;"> | |||
[[File:{{{image}}}|250px|center]] | |||
{{#if:{{{caption|}}}|<div style="font-size:85%; color:#555;">{{{caption}}}</div>}} | |||
</div> | |||
}} | |||
<!-- Data Table --> | |||
<table style="width:100%; border-collapse:collapse; font-size:95%;"> | |||
{{#if:{{{aliases|}}}|<tr><td style="vertical-align:top; width:35%; font-weight:bold; padding:4px;">Aliases</td><td style="padding:4px;">{{{aliases}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{loyalties|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Loyalties</td><td style="padding:4px;">{{{loyalties}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{title|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Title</td><td style="padding:4px;">{{{title}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{role|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Role</td><td style="padding:4px;">{{{role}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{birthplace|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Birthplace</td><td style="padding:4px;">{{{birthplace}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{birthdate|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Birthdate</td><td style="padding:4px;">{{{birthdate}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{status|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Status</td><td style="padding:4px;">{{{status}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{species|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Species</td><td style="padding:4px;">{{{species}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{Nationality|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Nationality</td><td style="padding:4px;">{{{Nationality}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{gender|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Gender</td><td style="padding:4px;">{{{gender}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{orientation|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Orientation</td><td style="padding:4px;">{{{orientation}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{partners|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Partners</td><td style="padding:4px;">{{{partners}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
<!-- Appearance (container; supports any number of subboxes) --> | |||
{{#if:{{{appearance|}}}| | |||
<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Appearance</td> | |||
<td style="padding:4px;">{{{appearance}}}</td></tr> | |||
<tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr> | |||
}} | |||
{{#if:{{{education|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Education</td><td style="padding:4px;">{{{education}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}} | |||
{{#if:{{{Known Languages|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Known Languages</td><td style="padding:4px;">{{{Known Languages}}}</td></tr>}} | |||
</table> | |||
</div> | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"description": "Right-floating character infobox with image, caption, and labeled fields. Supports an 'appearance' container that can hold one or more subboxes (forms) with their own fields.", | |||
"params": { | |||
"image": { "label": "Image", "description": "File name of the image (omit 'File:').", "type": "string" }, | |||
"caption": { "label": "Caption", "description": "Text displayed under the image.", "type": "string" }, | |||
"aliases": { "label": "Aliases", "description": "Alternate names or titles.", "type": "string" }, | |||
"loyalties": { "label": "Loyalties", "description": "Organizations or allegiances.", "type": "string" }, | |||
"title": { "label": "Title", "description": "Formal or informal title(s).", "type": "string" }, | |||
"role": { "label": "Role", "description": "Occupation or narrative role.", "type": "string" }, | |||
"birthplace": { "label": "Birthplace", "description": "Place of origin.", "type": "string" }, | |||
"birthdate": { "label": "Birthdate", "description": "Character’s date of birth.", "type": "string" }, | |||
"status": { "label": "Status", "description": "Current state (Alive, Deceased, etc.).", "type": "string" }, | |||
"species": { "label": "Species", "description": "Race or species.", "type": "string" }, | |||
"Nationality": { "label": "Nationality", "description": "Nationality and/or ethnicity.", "type": "string" }, | |||
"gender": { "label": "Gender", "description": "Gender identity.", "type": "string" }, | |||
"orientation": { "label": "Orientation", "description": "Sexual orientation.", "type": "string" }, | |||
"partners": { "label": "Partners", "description": "Romantic or bonded partners.", "type": "string" }, | |||
"appearance": { | |||
"label": "Appearance", | |||
"description": "Container for one or more appearance subboxes (forms). Paste {{Infobox subbox}} blocks here.", | |||
"type": "content" | |||
}, | |||
"education": { "label": "Education", "description": "Training or schooling.", "type": "string" }, | |||
"Known Languages": { "label": "Known Languages", "description": "Fluency.", "type": "string" } | |||
}, | |||
"paramOrder": [ | |||
"image","caption","aliases","loyalties","title","role", | |||
"birthplace","birthdate","status","species","Nationality", | |||
"gender","orientation","partners","appearance","education","Known Languages" | |||
] | |||
} | |||
</templatedata> | |||
== Usage == | |||
<pre> | |||
{{Infobox character | |||
| image = Example.jpg | |||
| caption = Example Caption | |||
| aliases = The Shadow | |||
| loyalties = House Vaeari | |||
| title = Lord | |||
| role = Enchanter | |||
| birthplace = Ilina | |||
| birthdate = 14th Sun of Summer, 1492 | |||
| status = Alive | |||
| species = Ayldarzi | |||
| Nationality = Ayldarzi | |||
| gender = Male | |||
| orientation = Pansexual | |||
| partners = Vael | |||
| appearance = | |||
{{Infobox subbox | |||
| title = Natural Form | |||
| height = 1.82 m (6'0") | |||
| build = Wiry | |||
| wings = Red | |||
| eye_color = Blue | |||
| hair_color = Ombre | |||
| skin_tone = Green | |||
| distinguishing_features = Silver freckles; thornlike ears | |||
| other_notes = Bioluminescent veins at dusk | |||
}} | |||
{{Infobox subbox | |||
| title = Sylvan Form | |||
| height = 1.82 m (6'0") | |||
| build = Wiry | |||
| wings = | |||
| eye_color = Blue | |||
| hair_color = Black | |||
| skin_tone = Tan | |||
| distinguishing_features = Faint leafmark over left eye | |||
| other_notes = | |||
}} | |||
| education = Arcane College of Ilina | |||
| Known Languages = Sylvan | |||
}} | |||
</pre> | |||
This version keeps **Appearance** fully modular: include one subbox for humans (single form) or many for shapeshifters and fae. | |||
</noinclude> | |||
Revision as of 11:12, 3 November 2025
Right-floating character infobox with image, caption, and labeled fields. Supports an 'appearance' container that can hold one or more subboxes (forms) with their own fields.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | File name of the image (omit 'File:'). | String | optional |
| Caption | caption | Text displayed under the image. | String | optional |
| Aliases | aliases | Alternate names or titles. | String | optional |
| Loyalties | loyalties | Organizations or allegiances. | String | optional |
| Title | title | Formal or informal title(s). | String | optional |
| Role | role | Occupation or narrative role. | String | optional |
| Birthplace | birthplace | Place of origin. | String | optional |
| Birthdate | birthdate | Character’s date of birth. | String | optional |
| Status | status | Current state (Alive, Deceased, etc.). | String | optional |
| Species | species | Race or species. | String | optional |
| Nationality | Nationality | Nationality and/or ethnicity. | String | optional |
| Gender | gender | Gender identity. | String | optional |
| Orientation | orientation | Sexual orientation. | String | optional |
| Partners | partners | Romantic or bonded partners. | String | optional |
| Appearance | appearance | Container for one or more appearance subboxes (forms). Paste {{Infobox subbox}} blocks here. | Content | optional |
| Education | education | Training or schooling. | String | optional |
| Known Languages | Known Languages | Fluency. | String | optional |
Usage
{{Infobox character
| image = Example.jpg
| caption = Example Caption
| aliases = The Shadow
| loyalties = House Vaeari
| title = Lord
| role = Enchanter
| birthplace = Ilina
| birthdate = 14th Sun of Summer, 1492
| status = Alive
| species = Ayldarzi
| Nationality = Ayldarzi
| gender = Male
| orientation = Pansexual
| partners = Vael
| appearance =
{{Infobox subbox
| title = Natural Form
| height = 1.82 m (6'0")
| build = Wiry
| wings = Red
| eye_color = Blue
| hair_color = Ombre
| skin_tone = Green
| distinguishing_features = Silver freckles; thornlike ears
| other_notes = Bioluminescent veins at dusk
}}
{{Infobox subbox
| title = Sylvan Form
| height = 1.82 m (6'0")
| build = Wiry
| wings =
| eye_color = Blue
| hair_color = Black
| skin_tone = Tan
| distinguishing_features = Faint leafmark over left eye
| other_notes =
}}
| education = Arcane College of Ilina
| Known Languages = Sylvan
}}
This version keeps **Appearance** fully modular: include one subbox for humans (single form) or many for shapeshifters and fae.