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 -->
<!-- Show the box only if at least one parameter has data -->
{{#if:{{{image|}}}{{{caption|}}}{{{aliases|}}}{{{loyalties|}}}{{{title|}}}{{{role|}}}{{{birthplace|}}}{{{birthdate|}}}{{{status|}}}{{{species|}}}{{{gender|}}}{{{orientation|}}}{{{partners|}}}{{{education|}}}|
{{#if:{{{image|}}}{{{caption|}}}{{{aliases|}}}{{{loyalties|}}}{{{title|}}}{{{role|}}}{{{birthplace|}}}{{{birthdate|}}}{{{status|}}}{{{species|}}}{{{gender|}}}{{{orientation|}}}{{{partners|}}}{{{education|}}}|
<div style="float:right; clear:right; margin:0 15px 10px 0; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:8px; font-size:90%; line-height:1.4em;">
<div style="float:right; clear:right; margin:0 0 10px 15px; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:8px; font-size:90%; line-height:1.4em;">


   <!-- Image + Caption -->
   <!-- Image + Caption -->
Line 35: Line 35:
<templatedata>
<templatedata>
{
{
   "description": "A left-floating character infobox that starts with the image, allowing text to flow beside it.",
   "description": "Right-floating character infobox that starts with an image and caption, with labeled fields below. Text wraps on the left side.",
   "params": {
   "params": {
     "image": {
     "image": {"label":"Image","description":"File name of the image (omit 'File:').","type":"string"},
      "label": "Image",
     "caption": {"label":"Caption","description":"Text displayed under the image.","type":"string"},
      "description": "File name of the image (omit 'File:').",
     "aliases": {"label":"Aliases","description":"Alternate names or titles.","type":"string"},
      "type": "string",
     "loyalties": {"label":"Loyalties","description":"Organizations or allegiances.","type":"string"},
      "required": false
     "title": {"label":"Title","description":"Formal or informal title(s).","type":"string"},
    },
     "role": {"label":"Role","description":"Occupation or narrative role.","type":"string"},
     "caption": {
     "birthplace": {"label":"Birthplace","description":"Place of origin.","type":"string"},
      "label": "Caption",
     "birthdate": {"label":"Birthdate","description":"Character’s date of birth.","type":"string"},
      "description": "Text under the image.",
     "status": {"label":"Status","description":"Current state (Alive, Deceased, etc.).","type":"string"},
      "type": "string",
     "species": {"label":"Species","description":"Race or species.","type":"string"},
      "required": false
     "gender": {"label":"Gender","description":"Gender identity.","type":"string"},
    },
     "orientation": {"label":"Orientation","description":"Sexual orientation.","type":"string"},
     "aliases": {"label": "Aliases", "description": "Alternate names or titles.", "type": "string"},
     "partners": {"label":"Partners","description":"Romantic or bonded partners.","type":"string"},
     "loyalties": {"label": "Loyalties", "description": "Organizations or allegiances.", "type": "string"},
     "education": {"label":"Education","description":"Training or schooling.","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 84: Line 74:
}}
}}
</pre>
</pre>
This box will appear on the **left side** of the page, with normal text wrapping around it.
This version floats on the **right side** of the page, allowing body text to wrap neatly around it.
</noinclude>
</noinclude>

Revision as of 13:22, 30 October 2025


Right-floating character infobox that starts with an image and caption, with labeled fields below. Text wraps on the left side.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Imageimage

File name of the image (omit 'File:').

Stringoptional
Captioncaption

Text displayed under the image.

Stringoptional
Aliasesaliases

Alternate names or titles.

Stringoptional
Loyaltiesloyalties

Organizations or allegiances.

Stringoptional
Titletitle

Formal or informal title(s).

Stringoptional
Rolerole

Occupation or narrative role.

Stringoptional
Birthplacebirthplace

Place of origin.

Stringoptional
Birthdatebirthdate

Character’s date of birth.

Stringoptional
Statusstatus

Current state (Alive, Deceased, etc.).

Stringoptional
Speciesspecies

Race or species.

Stringoptional
Gendergender

Gender identity.

Stringoptional
Orientationorientation

Sexual orientation.

Stringoptional
Partnerspartners

Romantic or bonded partners.

Stringoptional
Educationeducation

Training or schooling.

Stringoptional

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 version floats on the **right side** of the page, allowing body text to wrap neatly around it.