Template:Char: Difference between revisions

From Pradeshverse Wiki
No edit summary
Keep Char template dedicated to Characters; Gods now use separate Deity template
Tag: Manual revert
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox>
<div style="float: right; width: 330px; background-color: #FAF6EB; border: 1px solid #2F2504; 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;">
  <title source="CharacterName">
 
    <default>{{PAGENAME}}</default>
<!-- CHARACTER NAME HEADER -->
  </title>
<div style="text-align: center; font-size: 1.3em; font-weight: bold; color: #ffffff; background-color: #2F2504; padding: 6px; border-radius: 4px; margin-bottom: 10px;">{{{CharacterName|{{PAGENAME}}}}}</div>
  <image source="image1">
 
    <caption source="caption-image1"/>
<!-- CHARACTER PROFILE IMAGE -->
  </image>
<div style="text-align: center; margin-bottom: 10px;">[[File:{{{image1|OC_Placeholder.png}}}|300px|thumb|center|{{{caption-image1|Character Profile}}}]]</div>
  <data source="full_name">
 
    <label>Full Name</label>
<!-- BASE CORE DATA FIELDS -->
  </data>
{{#if:{{{full_name|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Full Name:</div><div style="color: #1a2a3a; width: 60%;">{{{full_name}}}</div></div>}}
  <data source="affiliation">
{{#if:{{{affiliation|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Affiliation:</div><div style="color: #1a2a3a; width: 60%;">{{{affiliation}}}</div></div>}}
    <label>Affiliation</label>
{{#if:{{{clan|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Clan:</div><div style="color: #1a2a3a; width: 60%;">{{{clan}}}</div></div>}}
  </data>
{{#if:{{{magic|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Magic:</div><div style="color: #1a2a3a; width: 60%;">{{{magic}}}</div></div>}}
  <data source="clan">
{{#if:{{{status|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Status:</div><div style="color: #1a2a3a; width: 60%;">{{{status}}}</div></div>}}
    <label>Clan</label>
{{#if:{{{occupation|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Occupation:</div><div style="color: #1a2a3a; width: 60%;">{{{occupation}}}</div></div>}}
  </data>
 
  <data source="magic">
<!-- STATISTICS SECTION -->
    <label>Magic</label>
{{#if:{{{height|}}}{{{eye_color|}}}{{{hair_color|}}}{{{weight|}}}{{{build|}}}|
  </data>
<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>
  <data source="status">
}}
    <label>Status</label>
{{#if:{{{height|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Height:</div><div style="color: #1a2a3a; width: 60%;">{{{height}}}</div></div>}}
  </data>
{{#if:{{{eye_color|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Eye Color:</div><div style="color: #1a2a3a; width: 60%;">{{{eye_color}}}</div></div>}}
  <data source="occupation">
{{#if:{{{hair_color|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Hair Color:</div><div style="color: #1a2a3a; width: 60%;">{{{hair_color}}}</div></div>}}
    <label>Occupation</label>
{{#if:{{{weight|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Weight:</div><div style="color: #1a2a3a; width: 60%;">{{{weight}}}</div></div>}}
  </data>
{{#if:{{{build|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Build:</div><div style="color: #1a2a3a; width: 60%;">{{{build}}}</div></div>}}
  <group>
 
    <header>Statistics</header>
<!-- RELATIONSHIPS SECTION -->
    <data source="height">
{{#if:{{{significant_other|}}}{{{children|}}}{{{Father|}}}{{{mother|}}}{{{other_family|}}}{{{friends|}}}|
      <label>Height</label>
<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>
    </data>
}}
    <data source="eye_color">
{{#if:{{{significant_other|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Significant Other:</div><div style="color: #1a2a3a; width: 60%;">{{{significant_other}}}</div></div>}}
      <label>Eye Color</label>
{{#if:{{{children|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Children:</div><div style="color: #1a2a3a; width: 60%;">{{{children}}}</div></div>}}
    </data>
{{#if:{{{Father|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Father:</div><div style="color: #1a2a3a; width: 60%;">{{{Father}}}</div></div>}}
    <data source="hair_color">
{{#if:{{{mother|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Mother:</div><div style="color: #1a2a3a; width: 60%;">{{{mother}}}</div></div>}}
      <label>Hair Color</label>
{{#if:{{{other_family|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Other Family:</div><div style="color: #1a2a3a; width: 60%;">{{{other_family}}}</div></div>}}
    </data>
{{#if:{{{friends|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Friends:</div><div style="color: #1a2a3a; width: 60%;">{{{friends}}}</div></div>}}
    <data source="weight">
 
      <label>Weight</label>
</div><includeonly>[[Category:Characters]]</includeonly><noinclude>
    </data>
== Usage ==
    <data source="build">
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.
      <label>Build</label>
 
    </data>
=== Blank Template Example ===
  </group>
  <group>
    <header>Relationships</header>
    <data source="significant_other">
      <label>Significant Other</label>
    </data>
    <data source="children">
      <label>Children</label>
    </data>
    <data source="Father">
      <label>Father</label>
    </data>
    <data source="mother">
      <label>Mother</label>
    </data>
    <data source="other_family">
      <label>Other Family</label>
    </data>
    <data source="friends">
      <label>Friends</label>
    </data>
  </group>
</infobox>[[Category:Characters]]<noinclude>
Example usage:
<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>

Latest revision as of 14:29, 17 October 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           = 
}}