Template:Char: Difference between revisions
From Pradeshverse Wiki
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 8: | Line 8: | ||
<!-- BASE CORE DATA FIELDS --> | <!-- BASE CORE DATA FIELDS --> | ||
<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 | {{#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>}} | ||
{{#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>}} | |||
<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 | {{#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>}} | |||
<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 | {{#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:{{{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>}} | |||
<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 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 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 | |||
<!-- STATISTICS SECTION --> | <!-- STATISTICS SECTION --> | ||
{{#if:{{{height|}}}{{{eye_color|}}}{{{hair_color|}}}{{{weight|}}}{{{build|}}}| | |||
<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> | <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> | ||
}} | |||
<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 | {{#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>}} | |||
<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 | {{#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>}} | |||
<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 | {{#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>}} | ||
<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 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 | |||
<!-- RELATIONSHIPS SECTION --> | <!-- RELATIONSHIPS SECTION --> | ||
{{#if:{{{significant_other|}}}{{{children|}}}{{{Father|}}}{{{mother|}}}{{{other_family|}}}{{{friends|}}}| | |||
<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> | <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> | ||
}} | |||
<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 | {{#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>}} | ||
{{#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>}} | |||
<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 | {{#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>}} | |||
<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 | {{#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:{{{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>}} | |||
<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 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 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><includeonly>[[Category:Characters]]</includeonly><noinclude> | </div><includeonly>[[Category:Characters]]</includeonly><noinclude> | ||
== Usage == | == 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 | 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 === | === Blank Template Example === | ||
Revision as of 12:17, 30 July 2026
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 =
}}
