From GamingWiki
Jump to: navigation, search
Line 34: Line 34:
 
   -->{{#vardefine: num | {{#rmatch: {{#var:keynum}} | (\D+)(\d+) | $2 }}}}<!--
 
   -->{{#vardefine: num | {{#rmatch: {{#var:keynum}} | (\D+)(\d+) | $2 }}}}<!--
  
--><nowiki />
+
  --><nowiki />
 
{{!}}-
 
{{!}}-
 
{{!}} {{#var:num}}/{{#var:key}}
 
{{!}} {{#var:num}}/{{#var:key}}
Line 47: Line 47:
 
   -->}}<!--
 
   -->}}<!--
 
   -->{{#hashreset: singledataline}}<!--
 
   -->{{#hashreset: singledataline}}<!--
-->}}<!--
+
-->}}<!-- end forargs
 +
 
 
   Now each value of datalinehash can be parsed into a new hash. We want it sorted by
 
   Now each value of datalinehash can be parsed into a new hash. We want it sorted by
 
   key, so we use a key array.
 
   key, so we use a key array.
-->{{#hashtoarray:|datalinehash|datalinekeys}}<!--
+
-->{{#hashtoarray:xxxdummy|datalinehash|datalinekeys}}<!--
 
-->{{#arraysort:datalinekeys|asc}}<!--
 
-->{{#arraysort:datalinekeys|asc}}<!--
 
-->{{#hashprint: datalinehash || %%%% | @@@@ | <!--
 
-->{{#hashprint: datalinehash || %%%% | @@@@ | <!--
Line 59: Line 60:
 
   -->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label |M_NUL}} | M_NUL | 0 | 1 }} }}<!--
 
   -->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label |M_NUL}} | M_NUL | 0 | 1 }} }}<!--
 
   -->{{#vardefine: rdatacols | {{#ifeq: {{#hashvalue: thedataline | rdata |M_NUL}} | M_NUL | 0 | 1 }} }}<!--
 
   -->{{#vardefine: rdatacols | {{#ifeq: {{#hashvalue: thedataline | rdata |M_NUL}} | M_NUL | 0 | 1 }} }}<!--
   -->{{#vardefine: datacols  | {{#expr:{{#var:columns}}-{{#var:labelcols}}-{{#var:rdatacols}}}} }}<!--
+
   -->{{#vardefine: datacols  | {{#expr:{{#var:columns}}-{{#var:labelcols}}-{{#var:rdatacols}} }} }}<!--
 
   -->{{#ifeq:{{#hashvalue: thedataline | data }}-{{#var:labelcols}}-{{#var:rdatacols}}|-0-0||<!--
 
   -->{{#ifeq:{{#hashvalue: thedataline | data }}-{{#var:labelcols}}-{{#var:rdatacols}}|-0-0||<!--
  
Line 75: Line 76:
 
{{!}} class="{{#hashvalue: thedataline|dataclass|}}" {{!}} {{#hashvalue: thedataline | rdata }} <!--
 
{{!}} class="{{#hashvalue: thedataline|dataclass|}}" {{!}} {{#hashvalue: thedataline | rdata }} <!--
 
       -->}}<!--
 
       -->}}<!--
   -->}}<!--
+
   -->}}<!-- end ifeq
 
   -->{{#hashreset: thedataline }}<!--
 
   -->{{#hashreset: thedataline }}<!--
-->| datalinekeys }}<!--
+
-->| datalinekeys }}<!-- end hashprint datalinehash
 
-->{{#hashreset: datalinehash }}<!--
 
-->{{#hashreset: datalinehash }}<!--
  

Revision as of 00:36, 1 March 2011