Template:AttributeBlock: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
(All attribute scores are now optional)
Line 9: Line 9:
ABILITY SCORES
ABILITY SCORES
------------
------------
--><tr>
-->{{#if: {{{1|}}} |
<tr>
<td style="width:65px">
<td style="width:65px">
[[File:strength icon.png|frameless|40px|center|link=Strength]] [[Strength|STR]]
[[File:strength icon.png|frameless|40px|center|link=Strength]] [[Strength|STR]]
Line 45: Line 46:
</td>
</td>
}}
}}
</tr><!--
</tr>
}}<!--
------------
------------
DIVIDING LINE
DIVIDING LINE
------------
------------
-->{{#if: {{{race|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> | {{#if: {{{type|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> | {{#if: {{{hp|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> }} | {{#if: {{{ac|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> | {{#if: {{{ms|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> | {{#if: {{{size|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> | {{#if: {{{weight|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> }} | {{#if: {{{prof|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> }} | {{#if: {{{init|}}} | <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr> }} }} }} }} }} }}<!--
-->{{#if: {{{1|}}}
| {{#if: {{{race|}}}{{{type|}}}{{{hp|}}}{{{ac|}}}{{{ms|}}}{{{size|}}}{{{weight|}}}{{{prof|}}}{{{init|}}}
| <tr><td colspan="100%" style="padding-left:10px;padding-right:10px;"><hr/></td></tr>
}} }}<!--


------------
------------
Line 141: Line 146:
The first 6 parameters indicate the creature's ability scores (Str/Dex/Con/Int/Wis/Cha).
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.
All of these attributes, or the last 3 (Int/Wis/Cha) are optional and can omitted.
 


The following are optional parameters:
The following are optional parameters:
Line 207: Line 213:
Result:
Result:


{{AttributeBlock|15|8|11|hp=12}}</noinclude>
{{AttributeBlock|15|8|11|hp=12}}
 
<!-----------
EXAMPLE 4
-------------->
<hr>
This is an example of using this template without ability scores.
 
{{C|<nowiki>{{AttributeBlock|hp=12|race=Human|size=Medium}}</nowiki>}}
 
Result:
 
{{AttributeBlock|hp=12|race=Human}}</noinclude>

Revision as of 01:05, 12 July 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).

All of these attributes, or 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


This is an example of using this template without ability scores.

{{AttributeBlock|hp=12|race=Human|size=Medium}}

Result:

Creature Race Icon.png Race

Human

HP Icon.png Hit Points

12