Template:AttributeBlock: Difference between revisions
Jump to navigation
Jump to search
(Mental attributes are now optional.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{level|}}} | <div>'''Level''' {{ | <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: | ||
{{ | {{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: | ||
{{ | {{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: | ||
{{ | {{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
57
Armour Class
12
STR
15 |
DEX
8 |
CON
11 |
INT
9 |
WIS
18 |
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:
STR
15 |
DEX
8 |
CON
11 |
INT
9 |
WIS
18 |
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
12
STR
15 |
DEX
8 |
CON
11 |