From GamingWiki
Line 94: | Line 94: | ||
-->{{#arraydefine: skillpartkeys | name, marker}}<!-- | -->{{#arraydefine: skillpartkeys | name, marker}}<!-- | ||
− | -->{{#hashprint: skillhash || $ | + | -->{{#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: $ | + | -->| label1 = {{#arrayindex: skilllevelarray | {{#expr: $skillrank$ -1}} }}<!-- |
-->| data1 = <!-- | -->| data1 = <!-- | ||
-->{{#arrayprint: skilllineary | , | $theskill$ | <!-- | -->{{#arrayprint: skilllineary | , | $theskill$ | <!-- | ||
-->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!-- | -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!-- | ||
-->{{#arraytohash: theskillhash | theskillarray | skillpartkeys }}<!-- | -->{{#arraytohash: theskillhash | theskillarray | skillpartkeys }}<!-- | ||
− | -->{{#vardefine: theskilltag | {{lc:{{#replace:{{# | + | -->{{#vardefine: theskillname | {{#hashvalue: theskillhash | name}} }}<!-- |
+ | -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#var: theskillname}}||-}}}}}}<!-- | ||
+ | -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!-- | ||
+ | |||
--><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!-- | --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!-- | ||
− | -->{{# | + | -->{{#var: theskillname }}<!-- |
--></span> <!-- | --></span> <!-- | ||
− | -->{{# | + | Add SMW property |
+ | -->{{#if:{{#var:theskillname}}|{{#set: skill/{{#var:theskillname}}=$skillrank$ }}}}<!-- | ||
+ | |||
-->{{#arrayreset: theskillarray}}<!-- | -->{{#arrayreset: theskillarray}}<!-- | ||
-->{{#hashreset: theskillhash}}<!-- | -->{{#hashreset: theskillhash}}<!-- |
Revision as of 21:19, 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 |