Template:Infobox character: Difference between revisions
From feywild
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- Show the box only if there’s any data --> | ||
{{#if: | {{#if:{{{image|}}}{{{caption|}}}{{{aliases|}}}{{{loyalties|}}}{{{title|}}}{{{role|}}}{{{birthplace|}}}{{{birthdate|}}}{{{status|}}}{{{species|}}}{{{gender|}}}{{{orientation|}}}{{{partners|}}}{{{education|}}}| | ||
<div style="border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:8px; font-size:90%; line-height:1.4em;"> | <div style="float:left; clear:left; margin:0 15px 10px 0; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:8px; font-size:90%; line-height:1.4em;"> | ||
<!-- Image + Caption --> | <!-- Image + Caption --> | ||
| Line 19: | Line 12: | ||
}} | }} | ||
<!-- | <!-- Data Table --> | ||
<table style="width:100%; border-collapse:collapse; font-size:95%;"> | <table style="width:100%; border-collapse:collapse; font-size:95%;"> | ||
{{#if:{{{aliases|}}}|<tr><td style="vertical-align:top; width:35%; font-weight:bold;">Aliases</td><td>{{{aliases}}}</td></tr>}} | {{#if:{{{aliases|}}}|<tr><td style="vertical-align:top; width:35%; font-weight:bold;">Aliases</td><td>{{{aliases}}}</td></tr>}} | ||
| Line 42: | Line 35: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "A left-floating character infobox that starts with the image, allowing text to flow beside it.", | ||
"params": { | "params": { | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": " | "description": "File name of the image (omit 'File:').", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
"caption": { | "caption": { | ||
"label": "Caption", | "label": "Caption", | ||
"description": " | "description": "Text under the image.", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
" | "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 story 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"}, | |||
"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"} | |||
} | } | ||
} | } | ||
| Line 154: | Line 66: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Infobox character | {{Infobox character | ||
| image = Example.jpg | |||
| image = | | caption = Example Caption | ||
| caption = | | aliases = The Shadow | ||
| aliases = | | loyalties = House Vaeari | ||
| loyalties = House Vaeari | | title = Lord | ||
| title = | | role = Enchanter | ||
| role = Enchanter | | birthplace = Ilina | ||
| birthplace = | | birthdate = 14th Sun of Summer, 1492 | ||
| birthdate = | |||
| status = Alive | | status = Alive | ||
| species = Ayldarzi | | species = Ayldarzi | ||
| Line 202: | Line 84: | ||
}} | }} | ||
</pre> | </pre> | ||
This box will appear on the **left side** of the page, with normal text wrapping around it. | |||
</noinclude> | </noinclude> | ||
Revision as of 13:20, 30 October 2025
A left-floating character infobox that starts with the image, allowing text to flow beside it.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | File name of the image (omit 'File:'). | String | optional |
| Caption | caption | Text 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 story 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 |
| 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 |
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
| gender = Male
| orientation = Pansexual
| partners = Vael
| education = Arcane College of Ilina
}}
This box will appear on the **left side** of the page, with normal text wrapping around it.