From GamingWiki
Jump to: navigation, search
Line 62: Line 62:
  
 
-->
 
-->
{{Character sheet/section | columns = {{#var:cols}}
+
{{Character sheet/section  
 +
| columns   = {{#var:cols}}
 
| subhead  = {{{label|Skills}}}
 
| subhead  = {{{label|Skills}}}
 
| righthead = {{#if:{{{skilltypes|}}}|<!--
 
| righthead = {{#if:{{{skilltypes|}}}|<!--
Line 70: Line 71:
  
 
-->{{#arraydefine: skillhashkeys | name, marker}}<!--
 
-->{{#arraydefine: skillhashkeys | name, marker}}<!--
-->{{#hashprint: skillhash || $key$ | @@@@ | <!--
+
-->{{#hashprint: skillhash || $key$ | $skline$ | <!--
   -->{{#arraydefine: skilllineary | @@@@ | :: }}<!--
+
   -->{{#arraydefine: skilllineary | $skline$ | :: }}<!--
   -->{{#if:@@@@|<!--
+
   -->{{#if: $skline$ |<!--
 
       -->{{Character sheet/section<!--
 
       -->{{Character sheet/section<!--
 
       -->| labelclass1 = label <!--
 
       -->| labelclass1 = label <!--
 
       -->| dataclass1  = {{#var: skillClass }} <!--
 
       -->| dataclass1  = {{#var: skillClass }} <!--
       -->| label1 = {{#arrayindex: skilllevelarray | {{#expr:($key$)-1}} }}<!--
+
       -->| label1 = {{#arrayindex: skilllevelarray | {{#expr: $key$ -1}} }}<!--
 
       -->| data1  = <!--
 
       -->| data1  = <!--
 
         -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
 
         -->{{#arrayprint: skilllineary | ,&nbsp; | $theskill$ | <!--
Line 88: Line 89:
 
             -->{{#arrayreset: theskillarray}}<!--
 
             -->{{#arrayreset: theskillarray}}<!--
 
             -->{{#hashreset: theskillhash}}<!--
 
             -->{{#hashreset: theskillhash}}<!--
         -->}}<!--
+
         -->}}<!-- end arrayprint
       -->}}<!--
+
       -->}}<!-- end section
   -->}}<!--
+
   -->}}<!-- end if skline
 
   -->{{#arrayreset: skilllinearray}}<!--
 
   -->{{#arrayreset: skilllinearray}}<!--
-->|skilllevelsreverse}}<!--
+
--><!--|skilllevelsreverse}}--><!-- end hashprint
 +
-->}}<!-- end hashprint
  
 
-->{{#hashreset: skillhash | skillmarkerhash | classhash }}<!--
 
-->{{#hashreset: skillhash | skillmarkerhash | classhash }}<!--

Revision as of 15:26, 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