From GamingWiki
Jump to: navigation, search
Line 64: Line 64:
  
 
   ASPECTS
 
   ASPECTS
 
+
-->{{#hashtotemplate: {{{aspect section template | Character sheet/FATE/Aspect section}}} | paramsHash }}<!--
-->{{Character sheet/section | columns = {{#var:cols}}
 
  | subhead  = Aspects
 
  | label1    = M_NUL
 
  | data1    = <!--
 
  -->{{#if: {{{image|}}} | [[Image:{{{image}}}{{!}}thumb{{!}}{{{caption|}}}]]}}<!--
 
  -->{{#arraydefine: aspectsarray | {{{aspects|}}} | ;; }}<!--
 
  -->{{#arrayprint:  aspectsarray || @@@@ | <!--
 
      -->{{#if:@@@@|<nowiki />
 
* <span class="aspect">@@@@</span> {{#set: has aspect = @@@@}} <!--
 
      -->}}<!--
 
  -->}}<!--
 
-->}}<!-- end section --><!--
 
  
 
   SKILLS
 
   SKILLS
--><!--
 
 
-->{{#hashtotemplate: {{{skill section template | Character sheet/FATE/Skill section}}} | paramsHash }}<!--
 
-->{{#hashtotemplate: {{{skill section template | Character sheet/FATE/Skill section}}} | paramsHash }}<!--
END SKILLS
 
  
 
   STUNTS
 
   STUNTS
 
 
-->{{#hashtotemplate: {{{stunt section template | Character sheet/FATE/Stunt section}}} | paramsHash }}<!--
 
-->{{#hashtotemplate: {{{stunt section template | Character sheet/FATE/Stunt section}}} | paramsHash }}<!--
  
Line 132: Line 117:
 
   STRESS AND CONSEQUENCES
 
   STRESS AND CONSEQUENCES
  
-->{{#ifeq:{{{stress-beside-consequences|yes}}}|yes|<!--
+
-->{{#if: {{{stress section template|}}} | <!--
 
 
  We want to place stress and consequences side-by-side.
 
 
 
-->{{Character sheet/FATE/section header|Stress Tracks|columns={{#var:cols_l}}|break=yes}}<!--
 
-->{{Character sheet/FATE/section header|Consequences|columns={{#var:cols_r}}|break=no}}<!--
 
 
 
-->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!--
 
-->{{#vardefine: scidx | 0 }}<!--
 
-->{{#while: | <!-- stress tracks and consequence types
 
  -->{{#vardefineecho: thetrack | {{#explode: {{{stresstracks|health//endurance::composure//resolve}}} |::| {{#var:scidx}} }} }}<!--
 
  --><!-- consequence types
 
  -->{{#vardefineecho: severity | {{#explode: {{{consequencetypes|mild moderate severe}}} | | {{#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}} }}<!--
 
 
 
  -->{{Character sheet/FATE/Stress line | {{#var: trackname}} | {{#var:totstress}} | columns = {{#var:cols_l}} | defaultstress = {{{defaultstress|5}}} }}<!--
 
  --><nowiki />
 
{{!}}-
 
{{!}} class="shaded" {{!}} {{#var: trackname}} <!--
 
      --><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug -->
 
{{!}} colspan="{{#var:contentcols_l}}" {{!}} <!--
 
  -->{{#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><!--
 
  -->}}<!--
 
 
 
  --><nowiki />
 
{{!}} 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
 
  -->}}<!-- end if severity
 
 
 
  -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!--
 
-->}}<!-- end while stress tracks and consequence types
 
 
 
-->|<!-- else {{{stress-beside-consequences|yes}}} != yes
 
 
 
  STRESS
 
  
-->{{Character sheet/FATE/section header|Stress Tracks|columns={{#var:cols}}|break=yes}}<!--
+
  -->{{#hashtotemplate: {{{stress section template}}} | paramsHash }}<!--
  
-->{{#arraydefine: stressary | {{{stresstracks|health//endurance::composure//resolve}}} | :: }}<!--
+
-->|{{#ifeq:{{{stress-beside-consequences|no}}}|yes|<!--
-->{{#arrayprint:  stressary || @@@@ | <!--
 
  -->{{Character sheet/FATE/Stress line | @@@@ | columns = {{#var:cols}} | defaultstress = {{{defaultstress|5}}} }}<!--
 
-->}}<!--
 
-->{{#arrayreset: stressary }}<!--
 
  
   CONSEQUENCES
+
      stress and consequences side-by-side.
 +
   -->{{#hashtotemplate: Character sheet/FATE/Stress beside consequences | paramsHash }}<!--
  
-->{{Character sheet/FATE/section header|Consequences|columns={{#var:cols}}|break=yes}}<!--
+
-->|<!-- else {{{stress-beside-consequences}}} != yes
  
-->{{#vardefine: consequencelist| {{{consequences|clever//mild::invisible//none::orphaned}}} }}<!--
+
      STRESS
-->{{#arraydefine: consqtypeary | {{{consequencetypes|mild::moderate::severe}}} | :: }}<!--
+
  -->{{#hashtotemplate: Character sheet/FATE/Stress section | paramsHash }}<!--
-->{{#arrayprint: consqtypeary || @@@@ | <!--
+
      CONSEQUENCES
  -->{{Character sheet/FATE/Consequence line | @@@@ | {{#var: consequencelist}} | columns = {{#var:cols}} }}<!--
+
  -->{{#hashtotemplate: Character sheet/FATE/Consequence section | paramsHash }}<!--
-->}}<!--
 
-->{{#arrayreset: consqtypeary }}<!--
 
  
  
-->}}<!-- end {{#ifeq:{{{stress-beside-consequences|yes}}}|yes
+
-->}}<!-- end {{#ifeq:{{{stress-beside-consequences}}}
 +
-->}}<!-- end {{#if:{{{stress section template}}}
  
 
   FOOTER
 
   FOOTER

Revision as of 01:17, 28 May 2014

{{{name}}}
[[{{{campaign}}}]]
Aspects
Skills
Stunts
FP 5 Refresh 5
health
 
 
 
 
 
composure
 
 
 
 
 
mild
moderate
severe

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

[create]
Error creating thumbnail: File missing
Template documentation