Template:Infobox character: Difference between revisions
From feywild
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div style="border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:8px; font-size:90%; line-height:1.4em;"> | |||
<!-- Name (centered and bold) --> | |||
<div style="text-align:center; font-size:120%; font-weight:bold; margin-bottom:6px;"> | |||
{{{name|Unknown}}} | |||
{{#if:{{{image|}}} | </div> | ||
<!-- Image and Caption --> | |||
}} | <div style="text-align:center; margin-bottom:8px;"> | ||
{{#if:{{{image|}}}|[[File:{{{image}}}|250px|center]]}} | |||
<div style="font-size:85%; color:#555;">{{{caption|}}}</div> | |||
</div> | |||
<!-- Data Fields --> | |||
<table style="width:100%; border-collapse:collapse; font-size:95%;"> | |||
<tr><td style="vertical-align:top; width:35%; font-weight:bold;">Aliases</td><td>{{{aliases|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Loyalties</td><td>{{{loyalties|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Title</td><td>{{{title|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Role</td><td>{{{role|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Birthplace</td><td>{{{birthplace|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Birthdate</td><td>{{{birthdate|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Status</td><td>{{{status|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Species</td><td>{{{species|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Gender</td><td>{{{gender|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Orientation</td><td>{{{orientation|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Partners</td><td>{{{partners|}}}</td></tr> | |||
<tr><td style="vertical-align:top; font-weight:bold;">Education</td><td>{{{education|}}}</td></tr> | |||
</table> | |||
</div> | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{TemplateData| | |||
description = "Displays a neatly formatted infobox for characters, with name centered, image and caption below, and remaining data fields listed with labels." | |||
params = { | |||
name = { | |||
label = "Name", | |||
description = "Full name of the character.", | |||
type = "string", | |||
required = true | |||
}, | |||
image = { | |||
label = "Image", | |||
description = "Image file name (omit File: prefix).", | |||
type = "string", | |||
required = false | |||
}, | |||
caption = { | |||
label = "Caption", | |||
description = "Short caption or quote under the image.", | |||
type = "string", | |||
required = false | |||
}, | |||
aliases = { | |||
label = "Aliases", | |||
description = "Alternate names or titles the character is known by.", | |||
type = "string", | |||
required = false | |||
}, | |||
loyalties = { | |||
label = "Loyalties", | |||
description = "Organizations, families, or causes the character is loyal to.", | |||
type = "string", | |||
required = false | |||
}, | |||
title = { | |||
label = "Title", | |||
description = "Formal or informal title(s).", | |||
type = "string", | |||
required = false | |||
}, | |||
role = { | |||
label = "Role", | |||
description = "Occupation, profession, or narrative role.", | |||
type = "string", | |||
required = false | |||
}, | |||
birthplace = { | |||
label = "Birthplace", | |||
description = "Place of birth or origin.", | |||
type = "string", | |||
required = false | |||
}, | |||
birthdate = { | |||
label = "Birthdate", | |||
description = "Character's date of birth.", | |||
type = "string", | |||
required = false | |||
}, | |||
status = { | |||
label = "Status", | |||
description = "Current status (Alive, Deceased, Unknown, etc.).", | |||
type = "string", | |||
required = false | |||
}, | |||
species = { | |||
label = "Species", | |||
description = "Race or species of the character.", | |||
type = "string", | |||
required = false | |||
}, | |||
gender = { | |||
label = "Gender", | |||
description = "Gender identity of the character.", | |||
type = "string", | |||
required = false | |||
}, | |||
orientation = { | |||
label = "Orientation", | |||
description = "Sexual orientation.", | |||
type = "string", | |||
required = false | |||
}, | |||
partners = { | |||
label = "Partners", | |||
description = "Romantic or bonded partners.", | |||
type = "string", | |||
required = false | |||
}, | |||
education = { | |||
label = "Education", | |||
description = "Training, schooling, or institutions attended.", | |||
type = "string", | |||
required = false | |||
} | |||
} | |||
}} | |||
== Usage == | |||
Place this template at the top of a character page: | |||
<pre> | <pre> | ||
{{Infobox character | {{Infobox character | ||
| name | | name = Example Name | ||
| image | | image = Example.jpg | ||
| caption | | caption = Example Caption | ||
| aliases | | aliases = The Shadow | ||
| loyalties | | loyalties = House Vaeari | ||
| title | | title = Lord | ||
| role | | role = Enchanter | ||
| birthplace | | birthplace = Ilina | ||
| birthdate | | birthdate = 14th Sun of Summer, 1492 | ||
| status | | status = Alive | ||
| species | | species = Ayldarzi | ||
| gender | | gender = Male | ||
| orientation | | orientation = Pansexual | ||
| partners | | partners = Vael | ||
| education | | education = Arcane College of Ilina | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 13:10, 30 October 2025
Usage
Place this template at the top of a character page:
{{Infobox character
| name = Example Name
| 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
}}