Template:Char: Difference between revisions

From Pradeshverse Wiki
No edit summary
No edit summary
Line 1: Line 1:
<infobox>
<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;">
  <title source="CharacterName">
<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>
    <default>{{PAGENAME}}</default>
<div style="text-align: center; margin-bottom: 10px;">[[File:{{{image1|OC_Placeholder.png}}}|300px|thumb|center|{{{caption-image1|Character Profile}}}]]</div>
  </title>
 
  <image source="image1">
{| style="width: 100%; border-collapse: collapse;"
    <caption source="caption-image1"/>
{{#if:{{{full_name|}}}|
  </image>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; width: 40%; padding: 4px 0;" {{!}} Full Name:
  <data source="full_name">
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{full_name}}}
    <label>Full Name</label>
{{!-}}
  </data>
}}
  <data source="affiliation">
{{#if:{{{affiliation|}}}|
    <label>Affiliation</label>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Affiliation:
  </data>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{affiliation}}}
  <data source="clan">
{{!-}}
    <label>Clan</label>
}}
  </data>
{{#if:{{{clan|}}}|
  <data source="magic">
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Clan:
    <label>Magic</label>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{clan}}}
  </data>
{{!-}}
  <data source="status">
}}
    <label>Status</label>
{{#if:{{{magic|}}}|
  </data>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Magic:
  <data source="occupation">
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{magic}}}
    <label>Occupation</label>
{{!-}}
  </data>
}}
  <group>
{{#if:{{{status|}}}|
    <header>Statistics</header>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Status:
    <data source="height">
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{status}}}
      <label>Height</label>
{{!-}}
    </data>
}}
    <data source="eye_color">
{{#if:{{{occupation|}}}|
      <label>Eye Color</label>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Occupation:
    </data>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{occupation}}}
    <data source="hair_color">
{{!-}}
      <label>Hair Color</label>
}}
    </data>
 
    <data source="weight">
{{#if:{{{height|}}}{{{eye_color|}}}{{{hair_color|}}}{{{weight|}}}{{{build|}}}|
      <label>Weight</label>
{{!}} 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
    </data>
{{!-}}
    <data source="build">
}}
      <label>Build</label>
{{#if:{{{height|}}}|
    </data>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Height:
  </group>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{height}}}
  <group>
{{!-}}
    <header>Relationships</header>
}}
    <data source="significant_other">
{{#if:{{{eye_color|}}}|
      <label>Significant Other</label>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Eye Color:
    </data>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{eye_color}}}
    <data source="children">
{{!-}}
      <label>Children</label>
}}
    </data>
{{#if:{{{hair_color|}}}|
    <data source="Father">
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Hair Color:
      <label>Father</label>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{hair_color}}}
    </data>
{{!-}}
    <data source="mother">
}}
      <label>Mother</label>
{{#if:{{{weight|}}}|
    </data>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Weight:
    <data source="other_family">
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{weight}}}
      <label>Other Family</label>
{{!-}}
    </data>
}}
    <data source="friends">
{{#if:{{{build|}}}|
      <label>Friends</label>
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Build:
    </data>
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{build}}}
  </group>
{{!-}}
</infobox>[[Category:Characters]]<noinclude>
}}
Example usage:
 
{{#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
{{!-}}
}}
{{#if:{{{significant_other|}}}|
{{!}} style="vertical-align: top; font-weight: bold; color: #1e462b; padding: 4px 0;" {{!}} Significant Other:
{{!}} style="vertical-align: top; color: #1a2a3a; padding: 4px 0;" {{!}} {{{significant_other}}}
{{!-}}
}}
{{#if:{{{children|}}}|
{{!}} 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>
== 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 ===
<pre>
<pre>
{{Char
{{Char
   | CharacterName    = Example
   | CharacterName    =  
   | image1            = Example.png
   | image1            =  
   | caption-image1    = Example Caption
   | caption-image1    =  
   | full_name        = Example
   | full_name        =  
   | affiliation      = Example
   | affiliation      =  
   | clan              = Example
   | clan              =  
   | magic            = Example
   | magic            =  
   | status            = Example
   | status            =  
   | occupation        = Example
   | occupation        =  
   | height            = Example
   | height            =  
   | eye_color        = Example
   | eye_color        =  
   | hair_color        = Example
   | hair_color        =  
   | weight            = Example
   | weight            =  
   | build            = Example
   | build            =  
   | significant_other = Example
   | significant_other =  
   | children          = Example
   | children          =  
   | Father            = Example
   | Father            =  
   | mother            = Example
   | mother            =  
   | other_family      = Example
   | other_family      =  
   | friends          = Example
   | friends          =  
}}
}}
</pre>
</pre>
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 12:10, 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           = 
}}