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|}}}{{{appearance1_title|}}}{{{appearance1_height|}}}{{{appearance1_build|}}}{{{appearance1_wings|}}}{{{appearance1_eye_color|}}}{{{appearance1_hair_color|}}}{{{appearance1_skin_tone|}}}{{{appearance1_distinguishing_features|}}}{{{appearance1_other_notes|}}}{{{appearance2_title|}}}{{{appearance2_height|}}}{{{appearance2_build|}}}{{{appearance2_wings|}}}{{{appearance2_eye_color|}}}{{{appearance2_hair_color|}}}{{{appearance2_skin_tone|}}}{{{appearance2_distinguishing_features|}}}{{{appearance2_other_notes|}}}{{{appearance3_title|}}}{{{appearance3_height|}}}{{{appearance3_build|}}}{{{appearance3_wings|}}}{{{appearance3_eye_color|}}}{{{appearance3_hair_color|}}}{{{appearance3_skin_tone|}}}{{{appearance3_distinguishing_features|}}}{{{appearance3_other_notes|}}}|
{{#if:{{{image|}}}{{{caption|}}}{{{aliases|}}}{{{loyalties|}}}{{{title|}}}{{{role|}}}{{{birthplace|}}}{{{birthdate|}}}{{{status|}}}{{{species|}}}{{{Nationality|}}}{{{gender|}}}{{{orientation|}}}{{{partners|}}}{{{education|}}}{{{Known Languages|}}}{{{appearance1_title|}}}{{{appearance2_title|}}}{{{appearance3_title|}}}|
<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;">
<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;">


Line 25: Line 25:
     {{#if:{{{partners|}}}|<tr><td style="font-weight:bold; padding:4px;">Partners</td><td style="padding:4px;">{{{partners}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}
     {{#if:{{{partners|}}}|<tr><td style="font-weight:bold; padding:4px;">Partners</td><td style="padding:4px;">{{{partners}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>}}


     <!-- Appearance Set 1 -->
     <!-- APPEARANCE SET 1 -->
     {{#if:{{{appearance1_height|}}}{{{appearance1_build|}}}{{{appearance1_wings|}}}{{{appearance1_eye_color|}}}{{{appearance1_hair_color|}}}{{{appearance1_skin_tone|}}}{{{appearance1_distinguishing_features|}}}{{{appearance1_other_notes|}}}|
     {{#if:{{{appearance1_title|}}}{{{appearance1_height|}}}{{{appearance1_build|}}}{{{appearance1_wings|}}}{{{appearance1_eye_color|}}}{{{appearance1_hair_color|}}}{{{appearance1_skin_tone|}}}{{{appearance1_distinguishing_features|}}}{{{appearance1_other_notes|}}}|
       <tr><td style="font-weight:bold; padding:4px;">{{#if:{{{appearance1_title|}}}|{{{appearance1_title}}}|Appearance (Form 1)}}</td>
       <tr><td colspan="2" style="background:#eaeaea; text-align:center; font-weight:bold; padding:6px;">{{#if:{{{appearance1_title|}}}|{{{appearance1_title}}}|Appearance (Form 1)}}</td></tr>
       <td style="padding:4px;">
       <tr><td colspan="2" style="padding:6px;">
         {{#if:{{{appearance1_height|}}}|'''Height:''' {{{appearance1_height}}}<br>}}
         {{#if:{{{appearance1_height|}}}|'''Height:''' {{{appearance1_height}}}<br>}}
         {{#if:{{{appearance1_build|}}}|'''Build:''' {{{appearance1_build}}}<br>}}
         {{#if:{{{appearance1_build|}}}|'''Build:''' {{{appearance1_build}}}<br>}}
Line 41: Line 41:
     }}
     }}


     <!-- Appearance Set 2 -->
     <!-- APPEARANCE SET 2 -->
     {{#if:{{{appearance2_height|}}}{{{appearance2_build|}}}{{{appearance2_wings|}}}{{{appearance2_eye_color|}}}{{{appearance2_hair_color|}}}{{{appearance2_skin_tone|}}}{{{appearance2_distinguishing_features|}}}{{{appearance2_other_notes|}}}|
     {{#if:{{{appearance2_title|}}}{{{appearance2_height|}}}{{{appearance2_build|}}}{{{appearance2_wings|}}}{{{appearance2_eye_color|}}}{{{appearance2_hair_color|}}}{{{appearance2_skin_tone|}}}{{{appearance2_distinguishing_features|}}}{{{appearance2_other_notes|}}}|
       <tr><td style="font-weight:bold; padding:4px;">{{#if:{{{appearance2_title|}}}|{{{appearance2_title}}}|Appearance (Form 2)}}</td>
       <tr><td colspan="2" style="background:#eaeaea; text-align:center; font-weight:bold; padding:6px;">{{#if:{{{appearance2_title|}}}|{{{appearance2_title}}}|Appearance (Form 2)}}</td></tr>
       <td style="padding:4px;">
       <tr><td colspan="2" style="padding:6px;">
         {{#if:{{{appearance2_height|}}}|'''Height:''' {{{appearance2_height}}}<br>}}
         {{#if:{{{appearance2_height|}}}|'''Height:''' {{{appearance2_height}}}<br>}}
         {{#if:{{{appearance2_build|}}}|'''Build:''' {{{appearance2_build}}}<br>}}
         {{#if:{{{appearance2_build|}}}|'''Build:''' {{{appearance2_build}}}<br>}}
Line 57: Line 57:
     }}
     }}


     <!-- Appearance Set 3 -->
     <!-- APPEARANCE SET 3 -->
     {{#if:{{{appearance3_height|}}}{{{appearance3_build|}}}{{{appearance3_wings|}}}{{{appearance3_eye_color|}}}{{{appearance3_hair_color|}}}{{{appearance3_skin_tone|}}}{{{appearance3_distinguishing_features|}}}{{{appearance3_other_notes|}}}|
     {{#if:{{{appearance3_title|}}}{{{appearance3_height|}}}{{{appearance3_build|}}}{{{appearance3_wings|}}}{{{appearance3_eye_color|}}}{{{appearance3_hair_color|}}}{{{appearance3_skin_tone|}}}{{{appearance3_distinguishing_features|}}}{{{appearance3_other_notes|}}}|
       <tr><td style="font-weight:bold; padding:4px;">{{#if:{{{appearance3_title|}}}|{{{appearance3_title}}}|Appearance (Form 3)}}</td>
       <tr><td colspan="2" style="background:#eaeaea; text-align:center; font-weight:bold; padding:6px;">{{#if:{{{appearance3_title|}}}|{{{appearance3_title}}}|Appearance (Form 3)}}</td></tr>
       <td style="padding:4px;">
       <tr><td colspan="2" style="padding:6px;">
         {{#if:{{{appearance3_height|}}}|'''Height:''' {{{appearance3_height}}}<br>}}
         {{#if:{{{appearance3_height|}}}|'''Height:''' {{{appearance3_height}}}<br>}}
         {{#if:{{{appearance3_build|}}}|'''Build:''' {{{appearance3_build}}}<br>}}
         {{#if:{{{appearance3_build|}}}|'''Build:''' {{{appearance3_build}}}<br>}}
Line 81: Line 81:


<noinclude>
<noinclude>
<templatedata>
{
  "description": "Right-floating character infobox with three editable appearance sets built in (no subboxes). Empty fields are hidden.",
  "params": {
    "image": {"label": "Image", "type": "string"},
    "caption": {"label": "Caption", "type": "string"},
    "aliases": {"label": "Aliases", "type": "string"},
    "loyalties": {"label": "Loyalties", "type": "string"},
    "title": {"label": "Title", "type": "string"},
    "role": {"label": "Role", "type": "string"},
    "birthplace": {"label": "Birthplace", "type": "string"},
    "birthdate": {"label": "Birthdate", "type": "string"},
    "status": {"label": "Status", "type": "string"},
    "species": {"label": "Species", "type": "string"},
    "Nationality": {"label": "Nationality", "type": "string"},
    "gender": {"label": "Gender", "type": "string"},
    "orientation": {"label": "Orientation", "type": "string"},
    "partners": {"label": "Partners", "type": "string"},
    "appearance1_title": {"label": "Appearance 1 Title", "type": "string"},
    "appearance1_height": {"label": "Appearance 1 Height", "type": "string"},
    "appearance1_build": {"label": "Appearance 1 Build", "type": "string"},
    "appearance1_wings": {"label": "Appearance 1 Wings", "type": "string"},
    "appearance1_eye_color": {"label": "Appearance 1 Eye color", "type": "string"},
    "appearance1_hair_color": {"label": "Appearance 1 Hair color", "type": "string"},
    "appearance1_skin_tone": {"label": "Appearance 1 Skin tone", "type": "string"},
    "appearance1_distinguishing_features": {"label": "Appearance 1 Distinguishing features", "type": "string"},
    "appearance1_other_notes": {"label": "Appearance 1 Other notes", "type": "string"},
    "appearance2_title": {"label": "Appearance 2 Title", "type": "string"},
    "appearance2_height": {"label": "Appearance 2 Height", "type": "string"},
    "appearance2_build": {"label": "Appearance 2 Build", "type": "string"},
    "appearance2_wings": {"label": "Appearance 2 Wings", "type": "string"},
    "appearance2_eye_color": {"label": "Appearance 2 Eye color", "type": "string"},
    "appearance2_hair_color": {"label": "Appearance 2 Hair color", "type": "string"},
    "appearance2_skin_tone": {"label": "Appearance 2 Skin tone", "type": "string"},
    "appearance2_distinguishing_features": {"label": "Appearance 2 Distinguishing features", "type": "string"},
    "appearance2_other_notes": {"label": "Appearance 2 Other notes", "type": "string"},
    "appearance3_title": {"label": "Appearance 3 Title", "type": "string"},
    "appearance3_height": {"label": "Appearance 3 Height", "type": "string"},
    "appearance3_build": {"label": "Appearance 3 Build", "type": "string"},
    "appearance3_wings": {"label": "Appearance 3 Wings", "type": "string"},
    "appearance3_eye_color": {"label": "Appearance 3 Eye color", "type": "string"},
    "appearance3_hair_color": {"label": "Appearance 3 Hair color", "type": "string"},
    "appearance3_skin_tone": {"label": "Appearance 3 Skin tone", "type": "string"},
    "appearance3_distinguishing_features": {"label": "Appearance 3 Distinguishing features", "type": "string"},
    "appearance3_other_notes": {"label": "Appearance 3 Other notes", "type": "string"},
    "education": {"label": "Education", "type": "string"},
    "Known Languages": {"label": "Known Languages", "type": "string"}
  },
  "paramOrder": [
    "image","caption","aliases","loyalties","title","role",
    "birthplace","birthdate","status","species","Nationality","gender","orientation","partners",
    "appearance1_title","appearance1_height","appearance1_build","appearance1_wings","appearance1_eye_color","appearance1_hair_color","appearance1_skin_tone","appearance1_distinguishing_features","appearance1_other_notes",
    "appearance2_title","appearance2_height","appearance2_build","appearance2_wings","appearance2_eye_color","appearance2_hair_color","appearance2_skin_tone","appearance2_distinguishing_features","appearance2_other_notes",
    "appearance3_title","appearance3_height","appearance3_build","appearance3_wings","appearance3_eye_color","appearance3_hair_color","appearance3_skin_tone","appearance3_distinguishing_features","appearance3_other_notes",
    "education","Known Languages"
  ]
}
</templatedata>
== Usage ==
== Usage ==
<pre>
<pre>
Line 193: Line 130:
}}
}}
</pre>
</pre>
 
</noinclude>
This keeps everything flat and easy to maintain. If later you decide you need a fourth or fifth form, I can hand you a ready-to-paste block that matches this pattern.

Revision as of 11:24, 3 November 2025


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

| appearance1_title = Natural Form
| appearance1_height = 1.82 m (6'0")
| appearance1_build = Wiry
| appearance1_wings = Red
| appearance1_eye_color = Blue
| appearance1_hair_color = Ombre
| appearance1_skin_tone = Green
| appearance1_distinguishing_features = Silver freckles; thornlike ears
| appearance1_other_notes = Bioluminescent veins at dusk

| appearance2_title = Sylvan Form
| appearance2_height = 1.82 m (6'0")
| appearance2_build = Wiry
| appearance2_eye_color = Blue
| appearance2_hair_color = Black
| appearance2_skin_tone = Tan

| appearance3_title = Winter Aspect
| appearance3_height = 1.82 m (6'0")
| appearance3_build = Wiry
| appearance3_wings = Frost-veined, vestigial
| appearance3_eye_color = Ice blue
| appearance3_hair_color = White
| appearance3_skin_tone = Pale with blue undertone
| appearance3_distinguishing_features = Breath mists in warm air
| appearance3_other_notes = Faint chime when moving quickly

| education = Arcane College of Ilina
| Known Languages = Sylvan
}}