Difference between revisions of "Template:CharacterSheet"

Line 9: Line 9:
  
 
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:260px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{STR|}}}</div>
 
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:260px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{STR|}}}</div>
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:300px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{STR|}}}| {{#expr: ({{{STR}}}-10)/2 round 0}} }}</div>
+
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:300px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{STR|}}}| {{#ifexpr: (({{{STR}}}-10)/2) > 0|+|}}{{#expr: ({{{STR}}}-10)/2 round 0}} }}</div>
  
 
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:382px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{DEX|}}}</div>
 
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:382px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{DEX|}}}</div>
 
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:422px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{DEX|}}}| {{#expr: ({{{DEX}}}-10)/2 round 0}} }}</div>
 
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:422px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{DEX|}}}| {{#expr: ({{{DEX}}}-10)/2 round 0}} }}</div>
 +
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:504px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{CON|}}}</div>
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:544px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{CON|}}}| {{#expr: ({{{CON}}}-10)/2 round 0}} }}</div>
 +
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:626px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{INT|}}}</div>
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:666px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{INT|}}}| {{#expr: ({{{INT}}}-10)/2 round 0}} }}</div>
 +
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:748px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{CON|}}}</div>
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:788px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{CON|}}}| {{#expr: ({{{CON}}}-10)/2 round 0}} }}</div>
 +
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:870px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{{CON|}}}</div>
 +
<div class="characterStatBlock" style="padding:0; width:65px; height:25px; position: absolute; margin-top:910px; margin-left:42px; border: 1px dashed #ff00ff; font-weight:bold; font-size:130%; text-align:center;">{{#if: {{{CON|}}}| {{#expr: ({{{CON}}}-10)/2 round 0}} }}</div>
  
  
 
</div>
 
</div>

Revision as of 19:50, 5 January 2020

CharacterSheet