From GamingWiki
Jump to: navigation, search
 
(15 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
# Page
 
# Page
# Refresh cost
+
# Refresh adjust
 
# Blurb
 
# Blurb
 
# Description
 
# Description
 +
# Supernatural
 +
# Subtypes
 +
# Cost override allowed
 +
# Extra blurb allowed
  
 +
{| class="infobox"
 
<onlyinclude><!--
 
<onlyinclude><!--
  
   -->{{Character sheet/section | columns = {{{userparam|}}} <!--
+
-->{{#hashdefine: userparamhash | {{{userparam|}}} |;;|::}}<!--
 +
 
 +
-->{{#vardefine:cost|<!--
 +
  -->{{#if:{{{7|}}}|<!-- override allowed
 +
      -->{{#hashvalue: userparamhash | cost | {{{2|-1}}} }}<!--
 +
  -->|<!-- override not allowed
 +
      -->{{{2|-1}}}<!--
 +
  -->}}<!--
 +
-->}}<!--
 +
 
 +
-->{{#vardefine:specialty|<!--
 +
  -->{{#if:{{{6|}}}|<!-- specialty allowed or required
 +
      -->{{#if:{{#hashvalue:userparamhash|detail}}|<!--
 +
        -->({{#hashvalue: userparamhash|detail}})<!--
 +
      -->}}<!--
 +
  -->}}<!--
 +
-->}}<!--
 +
 
 +
  TODO: mechanism for indenting stunts, such as with Item of Power or Human Form.
 +
 
 +
   -->{{Character sheet/section | columns = {{#hashvalue: userparamhash |columns|}} <!--
 
   -->| label1    = M_NUL <!--
 
   -->| label1    = M_NUL <!--
   -->| data1      = {{{1}}} <!--
+
   -->| data1      = {{{1|<noinclude>Stunt name</noinclude>}}} {{#var:specialty}}<!--
   -->| rdata1    = [{{#rmatch: {{{2}}} |^\s*(\d+)\s*$|+\1|{{{2}}}}}] <!--
+
   -->| rdata1    = {{#rmatch: {{#var:cost}} |^\s*(\d+)\s*$|+\1|{{#var:cost}}}} <!--
 
   -->| label2    = M_NUL <!--
 
   -->| label2    = M_NUL <!--
   -->| data2      = {{{3}}} <!--
+
   -->| data2      = {{#if:{{{3|}}}|''{{{3|<noinclude>Short description</noinclude>}}}''}} <!--
 
   -->| dataclass2 = stunt-description <!--
 
   -->| dataclass2 = stunt-description <!--
 +
-->}}<!--
 
   -->}}<!--
 
   -->}}<!--
 
--></onlyinclude>
 
--></onlyinclude>
 +
|}

Latest revision as of 20:08, 28 November 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 adjust
  3. Blurb
  4. Description
  5. Supernatural
  6. Subtypes
  7. Cost override allowed
  8. Extra blurb allowed
Stunt name -1