From GamingWiki
Jump to: navigation, search
Line 6: Line 6:
 
   -->{{#vardefine: stuntdef  | {{#arrayindex:thestuntarray|0|}} }}<!--
 
   -->{{#vardefine: stuntdef  | {{#arrayindex:thestuntarray|0|}} }}<!--
 
   -->{{#vardefine: stuntname | {{#explode: {{#var:stuntdef}}|::|0}} }}<!--
 
   -->{{#vardefine: stuntname | {{#explode: {{#var:stuntdef}}|::|0}} }}<!--
 +
 +
    Look up the stunt
 +
  -->{{#vardefineecho:stuntquery|{{#ask: [[{{#var:stuntname}}]] [[Category:Stunts]]
 +
      |?=
 +
      |?refresh cost=
 +
      |?blurb=
 +
      |?description=
 +
      | userparam={{{columns|}}}
 +
      | format=template
 +
      | template=SMW stunt line
 +
      }}}}<!--
 +
 +
    Do a lookup. if it comes back blank, we do our own printout.
 +
  -->{{#if:{{#var:stuntquery}}||<!--
 +
 
   -->{{#vardefine: stuntspec | {{#explode: {{#var:stuntdef}}|::|1}} }}<!--
 
   -->{{#vardefine: stuntspec | {{#explode: {{#var:stuntdef}}|::|1}} }}<!--
 
   -->{{#vardefine: stuntcost | {{#arrayindex:thestuntarray|1|}} }}<!--
 
   -->{{#vardefine: stuntcost | {{#arrayindex:thestuntarray|1|}} }}<!--
Line 21: Line 36:
 
   -->}}<!--
 
   -->}}<!--
  
    Look up the stunt
+
   -->}}<!-- end #if:{{#var:stuntquery}}
   -->{{#ask: [[{{#var:stuntname|{{#var:thestuntline}}}}]] [[Category:Stunts]]
 
      |?=
 
      |?refresh cost=
 
      |?blurb=
 
      |?description=
 
      | userparam={{{columns|}}}
 
      | format=template
 
      | template=SMW stunt line
 
      }}<!--
 
  
 
   -->{{#set: has stunt = {{#var: stuntname}} }}<!--
 
   -->{{#set: has stunt = {{#var: stuntname}} }}<!--

Revision as of 21:15, 11 October 2011