From GamingWiki
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: | ||
-->}}<!-- | -->}}<!-- | ||
− | + | -->}}<!-- end #if:{{#var:stuntquery}} | |
− | --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->{{#set: has stunt = {{#var: stuntname}} }}<!-- | -->{{#set: has stunt = {{#var: stuntname}} }}<!-- |