Template:CharacterInfobox: Difference between revisions

From TheRaspyDragon
Jump to navigation Jump to search
Created page with "<div class="infobox" style="border: 1px solid #a2a9b1; background-color: #f8f9fa; color: #202122; margin: 0.5em 0 0.5em 1em; padding: 0.5em; float: right; clear: right; width: 260px; font-size: 88%; line-height: 1.5em; font-family: sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border-radius: 4px;"> {| style="width: 100%; background: transparent; border-spacing: 0 4px;" |- ! colspan="2" style="font-size: 140%; text-align: center; background-color: #5c1d24; color: whi..."
 
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox" style="border: 1px solid #a2a9b1; background-color: #f8f9fa; color: #202122; margin: 0.5em 0 0.5em 1em; padding: 0.5em; float: right; clear: right; width: 260px; font-size: 88%; line-height: 1.5em; font-family: sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border-radius: 4px;">
<div class="infobox" style="border: 1px solid #a2a9b1; background-color: #f8f9fa; color: #202122; margin: 0.5em 0 0.5em 1em; padding: 0.5em; float: right; clear: right; width: 290px; font-size: 88%; line-height: 1.5em; font-family: sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border-radius: 4px;">
{| style="width: 100%; background: transparent; border-spacing: 0 4px;"
<table style="width: 100%; background: transparent; border-spacing: 0 4px;">
|-
<tr>
! colspan="2" style="font-size: 140%; text-align: center; background-color: #5c1d24; color: white; padding: 6px; border-radius: 3px;" | {{{name|{{PAGENAME}}}}}
<th colspan="2" style="font-size: 140%; text-align: center; background-color: #5c1d24; color: white; padding: 6px; border-radius: 3px;">{{{name|{{PAGENAME}}}}}</th>
|-
</tr>
 
{{#if:{{{portrait|}}}|
{{#if:{{{portrait|}}}|
<tr><td colspan="2" style="text-align: center; padding: 5px;">
<tr>
{{{portrait}}}
<td colspan="2" style="text-align: center; padding: 5px;">
</td></tr>
<div class="infobox-portrait">{{{portrait}}}#.webp</div>
</td>
</tr>
}}
}}
|-
 
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0; width: 40%;" | Level
<tr>
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{level|—}}}
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0; width: 38%;">Level</th>
|-
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{level|—}}}</td>
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;" | Size
</tr>
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{size|—}}}
 
|-
<tr>
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;" | Traits
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Size</th>
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{traits|—}}}
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{size|—}}}</td>
|-
</tr>
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;" | HP
 
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{hp|—}}}
{{#if:{{{key_ability|}}}|
|-
<tr>
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;" | AC
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Key Ability</th>
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{ac|—}}}
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{key_ability}}}</td>
|-
</tr>
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;" | Perception
}}
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{perception|—}}}
 
|-
{{#if:{{{hero_points|}}}|
! style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;" | Speed
<tr>
| style="padding: 4px; border-bottom: 1px solid #eaecf0;" | {{{speed|—}}}
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Hero Points</th>
|}
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{hero_points}}}</td>
</tr>
}}
 
<tr>
<th colspan="2" style="background-color: #5c1d24; color: white; text-align: center; font-weight: bold; padding: 4px; border-radius: 2px; font-size: 95%;">Defenses & Combat</th>
</tr>
 
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">HP</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{hp|—}}}</td>
</tr>
 
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">AC</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{ac|—}}}</td>
</tr>
 
{{#if:{{{fortitude|}}}{{{reflex|}}}{{{will|}}}|
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0; vertical-align: top;">Saving Throws</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;"><b>Fort</b> {{{fortitude|—}}}, <b>Ref</b> {{{reflex|—}}}, <b>Will</b> {{{will|—}}}</td>
</tr>
}}
 
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Perception</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{perception|—}}}</td>
</tr>
 
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Speed</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{speed|—}}}</td>
</tr>
 
{{#if:{{{attributes|}}}|
<tr>
<th colspan="2" style="background-color: #cbd5e1; color: #1e293b; text-align: center; font-weight: bold; padding: 3px; border-radius: 2px; font-size: 90%;">Attributes</th>
</tr>
<tr>
<td colspan="2" style="text-align: center; padding: 6px; font-size: 85%; border-bottom: 1px solid #eaecf0; background-color: #f1f5f9;">{{{attributes}}}</td>
</tr>
}}
 
{{#if:{{{languages|}}}|
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0; vertical-align: top;">Languages</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0; font-size: 90%;">{{{languages}}}</td>
</tr>
}}
</table>
</div>
</div>

Latest revision as of 05:50, 30 May 2026

CharacterInfobox
Level
Size
Defenses & Combat
HP
AC
Perception
Speed