Ad placeholder

Template:AttributeBlock: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Added support for saving throw proficiencies, cleaned up examples)
No edit summary
Line 13: Line 13:
<td style="width: 52px; vertical-align: top">
<td style="width: 52px; vertical-align: top">
<p style="margin:0px">[[Strength|STR]]</p>
<p style="margin:0px">[[Strength|STR]]</p>
<div {{#if: {{{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">
<td style="width: 52px; vertical-align: top">
<p style="margin:0px">[[Dexterity|DEX]]</p>
<p style="margin:0px">[[Dexterity|DEX]]</p>
<div {{#if: {{{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">
<td style="width: 52px; vertical-align: top">
<p style="margin:0px">[[Constitution|CON]]</p>
<p style="margin:0px">[[Constitution|CON]]</p>
<div {{#if: {{{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> |}} }}
</td>
</td>


Line 29: Line 29:
<td style="width: 52px; vertical-align: top">
<td style="width: 52px; vertical-align: top">
<p style="margin:0px">[[Intelligence|INT]]</p>
<p style="margin:0px">[[Intelligence|INT]]</p>
<div {{#if: {{{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> |}} }}
</td>
</td>
}}
}}
Line 36: Line 36:
<td style="width: 52px; vertical-align: top">
<td style="width: 52px; vertical-align: top">
<p style="margin:0px">[[Wisdom|WIS]]</p>
<p style="margin:0px">[[Wisdom|WIS]]</p>
<div {{#if: {{{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> |}} }}
</td>
</td>
}}
}}
Line 43: Line 43:
<td style="width: 52px; vertical-align: top">
<td style="width: 52px; vertical-align: top">
<p style="margin:0px">[[Charisma|CHA]]</p>
<p style="margin:0px">[[Charisma|CHA]]</p>
<div {{#if: {{{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> |}} }}
</td>
</td>
}}
}}
Line 143: Line 143:


<pre>
<pre>
{{AttributeBlock|10|10|10|10|10|10</nowiki>
{{AttributeBlock|10|10|10|10|10|10
|str save =
|str save =
|dex save =
|dex save =
Line 169: Line 169:


<pre>
<pre>
{{C|<nowiki>{{AttributeBlock|15|8|11|9|18|10</nowiki>
{{AttributeBlock|15|8|11|9|18|10
|str save = proficient
|str save = proficient
|wis save = proficient
|wis save = proficient

Navigation menu