Template:AttributeBlock: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(it looks weird without some fancy fonts)
Tag: Reverted
No edit summary
Tag: Reverted
Line 11: Line 11:
-->{{#if: {{{1|}}} |
-->{{#if: {{{1|}}} |
<tr>
<tr>
<td style="width: 52px; vertical-align: top; font-family: serif;">
<td style="width: 52px; vertical-align: top; font-family: serif; font-size: 120%;">
<p style="margin:0px">[[Strength|STR]]</p>
<p style="margin:0px;">[[Strength|STR]]</p>
<div {{#if: {{IfEmpty | {{{str save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Strength saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{1}}}</span>'''</div> {{#ifexpr: {{{1|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{1|}}}-10)/2)}})</span> | {{#ifexpr: {{{1|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{1|}}}-10)/2)}})</span> |}} }}
<div {{#if: {{IfEmpty | {{{str save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Strength saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{1}}}</span>'''</div> {{#ifexpr: {{{1|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{1|}}}-10)/2)}})</span> | {{#ifexpr: {{{1|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{1|}}}-10)/2)}})</span> |}} }}
</td>
</td>


<td style="width: 52px; vertical-align: top; font-family: serif;">
<td style="width: 52px; vertical-align: top; font-family: serif; font-size: 120%;">
<p style="margin:0px">[[Dexterity|DEX]]</p>
<p style="margin:0px">[[Dexterity|DEX]]</p>
<div {{#if: {{IfEmpty | {{{dex save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Dexterity saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{2}}}</span>'''</div> {{#ifexpr: {{{2|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{2|}}}-10)/2)}})</span> | {{#ifexpr: {{{2|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{2|}}}-10)/2)}})</span> |}} }}
<div {{#if: {{IfEmpty | {{{dex save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Dexterity saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{2}}}</span>'''</div> {{#ifexpr: {{{2|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{2|}}}-10)/2)}})</span> | {{#ifexpr: {{{2|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{2|}}}-10)/2)}})</span> |}} }}
</td>
</td>


<td style="width: 52px; vertical-align: top; font-family: serif;">
<td style="width: 52px; vertical-align: top; font-family: serif; font-size: 120%;">
<p style="margin:0px">[[Constitution|CON]]</p>
<p style="margin:0px">[[Constitution|CON]]</p>
<div {{#if: {{IfEmpty | {{{con save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Constitution saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{3}}}</span>'''</div> {{#ifexpr: {{{3|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{3|}}}-10)/2)}})</span> | {{#ifexpr: {{{3|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{3|}}}-10)/2)}})</span> |}} }}
<div {{#if: {{IfEmpty | {{{con save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Constitution saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{3}}}</span>'''</div> {{#ifexpr: {{{3|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{3|}}}-10)/2)}})</span> | {{#ifexpr: {{{3|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{3|}}}-10)/2)}})</span> |}} }}
Line 27: Line 27:


{{#if: {{{4|}}} |
{{#if: {{{4|}}} |
<td style="width: 52px; vertical-align: top; font-family: serif;">
<td style="width: 52px; vertical-align: top; font-family: serif; font-size: 120%;">
<p style="margin:0px">[[Intelligence|INT]]</p>
<p style="margin:0px">[[Intelligence|INT]]</p>
<div {{#if: {{IfEmpty | {{{int save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Intelligence saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{4}}}</span>'''</div> {{#ifexpr: {{{4|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{4|}}}-10)/2)}})</span> | {{#ifexpr: {{{4|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{4|}}}-10)/2)}})</span> |}} }}
<div {{#if: {{IfEmpty | {{{int save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Intelligence saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{4}}}</span>'''</div> {{#ifexpr: {{{4|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{4|}}}-10)/2)}})</span> | {{#ifexpr: {{{4|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{4|}}}-10)/2)}})</span> |}} }}
Line 34: Line 34:


{{#if: {{{5|}}} |
{{#if: {{{5|}}} |
<td style="width: 52px; vertical-align: top; font-family: serif;">
<td style="width: 52px; vertical-align: top; font-family: serif; font-size: 120%;">
<p style="margin:0px">[[Wisdom|WIS]]</p>
<p style="margin:0px">[[Wisdom|WIS]]</p>
<div {{#if: {{IfEmpty | {{{wis save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Wisdom saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{5}}}</span>'''</div> {{#ifexpr: {{{5|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{5|}}}-10)/2)}})</span> | {{#ifexpr: {{{5|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{5|}}}-10)/2)}})</span> |}} }}
<div {{#if: {{IfEmpty | {{{wis save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Wisdom saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{5}}}</span>'''</div> {{#ifexpr: {{{5|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{5|}}}-10)/2)}})</span> | {{#ifexpr: {{{5|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{5|}}}-10)/2)}})</span> |}} }}
Line 41: Line 41:


{{#if: {{{6|}}} |
{{#if: {{{6|}}} |
<td style="width: 52px; vertical-align: top; font-family: serif;">
<td style="width: 52px; vertical-align: top; font-family: serif; font-size: 120%;">
<p style="margin:0px">[[Charisma|CHA]]</p>
<p style="margin:0px">[[Charisma|CHA]]</p>
<div {{#if: {{IfEmpty | {{{cha save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Charisma saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{6}}}</span>'''</div> {{#ifexpr: {{{6|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{6|}}}-10)/2)}})</span> | {{#ifexpr: {{{6|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{6|}}}-10)/2)}})</span> |}} }}
<div {{#if: {{IfEmpty | {{{cha save|}}} }} | class="bg3wiki-d20-bg" title="Proficient in Charisma saves" }} style="height:40px">'''<span style="display:block;padding-top:8px">{{{6}}}</span>'''</div> {{#ifexpr: {{{6|}}} > 11 | <span style="font-size:0.8em">(+{{#expr:floor(({{{6|}}}-10)/2)}})</span> | {{#ifexpr: {{{6|}}} < 10 | <span style="font-size:0.8em">({{#expr:floor(({{{6|}}}-10)/2)}})</span> |}} }}

Revision as of 11:52, 28 August 2023

This template generates a stat block for a creature or transformation form.

{{AttributeBlock|10|10|10|10|10|10
|str save =
|dex save =
|con save =
|int save =
|wis save =
|cha save =
|level=
|race=
|type=
|hp=
|ac=
|ms=
|size=
|weight=
|prof=
|init=
}}

Examples:

Full stat block:

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

Level 3

STR

15
(+2)

DEX

8
(-1)

CON

11

INT

9
(-1)

WIS

18
(+4)

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


Stat block with only ability scores and saves:

{{AttributeBlock|15|8|11|9|18|10
|str save = proficient
|wis same = proficient}}

STR

15
(+2)

DEX

8
(-1)

CON

11

INT

9
(-1)

WIS

18
(+4)

CHA

10


Stat block with only physical attributes - useful for Wild Shape stat blocks or other transformations:

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

STR

15
(+2)

DEX

8
(-1)

CON

11

HP Icon.png Hit Points

12


Stat block without ability scores:

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

Creature Race Icon.png Race

Human

HP Icon.png Hit Points

12

Creature Size Icon.png Size

Medium