From GamingWiki
Jump to: navigation, search
Line 49: Line 49:
 
       -->{{#ifeq: {{#var:theskilllist}} | M_NUL ||<!--
 
       -->{{#ifeq: {{#var:theskilllist}} | M_NUL ||<!--
 
       -->{{#rmatch: {{#var:thelevel}} | /^\d+$/ | <!--
 
       -->{{#rmatch: {{#var:thelevel}} | /^\d+$/ | <!--
         -->{{#hashinclude: skillhash | <!--
+
         -->{{#hashinclude: skillhash | {{#var: thelevel}}={{#var:theskilllist}} }}<!--
            -->{{#arrayindex: skilllevelarray | {{#expr:{{#var: thelevel}}-1}} }}={{#var:theskilllist}}<!--
 
        -->}}<!--
 
 
       -->}}<!--
 
       -->}}<!--
 
       -->}}<!--
 
       -->}}<!--
Line 68: Line 66:
 
-->{{#hashprint: skillhash || %%%% | @@@@ | <!--
 
-->{{#hashprint: skillhash || %%%% | @@@@ | <!--
 
   -->{{#arraydefine: skilllineary | @@@@ | :: }}<!--
 
   -->{{#arraydefine: skilllineary | @@@@ | :: }}<!--
   -->{{#if:@@@@|{{Character sheet/section<!--
+
   -->{{#if:@@@@|<!--
  -->| label1 = %%%%<!--
+
      -->{{Character sheet/section<!--
  -->| data1  = <!--
+
      -->| label1 = {{#arrayindex: skilllevelarray | {{#expr:%%%%-1}} }}<!--
      -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
+
      -->| data1  = <!--
        -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!--
+
        -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
        -->{{#arraytohash: theskillhash | theskillarray | skillhashkeys }}<!--
+
            -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!--
        -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#hashvalue: theskillhash | name}}||-}}}}}}<!--
+
            -->{{#arraytohash: theskillhash | theskillarray | skillhashkeys }}<!--
        --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!--
+
            -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#hashvalue: theskillhash | name}}||-}}}}}}<!--
        -->{{#hashvalue: theskillhash | name | _____ }}<!--
+
            --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!--
        --></span> <!--
+
            -->{{#hashvalue: theskillhash | name | _____ }}<!--
        -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!--
+
            --></span> <!--
        -->{{#arrayreset: theskillarray}}<!--
+
            -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!--
        -->{{#hashreset: theskillhash}}<!--
+
            -->{{#arrayreset: theskillarray}}<!--
      -->}} }}<!--
+
            -->{{#hashreset: theskillhash}}<!--
  -->| labelclass1 = label <!--
+
        -->}}<!--
  -->| dataclass1  = {{#var: skillClass }} <!--
+
      -->| labelclass1 = label <!--
 +
      -->| dataclass1  = {{#var: skillClass }} <!--
 +
      -->}}<!--
 
   -->}}<!--
 
   -->}}<!--
 
   -->{{#arrayreset: skilllinearray}}<!--
 
   -->{{#arrayreset: skilllinearray}}<!--

Revision as of 07:06, 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).

Skills