From GamingWiki
Jump to: navigation, search
(Created page with "Draw a section in a character sheet for skills. This template is unforgiving: all of its parameters are required (but may be empty). {| class="infobox" <onlyinclude><!-- -->{{#...")
 
 
(3 intermediate revisions by the same user not shown)
Line 94: Line 94:
  
 
-->{{#arraydefine: skillpartkeys | name, marker}}<!--
 
-->{{#arraydefine: skillpartkeys | name, marker}}<!--
-->{{#hashprint: skillhash || $key$ | $skline$ | <!--
+
-->{{#hashprint: skillhash || $skillrank$ | $skline$ | <!--
 
   -->{{#arraydefine: skilllineary | $skline$ | :: }}<!--
 
   -->{{#arraydefine: skilllineary | $skline$ | :: }}<!--
 
   -->{{#if: $skline$ |<!--
 
   -->{{#if: $skline$ |<!--
Line 100: Line 100:
 
       -->| labelclass1 = label <!--
 
       -->| labelclass1 = label <!--
 
       -->| dataclass1  = {{#var: skillClass }} <!--
 
       -->| dataclass1  = {{#var: skillClass }} <!--
       -->| label1 = {{#arrayindex: skilllevelarray | {{#expr: $key$ -1}} }}<!--
+
       -->| label1 = {{#arrayindex: skilllevelarray | {{#expr: $skillrank$ -1}} }}<!--
 
       -->| data1  = <!--
 
       -->| data1  = <!--
 
         -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
 
         -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
 
             -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!--
 
             -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!--
 
             -->{{#arraytohash: theskillhash | theskillarray | skillpartkeys }}<!--
 
             -->{{#arraytohash: theskillhash | theskillarray | skillpartkeys }}<!--
             -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#hashvalue: theskillhash | name}}||-}}}}}}<!--
+
            -->{{#vardefine: theskillname | {{#hashvalue: theskillhash | name}} }}<!--
 +
             -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#var: theskillname}}||-}}}}}}<!--
 +
 
 
             --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!--
 
             --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!--
             -->{{#hashvalue: theskillhash | name | _____ }}<!--
+
             -->{{#var: theskillname }}<!--
 
             --></span> <!--
 
             --></span> <!--
 
             -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!--
 
             -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!--
 +
              Add SMW property
 +
            -->{{#if:{{#var:theskillname}}|{{#set: skill/{{#var:theskillname}}=$skillrank$ }}}}<!--
 +
 
             -->{{#arrayreset: theskillarray}}<!--
 
             -->{{#arrayreset: theskillarray}}<!--
 
             -->{{#hashreset: theskillhash}}<!--
 
             -->{{#hashreset: theskillhash}}<!--

Latest revision as of 21:20, 11 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