Template:Infobox character: Difference between revisions

From feywild

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{name|}}}{{{height|}}}{{{build|}}}{{{wings|}}}{{{eye|}}}{{{hair|}}}{{{skintone|}}}{{{scars|}}}{{{tattoos|}}}{{{piercings|}}}{{{features|}}}{{{gear|}}}{{{notes|}}}|
{{#if:{{{name|}}}{{{aliases|}}}{{{nicknames|}}}{{{standard_titles|}}}{{{formal_titles|}}}{{{full_title|}}}{{{territory|}}}{{{seat_of_power|}}}{{{residences|}}}{{{status|}}}{{{species|}}}{{{Nationality|}}}{{{gender|}}}{{{orientation|}}}{{{loyalties|}}}{{{partners|}}}{{{birthplace|}}}{{{birthdate|}}}{{{during|}}}{{{deathdate|}}}{{{age_at_death|}}}{{{death_circumstances|}}}{{{title|}}}{{{role|}}}{{{combat_class|}}}{{{specialty|}}}{{{magic_school|}}}{{{affinities|}}}{{{notable_feats|}}}{{{formal_prep|}}}{{{formal_scholastic|}}}{{{formal_martial|}}}{{{formal_arcane|}}}{{{formal_religious|}}}{{{informal|}}}{{{fluent_in|}}}{{{semi_fluent_in|}}}|
<div style="float:right; margin:0 0 10px 15px; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:10px; font-size:90%; line-height:1.5em;">
<div style="float:right; margin:0 0 10px 15px; border:1px solid #AAA; background:#F9F9F9; width:300px; padding:10px; font-size:90%; line-height:1.5em;">


<!-- Name -->
<!-- Name -->
Line 8: Line 8:
<!-- Data Table -->
<!-- Data Table -->
<table style="width:100%; border-collapse:collapse; font-size:95%;">
<table style="width:100%; border-collapse:collapse; font-size:95%;">
{{#if:{{{height|}}}|<tr><td style="vertical-align:top; width:40%; font-weight:bold; padding:4px;">Height</td><td style="padding:4px;">{{{height}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{aliases|}}}|<tr><td><b>Aliases</b></td><td>{{{aliases}}}</td></tr>}}
{{#if:{{{build|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Build</td><td style="padding:4px;">{{{build}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{nicknames|}}}|<tr><td><b>Nicknames</b></td><td>{{{nicknames}}}</td></tr>}}
{{#if:{{{wings|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Wings</td><td style="padding:4px;">{{{wings}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{standard_titles|}}}|<tr><td><b>Standard Titles</b></td><td>{{{standard_titles}}}</td></tr>}}
{{#if:{{{eye|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Eye Color</td><td style="padding:4px;">{{{eye}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{formal_titles|}}}|<tr><td><b>Formal Titles</b></td><td>{{{formal_titles}}}</td></tr>}}
{{#if:{{{hair|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Hair</td><td style="padding:4px;">{{{hair}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{full_title|}}}|<tr><td><b>Full Title</b></td><td>{{{full_title}}}</td></tr>}}
{{#if:{{{skintone|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Skintone</td><td style="padding:4px;">{{{skintone}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
 
{{#if:{{{scars|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Scars</td><td style="padding:4px;">{{{scars}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{territory|}}}|<tr><td><b>Territory</b></td><td>{{{territory}}}</td></tr>}}
{{#if:{{{tattoos|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Tattoos</td><td style="padding:4px;">{{{tattoos}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{seat_of_power|}}}|<tr><td><b>Seat of Power</b></td><td>{{{seat_of_power}}}</td></tr>}}
{{#if:{{{piercings|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Piercings</td><td style="padding:4px;">{{{piercings}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{residences|}}}|<tr><td><b>Residences</b></td><td>{{{residences}}}</td></tr>}}
{{#if:{{{features|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Distinguishing Features</td><td style="padding:4px;">{{{features}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
 
{{#if:{{{gear|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Notable Gear</td><td style="padding:4px;">{{{gear}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
{{#if:{{{status|}}}|<tr><td><b>Status</b></td><td>{{{status}}}</td></tr>}}
{{#if:{{{notes|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Other Notes</td><td style="padding:4px;">{{{notes}}}</td></tr>}}
{{#if:{{{species|}}}|<tr><td><b>Species</b></td><td>{{{species}}}</td></tr>}}
{{#if:{{{Nationality|}}}|<tr><td><b>Nationality</b></td><td>{{{Nationality}}}</td></tr>}}
{{#if:{{{gender|}}}|<tr><td><b>Gender</b></td><td>{{{gender}}}</td></tr>}}
{{#if:{{{orientation|}}}|<tr><td><b>Orientation</b></td><td>{{{orientation}}}</td></tr>}}
{{#if:{{{loyalties|}}}|<tr><td><b>Loyalties</b></td><td>{{{loyalties}}}</td></tr>}}
{{#if:{{{partners|}}}|<tr><td><b>Partners</b></td><td>{{{partners}}}</td></tr>}}
 
{{#if:{{{birthplace|}}}|<tr><td><b>Birthplace</b></td><td>{{{birthplace}}}</td></tr>}}
{{#if:{{{birthdate|}}}|<tr><td><b>Birthdate</b></td><td>{{{birthdate}}}</td></tr>}}
{{#if:{{{during|}}}|<tr><td><b>During</b></td><td>{{{during}}}</td></tr>}}
{{#if:{{{deathdate|}}}|<tr><td><b>Deathdate</b></td><td>{{{deathdate}}}</td></tr>}}
{{#if:{{{age_at_death|}}}|<tr><td><b>Age at Death</b></td><td>{{{age_at_death}}}</td></tr>}}
{{#if:{{{death_circumstances|}}}|<tr><td><b>Death Circumstances</b></td><td>{{{death_circumstances}}}</td></tr>}}
 
{{#if:{{{title|}}}|<tr><td><b>Title</b></td><td>{{{title}}}</td></tr>}}
{{#if:{{{role|}}}|<tr><td><b>Role</b></td><td>{{{role}}}</td></tr>}}
{{#if:{{{combat_class|}}}|<tr><td><b>Combat Class</b></td><td>{{{combat_class}}}</td></tr>}}
{{#if:{{{specialty|}}}|<tr><td><b>Specialty</b></td><td>{{{specialty}}}</td></tr>}}
 
{{#if:{{{magic_school|}}}|<tr><td><b>Magic School</b></td><td>{{{magic_school}}}</td></tr>}}
{{#if:{{{affinities|}}}|<tr><td><b>Affinities</b></td><td>{{{affinities}}}</td></tr>}}
{{#if:{{{notable_feats|}}}|<tr><td><b>Notable Feats</b></td><td>{{{notable_feats}}}</td></tr>}}
 
{{#if:{{{formal_prep|}}}|<tr><td><b>Formal Prep</b></td><td>{{{formal_prep}}}</td></tr>}}
{{#if:{{{formal_scholastic|}}}|<tr><td><b>Formal Scholastic</b></td><td>{{{formal_scholastic}}}</td></tr>}}
{{#if:{{{formal_martial|}}}|<tr><td><b>Formal Martial</b></td><td>{{{formal_martial}}}</td></tr>}}
{{#if:{{{formal_arcane|}}}|<tr><td><b>Formal Arcane</b></td><td>{{{formal_arcane}}}</td></tr>}}
{{#if:{{{formal_religious|}}}|<tr><td><b>Formal Religious</b></td><td>{{{formal_religious}}}</td></tr>}}
{{#if:{{{informal|}}}|<tr><td><b>Informal</b></td><td>{{{informal}}}</td></tr>}}
 
{{#if:{{{fluent_in|}}}|<tr><td><b>Fluent In</b></td><td>{{{fluent_in}}}</td></tr>}}
{{#if:{{{semi_fluent_in|}}}|<tr><td><b>Semi-Fluent In</b></td><td>{{{semi_fluent_in}}}</td></tr>}}
</table>
</table>


Line 29: Line 60:
<templatedata>
<templatedata>
{
{
   "description": "Right-floating infobox for character physical and aesthetic traits. Only shows fields that are filled.",
   "description": "Right-floating character infobox. Displays identity, status, roles, education, and language traits. Empty fields are hidden.",
   "params": {
   "params": {
     "name": { "label": "Form Name", "type": "string" },
     "name": { "type": "string" },
     "height": { "label": "Height", "type": "string" },
     "aliases": { "type": "string" },
     "build": { "label": "Build", "type": "string" },
     "nicknames": { "type": "string" },
     "wings": { "label": "Wings", "type": "string" },
     "standard_titles": { "type": "string" },
     "eye": { "label": "Eye Color", "type": "string" },
     "formal_titles": { "type": "string" },
     "hair": { "label": "Hair", "type": "string" },
     "full_title": { "type": "string" },
     "skintone": { "label": "Skintone", "type": "string" },
     "territory": { "type": "string" },
     "scars": { "label": "Scars", "type": "string" },
     "seat_of_power": { "type
    "tattoos": { "label": "Tattoos", "type": "string" },
    "piercings": { "label": "Piercings", "type": "string" },
    "features": { "label": "Distinguishing Features", "type": "string" },
    "gear": { "label": "Notable Gear", "type": "string" },
    "notes": { "label": "Other Notes", "type": "string" }
  },
  "paramOrder": [
    "name", "height", "build", "wings", "eye", "hair", "skintone",
    "scars", "tattoos", "piercings", "features", "gear", "notes"
  ]
}
</templatedata>
 
== Usage ==
<pre><nowiki>
{{Infobox character
| name = Natural Form
| height = 6'2"
| build = Wiry
| wings = Red
| eye = Blue
| hair = Ombre
| skintone = Green
| scars = —
| tattoos = —
| piercings = —
| features = Eyes change color; bioluminescent veins at dusk.
| gear = Veil-thread cloak; Oathbinding signet
| notes = Likes to wear silken robes dyed with all the colors of the rainbow at the same time and is often garish to look at.
}}
</nowiki></pre>
</noinclude>

Revision as of 17:52, 3 November 2025


<templatedata> {

 "description": "Right-floating character infobox. Displays identity, status, roles, education, and language traits. Empty fields are hidden.",
 "params": {
   "name": { "type": "string" },
   "aliases": { "type": "string" },
   "nicknames": { "type": "string" },
   "standard_titles": { "type": "string" },
   "formal_titles": { "type": "string" },
   "full_title": { "type": "string" },
   "territory": { "type": "string" },
   "seat_of_power": { "type