From GamingWiki
Jump to: navigation, search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<!--
 
<!--
 +
 +
  @todo more sub-templates, like the skill block one
  
 
--><onlyinclude><!--
 
--><onlyinclude><!--
Line 21: Line 23:
 
--><div class="campaign"><!--
 
--><div class="campaign"><!--
 
   --> {{#if: {{#var:campaign}}| [[{{#var:campaign}}]] }} <!--
 
   --> {{#if: {{#var:campaign}}| [[{{#var:campaign}}]] }} <!--
   --> {{#if: {{{player|}}}|([[{{{player}}}]]) }} <!--
+
   --> {{#if: {{{player|}}}|([[User:{{{player}}}|{{{player}}}]]) }} <!--
 
--></div>
 
--></div>
 
|-<!--
 
|-<!--
  
Sections at the top of the sheet, such as High Concept and Trouble, in DFRPG.  
+
Sections at the top of the sheet, such as High Concept and Trouble.  
  
 
-->{{#hashdefine: topsectionhash }}<!--
 
-->{{#hashdefine: topsectionhash }}<!--
Line 62: 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
-->[[Category: pages that use the skill section template {{{skill section template | Character sheet/FATE/Skill section}}}]]<!--
+
-->{{#hashtotemplate: {{{skill section template | Character sheet/FATE/Skill section}}} | paramsHash }}<!--
-->{{#hashtotemplate: {{{skill section template | Character sheet/FATE/Skill section}}} | skillParamsHash }}<!--
 
END SKILLS
 
  
 
   STUNTS
 
   STUNTS
 
+
-->{{#hashtotemplate: {{{stunt section template | Character sheet/FATE/Stunt section}}} | paramsHash }}<!--
-->{{Character sheet/section | columns = {{#var:cols}} <!--
 
-->| subhead = Stunts <!--
 
-->}}<!--
 
 
 
-->{{#arraydefine: stuntsary | {{{stunts|}}} | ;; }}<!--
 
-->{{#arrayprint:  stuntsary || @@@@ | <!--
 
  -->{{Character sheet/FATE/Stunt line | @@@@ | columns = {{#var:cols}} }}<!--
 
-->}}<!--
 
-->{{#arrayreset: stuntsary }}<!--
 
 
 
  
 
Extra sections
 
Extra sections
Line 99: Line 80:
 
   -->{{{data{{#var: sectnum}}|}}}<!--
 
   -->{{{data{{#var: sectnum}}|}}}<!--
 
-->|<!--
 
-->|<!--
   -->{{#if:{{{header{{#var: sectnum}}|}}}|<!--
+
   -->{{#if:{{#vardefineecho:sectheader|{{{header{{#var: sectnum}}|}}}}}|<!--
    Draw a header
+
        Draw a header
     -->{{Character sheet/section | columns = {{#var:cols}} <!--
+
     -->{{Character sheet/section subhead |{{#var:sectheader}}g| columns = {{#var:cols}} }}<!--
        -->| header1 = {{{header{{#var: sectnum}}|}}} <!--
+
    --><!--{{Character sheet/section | columns = {{#var:cols}} --><!--
    -->}}<!--
+
        --><!--| header1 = {{{header{{#var: sectnum}}|}}} --><!--
    --><!-- <nowiki />
+
    --><!--}}--><!--
{{!}}-
 
{{!}} colspan="{{#var:cols}}" class="subhead" {{!}} {{{header{{#var: sectnum}}|}}} --><!--
 
 
   -->|<!-- if no header
 
   -->|<!-- if no header
 
     -->{{Character sheet/section | columns = {{#var:cols}} <!--
 
     -->{{Character sheet/section | columns = {{#var:cols}} <!--
         -->| label1 = {{{label{{#var: sectnum}}|}}} <!--
+
         -->| label1 = {{{label{{#var: sectnum}}|}}}h <!--
         -->| data1  = {{{data{{#var: sectnum}}|}}} <!--
+
         -->| data1  = {{{data{{#var: sectnum}}|}}}j <!--
 
     -->}}<!--
 
     -->}}<!--
    --><!-- <nowiki />
 
{{!}}-
 
{{!}} class="shaded" {{!}} {{{label{{#var: sectnum}}|}}}
 
{{!}} colspan="{{#var:contentcols}}"    {{!}} {{{data{{#var: sectnum}}|}}}
 
    --><!--
 
 
   -->}}<!-- end if
 
   -->}}<!-- end if
 
   -->{{#vardefine: sectnum | {{#expr: {{#var: sectnum}} + 1}} }}<!--
 
   -->{{#vardefine: sectnum | {{#expr: {{#var: sectnum}} + 1}} }}<!--
Line 134: Line 108:
  
 
   STRESS AND CONSEQUENCES
 
   STRESS AND CONSEQUENCES
 
+
-->{{#hashtotemplate: {{{stress section template | Character sheet/FATE/Stress and Consequences section}}} | paramsHash }}<!--
-->{{#ifeq:{{{stress-beside-consequences|yes}}}|yes|<!--
 
 
 
  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}}<!--
 
 
 
-->{{#arraydefine: stressary | {{{stresstracks|health//endurance::composure//resolve}}} | :: }}<!--
 
-->{{#arrayprint:  stressary || @@@@ | <!--
 
  -->{{Character sheet/FATE/Stress line | @@@@ | columns = {{#var:cols}} | defaultstress = {{{defaultstress|5}}} }}<!--
 
-->}}<!--
 
-->{{#arrayreset: stressary }}<!--
 
 
 
  CONSEQUENCES
 
 
 
-->{{Character sheet/FATE/section header|Consequences|columns={{#var:cols}}|break=yes}}<!--
 
 
 
-->{{#vardefine: consequencelist| {{{consequences|clever//mild::invisible//none::orphaned}}} }}<!--
 
-->{{#arraydefine: consqtypeary | {{{consequencetypes|mild::moderate::severe}}} | :: }}<!--
 
-->{{#arrayprint:  consqtypeary || @@@@ | <!--
 
  -->{{Character sheet/FATE/Consequence line | @@@@ | {{#var: consequencelist}} | columns = {{#var:cols}} }}<!--
 
-->}}<!--
 
-->{{#arrayreset: consqtypeary }}<!--
 
 
 
 
 
-->}}<!-- end {{#ifeq:{{{stress-beside-consequences|yes}}}|yes
 
  
 
   FOOTER
 
   FOOTER
Line 233: Line 123:
 
   Semantic MediaWiki keys and categories for any *page* using this template
 
   Semantic MediaWiki keys and categories for any *page* using this template
  
-->{{#set: campaign      = {{{campaign}}}      }}<!--
+
-->{{#set: campaign       = {{{campaign}}}     }}<!-- @todo: remove this
-->{{#if:{{#var:name}}|{{#set: name = {{#var:name}} }}}}<!--
+
-->{{#set: is in campaign = {{{campaign}}}      }}<!--
-->{{#if:{{{status|}}}|{{#set: status = {{{status}}} }}}}<!--
+
-->{{#if:{{#var:name}}|{{#set: has name ={{#var:name}}}}}}<!--
 +
-->{{#if:{{{status|}}}|{{#set: has status ={{{status}}}}}}}<!--
 
-->{{#ifeq:{{lc:{{{player}}}}} | npc <!--
 
-->{{#ifeq:{{lc:{{{player}}}}} | npc <!--
 
-->|<!--
 
-->|<!--
Line 248: Line 139:
 
   -->|<!--
 
   -->|<!--
 
       no player name set at all
 
       no player name set at all
       -->[[Category: Characters in {{{campaign}}}]]<!--
+
       -->[[Category: Characters in {{#var:campaign}}]]<!--
 
   -->}}<!--
 
   -->}}<!--
 
-->}}<!--
 
-->}}<!--

Latest revision as of 17:39, 3 February 2016

{{{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