Template:CharacterInfobox: Difference between revisions

From TheRaspyDragon
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<style>
{| 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);"
.pf2e-infobox {
|-
    border: 1px solid #a2a9b1;
! 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}}}
    background-color: #f8f9fa;
|-
    color: #202122;
| colspan="2" style="text-align: center; padding: 8px 0;" | {{{portrait|}}}#.webp
    margin: 0.5em 0 0.5em 1em;
|-
    padding: 0.5em;
| style="font-weight: bold; padding: 4px; width: 35%;" | Ancestry/Ancestry:
    float: right;
| style="padding: 4px;" | {{{ancestry|Unknown}}}
    clear: right;
|-
    width: 290px;
| style="font-weight: bold; padding: 4px;" | Background:
    font-size: 88%;
| style="padding: 4px;" | {{{background|Unknown}}}
    line-height: 1.5em;
|-
    font-family: sans-serif;
| style="font-weight: bold; padding: 4px;" | Class:
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
| style="padding: 4px;" | {{{class|Unknown}}}
    border-radius: 4px;
|-
}
| style="font-weight: bold; padding: 4px;" | Level:
.pf2e-infobox table {
| style="padding: 4px;" | {{{level|1}}}
    width: 100%;
|}
    background: transparent;
    border-spacing: 0 4px;
}
.pf2e-infobox img {
    max-width: 260px !important;
    height: auto !important;
    border-radius: 2px;
    display: block;
    margin: 0 auto;
}
</style>
 
<div class="pf2e-infobox">
<table>
<tr>
    <th colspan="2" style="font-size: 140%; text-align: center; background-color: #5c1d24; color: white; padding: 6px; border-radius: 3px;">{{{name|{{PAGENAME}}}}}</th>
</tr>
<tr>
    <td colspan="2" style="text-align: center; padding: 5px;">{{{portrait|}}}#.webp</td>
</tr>
<tr>
    <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>
</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>
<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>
<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>
<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>
<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>
<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>

Revision as of 05:48, 30 May 2026

Character Name
#.webp
Ancestry/Ancestry: Unknown
Background: Unknown
Class: Unknown
Level: 1