Template:Char: Difference between revisions

From Pradeshverse Wiki
No edit summary
No edit summary
Line 1: Line 1:
<div style="float: right; width: 330px; background-color: #f2f7f4; border: 1px solid #123524; border-radius: 6px; padding: 12px; margin: 0 0 1.5em 1.5em; box-shadow: 0 2px 4px rgba(0,0,0,0.02); font-size: 0.9em; line-height: 1.5em;">
<div style="float: right; width: 330px; background-color: #f2f7f4; border: 1px solid #123524; border-radius: 6px; padding: 12px; margin: 0 0 1.5em 1.5em; box-shadow: 0 2px 4px rgba(0,0,0,0.02); font-size: 0.9em; line-height: 1.5em; box-sizing: border-box;">
 
<!-- CHARACTER NAME HEADER -->
<div style="text-align: center; font-size: 1.3em; font-weight: bold; color: #ffffff; background-color: #123524; padding: 6px; border-radius: 4px; margin-bottom: 10px;">{{{CharacterName|{{PAGENAME}}}}}</div>
<div style="text-align: center; font-size: 1.3em; font-weight: bold; color: #ffffff; background-color: #123524; padding: 6px; border-radius: 4px; margin-bottom: 10px;">{{{CharacterName|{{PAGENAME}}}}}</div>
<!-- CHARACTER PROFILE IMAGE -->
<div style="text-align: center; margin-bottom: 10px;">[[File:{{{image1|OC_Placeholder.png}}}|300px|thumb|center|{{{caption-image1|Character Profile}}}]]</div>
<div style="text-align: center; margin-bottom: 10px;">[[File:{{{image1|OC_Placeholder.png}}}|300px|thumb|center|{{{caption-image1|Character Profile}}}]]</div>


{| style="width: 100%; border-collapse: collapse;"
<!-- BASE CORE DATA FIELDS -->
{{#if:{{{full_name|}}}|
{{#if:{{{full_name|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Full Name:</div><div style="color: #1a2a3a; width: 60%;">{{{full_name}}}</div></div>}}
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; width: 40%; padding: 4px 0;" {{!}} Full Name:
{{#if:{{{affiliation|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Affiliation:</div><div style="color: #1a2a3a; width: 60%;">{{{affiliation}}}</div></div>}}
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{full_name}}}
{{#if:{{{clan|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Clan:</div><div style="color: #1a2a3a; width: 60%;">{{{clan}}}</div></div>}}
{{!-}}
{{#if:{{{magic|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Magic:</div><div style="color: #1a2a3a; width: 60%;">{{{magic}}}</div></div>}}
}}
{{#if:{{{status|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Status:</div><div style="color: #1a2a3a; width: 60%;">{{{status}}}</div></div>}}
{{#if:{{{affiliation|}}}|
{{#if:{{{occupation|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Occupation:</div><div style="color: #1a2a3a; width: 60%;">{{{occupation}}}</div></div>}}
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Affiliation:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{affiliation}}}
{{!-}}
}}
{{#if:{{{clan|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Clan:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{clan}}}
{{!-}}
}}
{{#if:{{{magic|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Magic:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{magic}}}
{{!-}}
}}
{{#if:{{{status|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Status:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{status}}}
{{!-}}
}}
{{#if:{{{occupation|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Occupation:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{occupation}}}
{{!-}}
}}


<!-- STATISTICS SECTION -->
{{#if:{{{height|}}}{{{eye_color|}}}{{{hair_color|}}}{{{weight|}}}{{{build|}}}|
{{#if:{{{height|}}}{{{eye_color|}}}{{{hair_color|}}}{{{weight|}}}{{{build|}}}|
{{!}} colspan="2" style="background-color: #cbdbe6; color: #1a2a3a; font-weight: bold; text-align: center; padding: 4px; border-radius: 4px; font-size: 1.05em; margin-top: 6px;" {{!}} Statistics
<div style="background-color: #cbdbe6; color: #1a2a3a; font-weight: bold; text-align: center; padding: 4px; border-radius: 4px; font-size: 1.05em; margin: 10px 0 6px 0;">Statistics</div>
{{!-}}
}}
{{#if:{{{height|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Height:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{height}}}
{{!-}}
}}
{{#if:{{{eye_color|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Eye Color:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{eye_color}}}
{{!-}}
}}
{{#if:{{{hair_color|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Hair Color:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{hair_color}}}
{{!-}}
}}
{{#if:{{{weight|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Weight:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{weight}}}
{{!-}}
}}
{{#if:{{{build|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Build:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{build}}}
{{!-}}
}}
}}
{{#if:{{{height|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Height:</div><div style="color: #1a2a3a; width: 60%;">{{{height}}}</div></div>}}
{{#if:{{{eye_color|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Eye Color:</div><div style="color: #1a2a3a; width: 60%;">{{{eye_color}}}</div></div>}}
{{#if:{{{hair_color|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Hair Color:</div><div style="color: #1a2a3a; width: 60%;">{{{hair_color}}}</div></div>}}
{{#if:{{{weight|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Weight:</div><div style="color: #1a2a3a; width: 60%;">{{{weight}}}</div></div>}}
{{#if:{{{build|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Build:</div><div style="color: #1a2a3a; width: 60%;">{{{build}}}</div></div>}}


<!-- RELATIONSHIPS SECTION -->
{{#if:{{{significant_other|}}}{{{children|}}}{{{Father|}}}{{{mother|}}}{{{other_family|}}}{{{friends|}}}|
{{#if:{{{significant_other|}}}{{{children|}}}{{{Father|}}}{{{mother|}}}{{{other_family|}}}{{{friends|}}}|
{{!}} colspan="2" style="background-color: #cbdbe6; color: #1a2a3a; font-weight: bold; text-align: center; padding: 4px; border-radius: 4px; font-size: 1.05em; margin-top: 6px;" {{!}} Relationships
<div style="background-color: #cbdbe6; color: #1a2a3a; font-weight: bold; text-align: center; padding: 4px; border-radius: 4px; font-size: 1.05em; margin: 10px 0 6px 0;">Relationships</div>
{{!-}}
}}
}}
{{#if:{{{significant_other|}}}|
{{#if:{{{significant_other|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Significant Other:</div><div style="color: #1a2a3a; width: 60%;">{{{significant_other}}}</div></div>}}
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Significant Other:
{{#if:{{{children|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Children:</div><div style="color: #1a2a3a; width: 60%;">{{{children}}}</div></div>}}
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{significant_other}}}
{{#if:{{{Father|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Father:</div><div style="color: #1a2a3a; width: 60%;">{{{Father}}}</div></div>}}
{{!-}}
{{#if:{{{mother|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Mother:</div><div style="color: #1a2a3a; width: 60%;">{{{mother}}}</div></div>}}
}}
{{#if:{{{other_family|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Other Family:</div><div style="color: #1a2a3a; width: 60%;">{{{other_family}}}</div></div>}}
{{#if:{{{children|}}}|
{{#if:{{{friends|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #1e462b; width: 40%; flex-shrink: 0;">Friends:</div><div style="color: #1a2a3a; width: 60%;">{{{friends}}}</div></div>}}
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Children:
 
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{children}}}
{{!-}}
}}
{{#if:{{{Father|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Father:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{Father}}}
{{!-}}
}}
{{#if:{{{mother|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Mother:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{mother}}}
{{!-}}
}}
{{#if:{{{other_family|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Other Family:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{other_family}}}
{{!-}}
}}
{{#if:{{{friends|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Friends:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{friends}}}
}}
|}
</div><includeonly>[[Category:Characters]]</includeonly><noinclude>
</div><includeonly>[[Category:Characters]]</includeonly><noinclude>
== Usage ==
== Usage ==

Revision as of 12:11, 30 July 2026

Char
Character Profile












Usage

Copy and paste the template code below onto any character page. Fill out the parameters following the vertical pipes (`|`). Leaving a field blank will hide the row automatically to keep the layout crisp.

Blank Template Example

{{Char
  | CharacterName     = 
  | image1            = 
  | caption-image1    = 
  | full_name         = 
  | affiliation       = 
  | clan              = 
  | magic             = 
  | status            = 
  | occupation        = 
  | height            = 
  | eye_color         = 
  | hair_color        = 
  | weight            = 
  | build             = 
  | significant_other = 
  | children          = 
  | Father            = 
  | mother            = 
  | other_family      = 
  | friends           = 
}}