From GamingWiki
Jump to: navigation, search
Line 31: Line 31:
 
-->{{#hashdefine: datalinehash }}<!--
 
-->{{#hashdefine: datalinehash }}<!--
 
-->{{#forargs: | keynum | value | <!--
 
-->{{#forargs: | keynum | value | <!--
   -->{{#vardefine: key | {{#rmatch: {{#var:keynum}} | (\D+)(\d+) | $1 }}}}<!--
+
   -->{{#vardefine: key | {{#rmatch: {{#var:keynum}} | (\D+)(\d+) | $1 }} }}<!--
   -->{{#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}}
{{!}} colspan="3" {{!}} {{#var:value}} <!--
+
{{!}} colspan="3" {{!}} {{#var:keynum}} = {{#var:value}}. <!--
  
   -->{{#hashdefine: singledataline | {{#hashvalue: datalinehash | {{#var:num}} }} | ,css, | ;css; }}<!--
+
   -->.{{#hashdefine: singledataline | {{#hashvalue: datalinehash | {{#var:num}} }} | ,css, | ;css; }}<!--
   -->{{#hashinclude: singledataline | {{#var:key}} = {{#var:value}} }}<!--
+
   -->.{{#hashinclude: singledataline | {{#var:key}} = {{#var:value}} }}<!--
   -->{{#if: {{#var: num}} | <!--
+
   -->.{{#if: {{#var: num}} | <!--
 
       -->{{#hashinclude: datalinehash | <!--
 
       -->{{#hashinclude: datalinehash | <!--
 
         -->{{#var:num}} = {{#hashprint: singledataline | ,css, | %%%% | @@@@ | %%%%;css;@@@@ }} <!--
 
         -->{{#var:num}} = {{#hashprint: singledataline | ,css, | %%%% | @@@@ | %%%%;css;@@@@ }} <!--
 
       -->}}<!--
 
       -->}}<!--
   -->}}<!--
+
   -->.}}<!--
   -->{{#hashreset: singledataline}}<!--
+
   -->.{{#hashreset: singledataline}}<!--
-->}}<!-- end forargs
+
-->-}}-.<!-- 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:xxxdummy|datalinehash|datalinekeys}}<!--
+
-->.{{#hashtoarray:xxxdummy|datalinehash|datalinekeys}}<!--
 +
 
 +
  --><nowiki />
 +
{{!}}-
 +
{{!}} vals
 +
{{!}} colspan="3" {{!}} {{#arrayprint:xxxdummy}}
 +
{{!}}-
 +
{{!}} keys
 +
{{!}} colspan="3" {{!}} {{#arrayprint:datalinekeys}} <!--
 +
 
 
-->{{#arraysort:datalinekeys|asc}}<!--
 
-->{{#arraysort:datalinekeys|asc}}<!--
 
-->{{#hashprint: datalinehash | | %%%% | @@@@ | <!--
 
-->{{#hashprint: datalinehash | | %%%% | @@@@ | <!--

Revision as of 00:48, 1 March 2011

vals
keys {{#hashprint: datalinehash | | %%%% | @@@@ | {{#ifeq:-0-0|-0-0| |