From GamingWiki
Jump to: navigation, search
Line 19: Line 19:
 
       }} <!--
 
       }} <!--
 
-->| , | <PROP> }}<!--
 
-->| , | <PROP> }}<!--
 +
-->{{#hashdefine: allModes}}<!--
 
-->{{#arrayprint: allModesArray | | <line> | <!--
 
-->{{#arrayprint: allModesArray | | <line> | <!--
 
   -->{{#arraydefine: modeLine  | <line> | <PROP>}}<!--
 
   -->{{#arraydefine: modeLine  | <line> | <PROP>}}<!--
Line 24: Line 25:
 
   -->{{#arrayslice:  modeParts | modeLine | 1}}<!--
 
   -->{{#arrayslice:  modeParts | modeLine | 1}}<!--
 
   -->{{#hashinclude: allModes  | {{#var: modeName}} = {{#arrayprint: modeParts | <PROP> }} }}<!--
 
   -->{{#hashinclude: allModes  | {{#var: modeName}} = {{#arrayprint: modeParts | <PROP> }} }}<!--
 +
  -->{{#arrayreset: modeLine | modeParts }}<!--
 
-->}}<!--
 
-->}}<!--
 +
-->{{#arrayreset: allModesArray}}<!--
  
-->{{#if: |<!--
+
  Pick up just the hash keys:
-->{{#hashdefine: allModes <!--
 
-->| {{#ask:
 
        [[is a::skill mode]]
 
        {{#if: {{#var: modeType}} | [[mode type::{{#var: modeType}}]] }}
 
        {{#if: {{{campaign|}}} | [[campaign::{{{campaign}}}]] }}
 
      |?Name
 
      |?Includes skill
 
      |format=array
 
      |mainlabel=-
 
      }} <!--
 
-->| , | <PROP> }}<!--
 
-->}}<!--
 
 
 
 
-->{{#hashtoarray: | allModes | modeNames}}<!--
 
-->{{#hashtoarray: | allModes | modeNames}}<!--
 
-->{{#arraysort: modeNames | asc}}<!--
 
-->{{#arraysort: modeNames | asc}}<!--
Line 79: Line 69:
 
{{!}}- <!--
 
{{!}}- <!--
 
       -->}}<!--
 
       -->}}<!--
       -->{{#arrayreset: skillsArray}}<!--
+
       -->{{#arrayreset: skillsArray|stuntsArray}}<!--
 
       -->{{#hashreset:  headerHash|skillsHash|stuntsHash}}<!--
 
       -->{{#hashreset:  headerHash|skillsHash|stuntsHash}}<!--
 
   -->}}<!-- end ifexpr
 
   -->}}<!-- end ifexpr
  
 
-->| modeNames }}<!--
 
-->| modeNames }}<!--
 +
 +
-->{{#arrayreset: modeNames}}<!--
 +
-->{{#hashreset: allModes}}<!--
  
 
--><nowiki/>  
 
--><nowiki/>  
 
|}</onlyinclude>
 
|}</onlyinclude>

Revision as of 13:29, 27 May 2014

[create]
Error creating thumbnail: File missing
Template documentation

mode type:

Template:((#ask:
        is a::skill mode
        
        
?Name ?Includes skill ?Includes stunt format
array mainlabel=-
     Template:)) =