Ad placeholder

Template:AttributeBlock: Difference between revisions

Jump to navigation Jump to search
Remove excess whitespace if all attributes are 10
m (Description fix)
(Remove excess whitespace if all attributes are 10)
Line 4: Line 4:
LEVEL
LEVEL
------------
------------
-->{{#if: {{{level|}}} | <tr><td colspan="100%"><p style="text-align:center;line-height:0.7">Level {{{level}}}</p></td></tr>}}<!--
-->{{#if: {{{level|}}} | <tr><td colspan="100%"><p style="text-align:center; line-height:0.7">Level {{{level}}}</p></td></tr>}}<!--


------------
------------
Line 11: Line 11:
-->{{#if: {{{1|}}} |
-->{{#if: {{{1|}}} |
<tr>
<tr>
<td style="width:65px">
<td style="width: 65px; vertical-align: top">
[[File:strength icon.png|frameless|40px|center|link=Strength]] [[Strength|STR]]
[[File:strength icon.png|frameless|40px|center|link=Strength]] [[Strength|STR]]
'''{{{1}}}''' {{#ifexpr: {{{1|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{1|}}}-10)/2)}})</span> | {{#ifexpr: {{{1|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{1|}}}-10)/2)}})</span> | <br>&nbsp; }} }}
'''{{{1}}}''' {{#ifexpr: {{{1|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{1|}}}-10)/2)}})</span> | {{#ifexpr: {{{1|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{1|}}}-10)/2)}})</span> |}} }}
</td>
</td>


<td style="width:65px">
<td style="width: 65px; vertical-align: top">
[[File:dexterity icon.png|frameless|40px|center|link=Dexterity]] [[Dexterity|DEX]]
[[File:dexterity icon.png|frameless|40px|center|link=Dexterity]] [[Dexterity|DEX]]
'''{{{2}}}''' {{#ifexpr: {{{2|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{2|}}}-10)/2)}})</span> | {{#ifexpr: {{{2|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{2|}}}-10)/2)}})</span> | <br>&nbsp; }} }}
'''{{{2}}}''' {{#ifexpr: {{{2|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{2|}}}-10)/2)}})</span> | {{#ifexpr: {{{2|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{2|}}}-10)/2)}})</span> |}} }}
</td>
</td>


<td style="width:65px">
<td style="width: 65px; vertical-align: top">
[[File:constitution icon.png|frameless|40px|center|link=Constitution]] [[Constitution|CON]]
[[File:constitution icon.png|frameless|40px|center|link=Constitution]] [[Constitution|CON]]
'''{{{3}}}''' {{#ifexpr: {{{3|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{3|}}}-10)/2)}})</span> | {{#ifexpr: {{{3|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{3|}}}-10)/2)}})</span> | <br>&nbsp; }} }}
'''{{{3}}}''' {{#ifexpr: {{{3|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{3|}}}-10)/2)}})</span> | {{#ifexpr: {{{3|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{3|}}}-10)/2)}})</span> |}} }}
</td>
</td>


{{#if: {{{4|}}} |
{{#if: {{{4|}}} |
<td style="width:65px">
<td style="width: 65px; vertical-align: top">
[[File:intelligence icon.png|frameless|40px|center|link=Intelligence]] [[Intelligence|INT]]
[[File:intelligence icon.png|frameless|40px|center|link=Intelligence]] [[Intelligence|INT]]
'''{{{4}}}''' {{#ifexpr: {{{4|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{4|}}}-10)/2)}})</span> | {{#ifexpr: {{{4|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{4|}}}-10)/2)}})</span> | <br>&nbsp; }} }}
'''{{{4}}}''' {{#ifexpr: {{{4|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{4|}}}-10)/2)}})</span> | {{#ifexpr: {{{4|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{4|}}}-10)/2)}})</span> |}} }}
</td>
</td>
}}
}}


{{#if: {{{5|}}} |
{{#if: {{{5|}}} |
<td style="width:65px">
<td style="width: 65px; vertical-align: top">
[[File:wisdom icon.png|frameless|40px|center|link=Wisdom]] [[Wisdom|WIS]]
[[File:wisdom icon.png|frameless|40px|center|link=Wisdom]] [[Wisdom|WIS]]
'''{{{5}}}''' {{#ifexpr: {{{5|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{5|}}}-10)/2)}})</span> | {{#ifexpr: {{{5|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{5|}}}-10)/2)}})</span> | <br>&nbsp; }} }}
'''{{{5}}}''' {{#ifexpr: {{{5|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{5|}}}-10)/2)}})</span> | {{#ifexpr: {{{5|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{5|}}}-10)/2)}})</span> |}} }}
</td>
</td>
}}
}}


{{#if: {{{6|}}} |
{{#if: {{{6|}}} |
<td style="width:65px">
<td style="width: 65px; vertical-align: top">
[[File:charisma icon.png|frameless|40px|center|link=Charisma]] [[Charisma|CHA]]
[[File:charisma icon.png|frameless|40px|center|link=Charisma]] [[Charisma|CHA]]
'''{{{6}}}''' {{#ifexpr: {{{6|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{6|}}}-10)/2)}})</span> | {{#ifexpr: {{{6|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{6|}}}-10)/2)}})</span> | <br>&nbsp; }} }}
'''{{{6}}}''' {{#ifexpr: {{{6|}}} > 11 | <br><span style="font-size:0.8em">(+{{#expr:floor(({{{6|}}}-10)/2)}})</span> | {{#ifexpr: {{{6|}}} < 10 | <br><span style="font-size:0.8em">({{#expr:floor(({{{6|}}}-10)/2)}})</span> |}} }}
</td>
</td>
}}
}}

Navigation menu