Jump to content

Template:Infobox character: Difference between revisions

From Elysium D&D
Seddik (talk | contribs)
mNo edit summary
Seddik (talk | contribs)
mNo edit summary
Line 57: Line 57:
{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|
{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|
{{!}}-
{{!}}-
{{!}} colspan="4" class="infobox-stats" style="border:none; background:transparent; padding:6px;" {{!}}
{{!}} colspan="4" class="infobox-stats" style="width:100%; box-sizing:border-box;" {{!}}
<div><span class="infobox-stat-label">STR</span><span class="infobox-stat-value">{{{str|—}}}</span></div>
<div><span class="infobox-stat-label">STR</span><span class="infobox-stat-value">{{{str|—}}}</span></div>
<div><span class="infobox-stat-label">DEX</span><span class="infobox-stat-value">{{{dex|—}}}</span></div>
<div><span class="infobox-stat-label">DEX</span><span class="infobox-stat-value">{{{dex|—}}}</span></div>

Revision as of 22:19, 10 August 2026

Character infobox.

Base variables: name, image, image_caption, race, class, subclass, level, alignment, background, faction.

Combat stats: hp (hit points), ac (armor class), str, dex, con, int, wis, cha.

Meta variables: player, campaign, status.

Function variables: nocat.

If player is set to anything, the Player Characters category is added, otherwise NPCs. If nocat is set (e.g. |nocat=1), no category is added.