Template:CharacterInfobox: Difference between revisions

From TheRaspyDragon
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
{| class="pf2e-infobox" style="float: right; clear: right; width: 290px; border: 1px solid #a2a9b1; border-radius: 8px; background-color: #f8f9fa; padding: 10px; font-family: sans-serif; font-size: 14px; margin-left: 15px; margin-bottom: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.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: 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;">
|-
<table style="width: 100%; background: transparent; border-spacing: 0 4px;">
! colspan="2" style="background-color: #5c1d1d; color: white; text-align: center; font-size: 18px; padding: 6px; border-radius: 6px 6px 0 0;" | {{{name|Character Name}}}
<tr>
|-
<th 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="text-align: center; padding: 8px 0;" | {{{portrait|}}}#.webp
</tr>
|-
 
| style="font-weight: bold; padding: 4px; width: 35%;" | Ancestry/Ancestry:
{{#if:{{{portrait|}}}|
| style="padding: 4px;" | {{{ancestry|Unknown}}}
<tr>
|-
<td colspan="2" style="text-align: center; padding: 5px;">
| style="font-weight: bold; padding: 4px;" | Background:
<div class="infobox-portrait">{{{portrait}}}#.webp</div>
| style="padding: 4px;" | {{{background|Unknown}}}
</td>
|-
</tr>
| style="font-weight: bold; padding: 4px;" | Class:
}}
| style="padding: 4px;" | {{{class|Unknown}}}
 
|-
<tr>
| style="font-weight: bold; padding: 4px;" | Level:
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0; width: 38%;">Level</th>
| style="padding: 4px;" | {{{level|1}}}
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{level|—}}}</td>
|}
</tr>
 
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Size</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{size|—}}}</td>
</tr>
 
{{#if:{{{key_ability|}}}|
<tr>
<th style="text-align: left; padding: 4px; border-bottom: 1px solid #eaecf0;">Key Ability</th>
<td style="padding: 4px; border-bottom: 1px solid #eaecf0;">{{{key_ability}}}</td>
</tr>
}}
 
{{#if:{{{hero_points|}}}|
<tr>
<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>

Latest revision as of 05:50, 30 May 2026

CharacterInfobox
Level
Size
Defenses & Combat
HP
AC
Perception
Speed