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