Template:Infobox character: Difference between revisions
From feywild
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <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:{{{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 that starts with an image and caption, with labeled fields below. Text wraps on the left side.", "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" }, "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", "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 | education = Arcane College of Ilina | Known Languages = Sylvan }} </pre> This version floats on the **right side** of the page, allowing body text to wrap neatly around it. </noinclude> | ||
<div style="float:right; margin:0 | |||
</div> | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
} | |||
</templatedata> | |||
== Usage == | |||
<pre> | |||
{{Infobox character | |||
| image | |||
| caption | |||
| aliases | |||
| loyalties | |||
| title | |||
| role | |||
| birthplace | |||
| birthdate | |||
| status | |||
| species | |||
| Nationality = Ayldarzi | |||
| gender | |||
| orientation = Pansexual | |||
| partners | |||
| education | |||
| Known Languages = Sylvan | |||
}} | |||
</pre> | |||
</noinclude> | |||
Revision as of 14:05, 2 November 2025
Right-floating character infobox that starts with an image and caption, with labeled fields below. Text wraps on the left side.
| 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 |
| 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 | education = Arcane College of Ilina | Known Languages = Sylvan }} This version floats on the **right side** of the page, allowing body text to wrap neatly around it.