From GamingWiki
Jump to: navigation, search
Line 155: Line 155:
 
         -->| label1 = Refresh <!--
 
         -->| label1 = Refresh <!--
 
         -->| data1  = {{#var: refresh}} <!--
 
         -->| data1  = {{#var: refresh}} <!--
 
-->{{#var: cols  }}-{{#var: cols_l}}-{{#var: cols_r}}<!-- debug --><!--
 
-->{{#var: contentcols  }}-{{#var: contentcols_l}}-{{#var: contentcols_r}}<!-- debug --><!--
 
-->{{{stress-beside-consequences}}}<!--
 
 
 
     -->}}<!--
 
     -->}}<!--
  
Stress tracks
+
  STRESS AND CONSEQUENCES
Stress and consequences
 
  
-->{{{stress-beside-consequences}}}<!--
+
-->{{#ifeq:{{{stress-beside-consequences|no}}}|yes|<!--
  
-->{{#ifeq:{{{stress-beside-consequences|yes}}}|yes|<!--
+
  We want to place stress and consequences side-by-side.
  
We want to place stress and consequences side-by-side.
+
--><nowiki/>
 
+
{{!}}-
-->
+
{{!}} colspan="{{#var: cols_l}}" class="subhead" {{!}} Stress Tracks  
|-
+
{{!}} colspan="{{#var: cols_r}}" class="subhead" {{!}} Consequences <!--
| colspan="{{#var: cols_l}}" class="subhead" | Stress Tracks  
 
| colspan="{{#var: cols_r}}" class="subhead" | Consequences <!--
 
  
 
-->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!--
 
-->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!--
Line 221: Line 213:
 
       -->{{#vardefine: conidx | {{#expr: {{#var: conidx}} + 1}} }}<!--
 
       -->{{#vardefine: conidx | {{#expr: {{#var: conidx}} + 1}} }}<!--
 
     -->}}<!-- end while consequences
 
     -->}}<!-- end while consequences
   -->}}<!--
+
   -->}}<!-- end if severity
  
 
   -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!--
 
   -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!--
Line 228: Line 220:
 
-->|<!-- else {{{stress-beside-consequences|yes}}} != yes
 
-->|<!-- else {{{stress-beside-consequences|yes}}} != yes
  
  @todo: render stress above consequences
+
  STRESS
  
-->
+
-->{{Character sheet/FATE/section header|Stress Tracks|columns={{#var:cols}}|break=yes}}<!--
|-
 
| colspan="{{#var:cols}}" class="subhead" | Stress Tracks <!--
 
 
 
 
 
-->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!--
 
-->{{#vardefine: scidx | 0 }}<!--
 
  
 
-->{{#arraydefine: stressary | {{{stresstracks|health//endurance::composure//resolve}}} | :: }}<!--
 
-->{{#arraydefine: stressary | {{{stresstracks|health//endurance::composure//resolve}}} | :: }}<!--
 
-->{{#arrayprint:  stressary || @@@@ | <!--
 
-->{{#arrayprint:  stressary || @@@@ | <!--
   -->{{Character sheet/FATE/Stress line | @@@@ | columns = {{#var:cols}} }}<!--
+
   -->{{Character sheet/FATE/Stress line | @@@@ | columns = {{#var:cols}} | defaultstress = {{{defaultstress|5}}} }}<!--
 
 
  -->{{#vardefineecho: thetrack | @@@@ }}<!--
 
  -->{{#vardefine:trackname | {{#explode:{{#var: thetrack}}|//|0}} }}<!--
 
  -->{{#vardefine:trackskil | {{#explode:{{#var: thetrack}}|//|1}} }}<!--
 
  -->{{#vardefine:trackmod  | {{#expr: ceil(({{#var: skillValue{{#var:trackskil}}}} + 0) / 2)}} }}<!--
 
  -->{{#vardefine:defstress | {{#expr: {{#var:defaultstress}} + {{#var:trackmod}} }}}}<!--
 
  -->{{#vardefine:thestress | <!--
 
      -->{{#if:{{{ {{#var: trackname}}|}}}|{{{ {{#var: trackname}} }}}|{{#var:defstress}}//0}}<!--
 
  -->}}<!--
 
  -->{{#vardefine:totstress | {{#explode:{{#var: thestress}}|//|0}} }}<!--
 
  -->{{#vardefine:curstress | {{#explode:{{#var: thestress}}|//|1}} }}<!--
 
  --><nowiki />
 
{{!}}-
 
{{!}} class="shaded" {{!}} {{#var: trackname}} <!--
 
      --><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug -->
 
{{!}} colspan="{{#var:contentcols}}" {{!}} <!--
 
  -->{{#if:{{#var: trackname}} |<!--
 
    --><table class="fate stressbox"><!--
 
    --><tr>{{#loop: stressloop | 1 | {{#var:totstress}} | <!--
 
      --><td class="{{#ifexpr: {{#var: stressloop}} <= {{#var:curstress|0}} | full }}"><div>&nbsp;</div></td><!--
 
    -->}}</tr><!--
 
    --></table><!--
 
  -->}}<!--
 
 
 
 
-->}}<!--
 
-->}}<!--
 
-->{{#arrayreset: stressary }}<!--
 
-->{{#arrayreset: stressary }}<!--
  
-->{{#while: | <!-- stress tracks
+
  CONSEQUENCES
  -->{{#vardefineecho: thetrack | {{#explode: {{{stresstracks|health//endurance::composure//resolve}}} |::| {{#var:scidx}} }} }}<!--
 
-->|<!--
 
  -->{{#vardefine:trackname | {{#explode:{{#var: thetrack}}|//|0}} }}<!--
 
  -->{{#vardefine:trackskil | {{#explode:{{#var: thetrack}}|//|1}} }}<!--
 
  -->{{#vardefine:trackmod  | {{#expr: ceil(({{#var: skillValue{{#var:trackskil}}}} + 0) / 2)}} }}<!--
 
  -->{{#vardefine:defstress | {{#expr: {{#var:defaultstress}} + {{#var:trackmod}} }}}}<!--
 
  -->{{#vardefine:thestress | <!--
 
    -->{{#if:{{{ {{#var: trackname}}|}}}|{{{ {{#var: trackname}} }}}|{{#var:defstress}}//0}}<!--
 
  -->}}<!--
 
  -->{{#vardefine:totstress | {{#explode:{{#var: thestress}}|//|0}} }}<!--
 
  -->{{#vardefine:curstress | {{#explode:{{#var: thestress}}|//|1}} }}<!--
 
  --><nowiki />
 
{{!}}-
 
{{!}} class="shaded" {{!}} {{#var: trackname}} <!--
 
      --><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug -->
 
{{!}} colspan="{{#var:contentcols}}" {{!}} <!--
 
  -->{{#if:{{#var: trackname}} |<!--
 
    --><table class="fate stressbox"><!--
 
    --><tr>{{#loop: stressloop | 1 | {{#var:totstress}} | <!--
 
      --><td class="{{#ifexpr: {{#var: stressloop}} <= {{#var:curstress|0}} | full }}"><div>&nbsp;</div></td><!--
 
    -->}}</tr><!--
 
    --></table><!--
 
  -->}}<!--
 
  
  -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!--
+
-->{{Character sheet/FATE/section header|Consequences|columns={{#var:cols}}|break=yes}}<!--
-->}}<!-- end while stress tracks and consequence types
 
  
-->
+
-->{{#vardefine: consequencelist| {{{consequences|clever//mild::invisible//none::orphaned}}} }}<!--
|-
+
-->{{#arraydefine: consqtypeary | {{{consequencetypes|mild::moderate::severe}}} | :: }}<!--
| colspan="{{#var:cols}}" class="subhead" | Consequences <!--
+
-->{{#arrayprint:  consqtypeary || @@@@ | <!--
 +
  -->{{Character sheet/FATE/Consequence line | @@@@ | {{#var: consequencelist}} | columns = {{#var:cols}} }}<!--
 +
-->}}<!--
 +
-->{{#arrayreset: consqtypeary }}<!--
  
-->{{#vardefine: scidx | 0 }}<!--
 
-->{{#while: | <!-- consequence types
 
  -->{{#vardefineecho: severity | {{#explode: {{{consequencetypes|mild moderate severe}}} | | {{#var:scidx}} }} }}<!--
 
-->|<!--
 
  
  --><nowiki />
+
-->}}<!-- end {{#ifeq:{{{stress-beside-consequences|yes}}}|yes
{{!}} class="label" {{!}} {{#var: severity}}
 
{{!}} colspan="{{#var:contentcols_r}}" {{!}} <!--
 
  -->{{#if:{{#var: severity}} |<!--
 
    -->{{#vardefine: conidx | 0 }}<!--
 
    -->{{#vardefine: cons | 0 }}<!--
 
    -->{{#while: | <!-- consequences
 
      -->{{#vardefineecho: consequence | {{#explode: {{{consequences|}}} | :: | {{#var:conidx}} }} }}<!--
 
    -->|<!--
 
      -->{{#ifeq: {{#explode: {{#var:consequence}} |//| 1}}| {{#var: severity}} |<!--
 
        -->{{#ifeq: {{ #var: cons }} | 1 |,&nbsp; }}<!--
 
        -->{{aspect |{{#explode: {{#var:consequence}} |//| 0}}}}<!--
 
        -->{{#vardefine: cons | 1 }}<!--
 
      -->}}<!-- end ifeq
 
      -->{{#vardefine: conidx | {{#expr: {{#var: conidx}} + 1}} }}<!--
 
    -->}}<!-- end while consequences
 
  -->}}<!--
 
 
 
  -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!--
 
-->}}<!-- end while stress tracks and consequence types
 
  
-->}}<!-- end {{#ifeq:{{{stress-beside-consequences|yes}}}|yes
+
  FOOTER
  
-->
+
--><nowiki/>
 
|-
 
|-
 
| colspan="{{#var:cols}}" | {{navbar|{{{template name|Character sheet/FATE}}}|mini=1}}  
 
| colspan="{{#var:cols}}" | {{navbar|{{{template name|Character sheet/FATE}}}|mini=1}}  

Revision as of 14:39, 9 April 2014

  1. REDIRECT Template:Character sheet/section subhead
{{{name}}}
[[{{{campaign}}}]]
Aspects
Skills
Stunts
FP 5 Refresh 5
health
 
 
 
 
 
composure
 
 
 
 
 
mild clever
moderate
severe

{{#set: game system = FATE }}{{#set: parent template = Template:Character_Sheet }}

[create]
Error creating thumbnail: File missing
Template documentation