Template:Infobox appearance: Difference between revisions

From feywild

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{name|}}}{{{image|}}}{{{caption|}}}{{{use like a caption here|{{{use_like_caption|}}}}}{{{Height|{{{height|}}}}}{{{Build|{{{build|}}}}}{{{Wings|{{{wings|}}}}}{{{Eye Color|{{{eye_color|}}}}}{{{Hair|{{{hair|}}}}}{{{Skintone|{{{skin_tone|}}}}}{{{Scars|{{{scars|}}}}}{{{Tattoos|{{{tattoos|}}}}}{{{Piercings|{{{piercings|}}}}}{{{Distinguishing Features|{{{distinguishing_features|}}}}}{{{Notable Gear|{{{notable_gear|}}}}}{{{Other Notes|{{{other_notes|}}}}}|
{{#if:{{{name|}}}{{{image|}}}{{{caption|}}}{{{use_like_caption|}}}{{{height|}}}{{{build|}}}{{{wings|}}}{{{eye_color|}}}{{{hair|}}}{{{skin_tone|}}}{{{scars|}}}{{{tattoos|}}}{{{piercings|}}}{{{distinguishing_features|}}}{{{notable_gear|}}}{{{other_notes|}}}|
<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-color:#F9F9F9; width:300px; padding:10px; font-size:90%; line-height:1.5em;">


  <!-- Optional Header -->
<!-- Name -->
  {{#if:{{{name|}}}|<div style="text-align:center; font-weight:bold; font-size:115%; margin-bottom:6px;">{{{name}}}</div>}}
{{#if:{{{name|}}}|<div style="text-align:center; font-weight:bold; font-size:115%; margin-bottom:6px;">{{{name}}}</div>}}


  <!-- Optional Image + Caption -->
<!-- Image + Caption -->
  {{#if:{{{image|}}}|
{{#if:{{{image|}}}|
    <div style="text-align:center; margin-bottom:6px;">
  <div style="text-align:center; margin-bottom:10px;">
      [[File:{{{image}}}|250px|center]]
    [[File:{{{image}}}|250px|center]]
      {{#if:{{{caption|}}}|<div style="font-size:85%; color:#555; margin-top:4px;">{{{caption}}}</div>}}
    {{#if:{{{caption|}}}|<div style="font-size:85%; color:#555;">{{{caption}}}</div>}}
    </div>
  </div>
  }}
}}


  <!-- Caption-like note (shows even without image) -->
<!-- Use Like Caption -->
  {{#if:{{{use like a caption here|{{{use_like_caption|}}}}}|
{{#if:{{{use_like_caption|}}}|
    <div style="text-align:center; font-size:85%; color:#555; margin-bottom:8px;">
  <div style="text-align:center; font-size:85%; color:#555; font-style:italic; margin-bottom:8px;">{{{use_like_caption}}}</div>
      {{{use like a caption here|{{{use_like_caption|}}}}}
}}
    </div>
  }}
 
  <!-- Data Table -->
  <table style="width:100%; border-collapse:collapse; font-size:95%;">
 
    <!-- Core -->
    {{#if:{{{Height|{{{height|}}}}}|
      <tr><td style="width:40%; font-weight:bold; padding:4px;">Height:</td><td style="padding:4px;">{{{Height|{{{height|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
    {{#if:{{{Build|{{{build|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Build:</td><td style="padding:4px;">{{{Build|{{{build|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
    {{#if:{{{Wings|{{{wings|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Wings:</td><td style="padding:4px;">{{{Wings|{{{wings|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
 
    <!-- Features -->
    {{#if:{{{Eye Color|{{{eye_color|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Eye Color:</td><td style="padding:4px;">{{{Eye Color|{{{eye_color|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
    {{#if:{{{Hair|{{{hair|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Hair:</td><td style="padding:4px;">{{{Hair|{{{hair|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
    {{#if:{{{Skintone|{{{skin_tone|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Skin Tone:</td><td style="padding:4px;">{{{Skintone|{{{skin_tone|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}


    <!-- Marks -->
<!-- Data Table -->
    {{#if:{{{Scars|{{{scars|}}}}}|
<table style="width:100%; border-collapse:collapse; font-size:95%;">
      <tr><td style="font-weight:bold; padding:4px;">Scars:</td><td style="padding:4px;">{{{Scars|{{{scars|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
    {{#if:{{{Tattoos|{{{tattoos|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Tattoos:</td><td style="padding:4px;">{{{Tattoos|{{{tattoos|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}
    {{#if:{{{Piercings|{{{piercings|}}}}}|
      <tr><td style="font-weight:bold; padding:4px;">Piercings:</td><td style="padding:4px;">{{{Piercings|{{{piercings|}}}}}</td></tr>
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
    }}


    <!-- Distinctions / Gear / Notes -->
{{#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; height:8px;"></td></tr>}}
    {{#if:{{{Distinguishing Features|{{{distinguishing_features|}}}}}|
{{#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; height:8px;"></td></tr>}}
      <tr><td style="font-weight:bold; padding:4px;">Distinguishing Features:</td><td style="padding:4px;">{{{Distinguishing Features|{{{distinguishing_features|}}}}}</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; height:8px;"></td></tr>}}
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></td></tr>
{{#if:{{{eye_color|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Eye Color</td><td style="padding:4px;">{{{eye_color}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></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; height:8px;"></td></tr>}}
    {{#if:{{{Notable Gear|{{{notable_gear|}}}}}|
{{#if:{{{skin_tone|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Skin Tone</td><td style="padding:4px;">{{{skin_tone}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
      <tr><td style="font-weight:bold; padding:4px;">Notable Gear:</td><td style="padding:4px;">{{{Notable Gear|{{{notable_gear|}}}}}</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; height:8px;"></td></tr>}}
      <tr><td colspan="2" style="border-bottom:1px solid #aaa;"></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; height:8px;"></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; height:8px;"></td></tr>}}
    {{#if:{{{Other Notes|{{{other_notes|}}}}}|
{{#if:{{{distinguishing_features|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Distinguishing Features</td><td style="padding:4px;">{{{distinguishing_features}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
      <tr><td style="font-weight:bold; padding:4px;">Other Notes:</td><td style="padding:4px;">{{{Other Notes|{{{other_notes|}}}}}</td></tr>
{{#if:{{{notable_gear|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Notable Gear</td><td style="padding:4px;">{{{notable_gear}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
    }}
{{#if:{{{other_notes|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Other Notes</td><td style="padding:4px;">{{{other_notes}}}</td></tr>}}


  </table>
</table>
</div>
</div> }}
}}
</includeonly>
</includeonly>


Line 87: Line 42:
<templatedata>
<templatedata>
{
{
   "description": "Right-floating appearance infobox (extended). Works with or without an image. The 'use like a caption here' field renders as a caption-style note even when no image is provided. Leave any field blank; empty rows are hidden.",
   "description": "Right-floating appearance infobox. Displays physical traits and a caption-style text. Empty fields are hidden automatically.",
   "params": {
   "params": {
     "name": { "label": "Name (header)", "type": "string" },
     "name": { "label": "Form Title", "description": "Name of the form or appearance variant.", "type": "string" },
     "image": { "label": "Image", "type": "string", "description": "Filename only, omit 'File:'" },
     "image": { "label": "Image", "description": "Optional image filename (omit 'File:').", "type": "string" },
     "caption": { "label": "Caption", "type": "string", "description": "Shown under the image if an image is provided" },
     "caption": { "label": "Caption", "description": "Displayed under the image.", "type": "string" },
 
     "use_like_caption": { "label": "Caption-like Note", "description": "Text shown in place of a caption even without an image.", "type": "string" },
    "use like a caption here": { "label": "Caption-like Note", "type": "string" },
     "height": { "label": "Height", "type": "string" },
     "use_like_caption": { "label": "Caption-like Note (alt)", "type": "string" },
     "build": { "label": "Build", "type": "string" },
 
     "wings": { "label": "Wings", "type": "string" },
    "Height": { "label": "Height", "type": "string" },
     "eye_color": { "label": "Eye Color", "type": "string" },
     "height": { "label": "Height (alt)", "type": "string" },
     "hair": { "label": "Hair", "type": "string" },
 
     "skin_tone": { "label": "Skin Tone", "type": "string" },
    "Build": { "label": "Build", "type": "string" },
     "scars": { "label": "Scars", "type": "string" },
     "build": { "label": "Build (alt)", "type": "string" },
     "tattoos": { "label": "Tattoos", "type": "string" },
 
     "piercings": { "label": "Piercings", "type": "string" },
    "Wings": { "label": "Wings", "type": "string" },
     "distinguishing_features": { "label": "Distinguishing Features", "type": "string" },
     "wings": { "label": "Wings (alt)", "type": "string" },
     "notable_gear": { "label": "Notable Gear", "type": "string" },
 
     "other_notes": { "label": "Other Notes", "type": "string" }
    "Eye Color": { "label": "Eye Color", "type": "string" },
  },
     "eye_color": { "label": "Eye Color (alt)", "type": "string" },
  "paramOrder": [
 
    "name","image","caption","use_like_caption",
    "Hair": { "label": "Hair", "type": "string" },
     "height","build","wings","eye_color","hair","skin_tone",
     "hair": { "label": "Hair (alt)", "type": "string" },
     "scars","tattoos","piercings","distinguishing_features","notable_gear","other_notes"
 
   ]
     "Skintone": { "label": "Skin Tone", "type": "string" },
     "skin_tone": { "label": "Skin Tone (alt)", "type": "string" },
 
     "Scars": { "label": "Scars", "type": "string" },
     "scars": { "label": "Scars (alt)", "type": "string" },
 
     "Tattoos": { "label": "Tattoos", "type": "string" },
     "tattoos": { "label": "Tattoos (alt)", "type": "string" },
 
     "Piercings": { "label": "Piercings", "type": "string" },
    "piercings": { "label": "Piercings (alt)", "type": "string" },
 
     "Distinguishing Features": { "label": "Distinguishing Features", "type": "string" },
    "distinguishing_features": { "label": "Distinguishing Features (alt)", "type": "string" },
 
    "Notable Gear": { "label": "Notable Gear", "type": "string" },
     "notable_gear": { "label": "Notable Gear (alt)", "type": "string" },
 
    "Other Notes": { "label": "Other Notes", "type": "string" },
    "other_notes": { "label": "Other Notes (alt)", "type": "string" }
   }
}
}
</templatedata>
</templatedata>


== Usage ==
== Usage ==
<pre><nowiki>
<pre>
{{Infobox appearance
{{Infobox appearance
| name = Natural Form
| name = Natural Form
| use like a caption here = Profile overview
| use_like_caption = Natural state of the Ayldarzi
| Height = 6'2"
| height = 6'2"
| Build = Wiry
| build = Wiry
| Wings = Red
| wings = Red
| Eye Color = Blue
| eye_color = Blue
| Hair = Ombre
| hair = Ombre
| Skintone = Green
| skin_tone = Green
| Scars = —
| distinguishing_features = Eyes change color; veins glow faintly at dusk
| Tattoos = —
| notable_gear = Veil-thread cloak; Oathbinding sigil
| Piercings = —
| other_notes = Often dresses in every color imaginable, resulting in a garish but oddly charming effect
| Distinguishing Features = Eyes change color; bioluminescent veins at dusk.
| Notable Gear = Veil-thread cloak; Oathbinding signet
| Other 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>
</pre>
</noinclude>
</noinclude>

Revision as of 14:16, 3 November 2025


Right-floating appearance infobox. Displays physical traits and a caption-style text. Empty fields are hidden automatically.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Form Titlename

Name of the form or appearance variant.

Stringoptional
Imageimage

Optional image filename (omit 'File:').

Stringoptional
Captioncaption

Displayed under the image.

Stringoptional
Caption-like Noteuse_like_caption

Text shown in place of a caption even without an image.

Stringoptional
Heightheight

no description

Stringoptional
Buildbuild

no description

Stringoptional
Wingswings

no description

Stringoptional
Eye Coloreye_color

no description

Stringoptional
Hairhair

no description

Stringoptional
Skin Toneskin_tone

no description

Stringoptional
Scarsscars

no description

Stringoptional
Tattoostattoos

no description

Stringoptional
Piercingspiercings

no description

Stringoptional
Distinguishing Featuresdistinguishing_features

no description

Stringoptional
Notable Gearnotable_gear

no description

Stringoptional
Other Notesother_notes

no description

Stringoptional

Usage

{{Infobox appearance
| name = Natural Form
| use_like_caption = Natural state of the Ayldarzi
| height = 6'2"
| build = Wiry
| wings = Red
| eye_color = Blue
| hair = Ombre
| skin_tone = Green
| distinguishing_features = Eyes change color; veins glow faintly at dusk
| notable_gear = Veil-thread cloak; Oathbinding sigil
| other_notes = Often dresses in every color imaginable, resulting in a garish but oddly charming effect
}}