Template:AttributeBlock: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Mental attributes are now optional.)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{level|}}} | <div>'''Level''' {{SmallIcon|Martial Weapon Prof Icon.png}}{{{level}}}</div>}}{{#if: {{{hp|}}} | <div>'''Hit Points''' {{SmallIcon|Saving Throws Icon.png}}{{{hp}}}</div>}}
<includeonly>{{#if: {{{level|}}} | <div>'''Level''' {{{level}}}</div>}}{{#if: {{{hp|}}} | <div>'''Hit Points''' {{C|{{Icon|HP Icon.png|15}} {{{hp}}}}}</div>}}{{#if: {{{ac|}}} | <div>'''Armour Class''' {{C|{{Icon|Armour Class Icon.png|20}} {{{ac}}}}}</div>}}
<table class="bg3wiki-info-blob" style="text-align: center; min-width: {{#if: {{{6|}}} | 420px | 210px}};">
<table class="bg3wiki-info-blob" style="text-align: center; min-width: {{#if: {{{6|}}} | 420px | 210px}};">
<tr>
<tr>
Line 44: Line 44:
Usage:
Usage:


{{code|<nowiki>{{AttributeBlock|15|8|11|9|18|10|level=5|hp=57}}</nowiki>}}
{{C|<nowiki>{{AttributeBlock|15|8|11|9|18|10|level=5|hp=57|ac=12}}</nowiki>}}


Result:
Result:


{{AttributeBlock|15|8|11|9|18|10|level=5|hp=57}}
{{AttributeBlock|15|8|11|9|18|10|level=5|hp=57|ac=12}}


<hr>
<hr>
Line 54: Line 54:
One or both of the '''level''' and '''hp''' parameters are optional and can be omitted, like so:
One or both of the '''level''' and '''hp''' parameters are optional and can be omitted, like so:


{{code|<nowiki>{{AttributeBlock|15|8|11|9|18|10}}</nowiki>}}
{{C|<nowiki>{{AttributeBlock|15|8|11|9|18|10}}</nowiki>}}


Result:
Result:
Line 64: Line 64:
The mental attributes can also be omitted, for use in shapeshifting stat blocks, like so:
The mental attributes can also be omitted, for use in shapeshifting stat blocks, like so:


{{code|<nowiki>{{AttributeBlock|15|8|11|hp=12}}</nowiki>}}
{{C|<nowiki>{{AttributeBlock|15|8|11|hp=12}}</nowiki>}}


Result:
Result:


{{AttributeBlock|15|8|11|hp=12}}</noinclude>
{{AttributeBlock|15|8|11|hp=12}}</noinclude>

Revision as of 14:54, 20 March 2023

This template generates an attribute stat block for a creature.


Usage:

{{AttributeBlock|15|8|11|9|18|10|level=5|hp=57|ac=12}}

Result:

Level 5
Hit Points HP Icon.png 57
Armour Class Armour Class Icon.png 12
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
 


One or both of the level and hp parameters are optional and can be omitted, like so:

{{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
 


The mental attributes can also be omitted, for use in shapeshifting stat blocks, like so:

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

Result:

Hit Points HP Icon.png 12
Strength icon.png
STR

15
(+2)

Dexterity icon.png
DEX

8
(-1)

Constitution icon.png
CON

11