From GamingWiki
Line 69: | Line 69: | ||
Get the keys of our skill hash: | Get the keys of our skill hash: | ||
− | -->{{#hashtoarray: | + | -->{{#hashtoarray:|skillhash|skillhashkeys}}<!-- |
-->{{#arraysort:skillhashkeys|desc}}<!-- | -->{{#arraysort:skillhashkeys|desc}}<!-- | ||
− | -->{{#arraydefine: | + | -->{{#arraydefine: skillpartkeys | name, marker}}<!-- |
-->{{#hashprint: skillhash || $key$ | $skline$ | <!-- | -->{{#hashprint: skillhash || $key$ | $skline$ | <!-- | ||
-->{{#arraydefine: skilllineary | $skline$ | :: }}<!-- | -->{{#arraydefine: skilllineary | $skline$ | :: }}<!-- | ||
Line 83: | Line 83: | ||
-->{{#arrayprint: skilllineary | , | $theskill$ | <!-- | -->{{#arrayprint: skilllineary | , | $theskill$ | <!-- | ||
-->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!-- | -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!-- | ||
− | -->{{#arraytohash: theskillhash | theskillarray | | + | -->{{#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 |