Template:AttributeBlock: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Big update to template, now supports many more fields)
mNo edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 1: Line 1:
<includeonly><table class="bg3wiki-info-blob" style="text-align: center; min-width: {{#if: {{{6|}}} | 420px | 210px}};"><!--
<includeonly><table class="bg3wiki-info-blob" style="text-align: center; min-width: {{#if: {{{6|}}} | 320px | 210px}};"><!--


------------
------------

Revision as of 09:43, 16 May 2023

This template generates a stat block for a creature.


Usage:

The first 6 parameters indicate the creature's ability scores (Str/Dex/Con/Int/Wis/Cha).

Of these, the last 3 (Int/Wis/Cha) are optional and can omitted.

The following are optional parameters:

  • level - A creature's level.
  • race - A creature's race, e.g. Human.
  • type - A creature's type, e.g. Undead.
  • hp - Hit points.
  • ac - Armour Class.
  • ms - Movement Speed. Try to include both meters and feet if possible, in that order.
  • size - Size class of the creature, e.g. Large.
  • weight - Creature weight. Try to include both kg and lbs if possible, in that order.
  • prof - Proficiency bonus.
  • init - Initiative bonus (or penalty).

Here is an example full stat block:

{{AttributeBlock|15|8|11|9|18|10
|level=3
|race=Skeleton
|type=Undead
|hp=28
|ac=15
|ms=10m / 30ft
|size=Medium
|weight=20kg / 40lbs
|prof=2
|init=-1
}}

Result:

Level 3

Strength icon.png
STR

15
(+2)

Dexterity icon.png
DEX

8
(-1)

Constitution icon.png
CON

11
 

Intelligence icon.png
INT

9
(-1)

Wisdom icon.png
WIS

18
(+4)

Charisma icon.png
CHA

10
 


Creature Race Icon.png Race

Skeleton

Creature Type Icon.png Type

Undead

HP Icon.png Hit Points

28

Creature AC Icon.png Armour Class

15

Creature Speed Icon.png Movement Speed

10m / 30ft

Creature Size Icon.png Size

Medium

Weight Icon.png Weight

20kg / 40lbs

Proficiency Icon.png Proficiency Bonus

+2

Initiative Icon.png Initiative

-1


This is an example of using this template to show only attribute scores:

{{AttributeBlock|15|8|11|9|18|10}}

Result:

Strength icon.png
STR

15
(+2)

Dexterity icon.png
DEX

8
(-1)

Constitution icon.png
CON

11
 

Intelligence icon.png
INT

9
(-1)

Wisdom icon.png
WIS

18
(+4)

Charisma icon.png
CHA

10
 


This is an example of using this template to show only physical attributes - useful for Wild Shape stat blocks.

{{AttributeBlock|15|8|11|hp=12}}

Result:

Strength icon.png
STR

15
(+2)

Dexterity icon.png
DEX

8
(-1)

Constitution icon.png
CON

11
 


HP Icon.png Hit Points

12