From GamingWiki
Jump to: navigation, search
Line 14: Line 14:
 
-->{{#hashdefine: userparamhash | {{{userparam|}}} |;;|::}}<!--
 
-->{{#hashdefine: userparamhash | {{{userparam|}}} |;;|::}}<!--
  
-->{{#vardefine:cost|{{#if:{{{7|}}}|{{#hashvalue: userparamhash | cost | {{{2|-1}}} }} | {{{2|-1}}} }} }}<!--
+
-->{{#vardefine:cost|<!--
 +
  -->{{#if:{{{7|}}}|<!-- override allowed
 +
      -->{{#hashvalue: userparamhash | cost | {{{2|-1}}} }}<!--
 +
  -->|<!-- override not allowed
 +
      -->nooverride{{#hashvalue: userparamhash | cost | {{{2|-1}}} }}<!--
 +
      -->{{{2|-1}}}<!--
 +
  -->}}<!--
 +
--->}}<!--
 +
 
 +
-->{{#vardefine:specialty|<!--
 +
  -->{{#if:{{{6|}}}|<!-- specialty allowed or required
 +
      -->{{#hashvalueexists:userparamhash|detail<!--
 +
      -->|({{#hashvalue: userparamhash|detail}})<!--
 +
      -->|(nospec)<!--
 +
      -->}}<!--
 +
  -->}}<!--
 +
--->}}<!--
  
 
   -->{{Character sheet/section | columns = {{#hashvalue: userparamhash |columns|}} <!--
 
   -->{{Character sheet/section | columns = {{#hashvalue: userparamhash |columns|}} <!--
 
   -->| label1    = M_NUL <!--
 
   -->| label1    = M_NUL <!--
   -->| data1      = {{{1|<noinclude>Stunt name</noinclude>}}} <!--
+
   -->| data1      = {{{1|<noinclude>Stunt name</noinclude>}}} {{#var:specialty}}<!--
      -->      {{#if:{{{6|}}}|{{#if:{{#hashvalue: userparamhash|detail}}|({{#hashvalue: userparamhash|detail}})}} }}<!--
 
 
   -->| rdata1    = {{#rmatch: {{#var:cost}} |^\s*(\d+)\s*$|+\1|{{#var:cost}}}} <!--
 
   -->| rdata1    = {{#rmatch: {{#var:cost}} |^\s*(\d+)\s*$|+\1|{{#var:cost}}}} <!--
 
   -->| label2    = M_NUL <!--
 
   -->| label2    = M_NUL <!--

Revision as of 22:38, 11 October 2011

Print a row (or rows) in a character sheet for stunt details. This is called through an SMW query with the following positional parameters:

  1. Page
  2. Refresh cost
  3. Blurb
  4. Description
  5. Supernatural
  6. Subtypes
  7. Cost override allowed
Stunt name nooverride-1-1