From GamingWiki
Jump to: navigation, search
Line 69: Line 69:
  
 
   Get the keys of our skill hash:
 
   Get the keys of our skill hash:
-->{{#hashtoarray:skillhashkeys|skillhash|skillhashkeys}}<!--
+
-->{{#hashtoarray:|skillhash|skillhashkeys}}<!--
 
-->{{#arraysort:skillhashkeys|desc}}<!--
 
-->{{#arraysort:skillhashkeys|desc}}<!--
  
-->{{#arraydefine: skillhashkeys | name, marker}}<!--
+
-->{{#arraydefine: skillpartkeys | name, marker}}<!--
 
-->{{#hashprint: skillhash || $key$ | $skline$ | <!--
 
-->{{#hashprint: skillhash || $key$ | $skline$ | <!--
 
   -->{{#arraydefine: skilllineary | $skline$ | :: }}<!--
 
   -->{{#arraydefine: skilllineary | $skline$ | :: }}<!--
Line 83: Line 83:
 
         -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
 
         -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
 
             -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!--
 
             -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!--
             -->{{#arraytohash: theskillhash | theskillarray | skillhashkeys }}<!--
+
             -->{{#arraytohash: theskillhash | theskillarray | skillpartkeys }}<!--
 
             -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#hashvalue: theskillhash | name}}||-}}}}}}<!--
 
             -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#hashvalue: theskillhash | name}}||-}}}}}}<!--
 
             --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!--
 
             --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!--
Line 99: Line 99:
  
 
-->{{#hashreset: skillhash | skillmarkerhash | classhash }}<!--
 
-->{{#hashreset: skillhash | skillmarkerhash | classhash }}<!--
-->{{#arrayreset: skilltypearray, skilllevelarray, skilllevelsreverse, skillhashkeys }}<!--
+
-->{{#arrayreset: skilltypearray, skilllevelarray, skilllevelsreverse, skillhashkeys, skillpartkeys }}<!--
  
 
-->{{#tag:pre|ending skill section}}<!--
 
-->{{#tag:pre|ending skill section}}<!--

Revision as of 15:39, 4 April 2011

Draw a section in a character sheet for skills. This template is unforgiving: all of its parameters are required (but may be empty).

Starting skill section
 skillhash:  

Skills