From GamingWiki
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}} }}<!-- |
− | |||
− | |||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 68: | Line 66: | ||
-->{{#hashprint: skillhash || %%%% | @@@@ | <!-- | -->{{#hashprint: skillhash || %%%% | @@@@ | <!-- | ||
-->{{#arraydefine: skilllineary | @@@@ | :: }}<!-- | -->{{#arraydefine: skilllineary | @@@@ | :: }}<!-- | ||
− | -->{{#if:@@@@|{{Character sheet/section<!-- | + | -->{{#if:@@@@|<!-- |
− | + | -->{{Character sheet/section<!-- | |
− | + | -->| label1 = {{#arrayindex: skilllevelarray | {{#expr:%%%%-1}} }}<!-- | |
− | + | -->| data1 = <!-- | |
− | + | -->{{#arrayprint: skilllineary | , | $theskill$ | <!-- | |
− | + | -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!-- | |
− | + | -->{{#arraytohash: theskillhash | theskillarray | skillhashkeys }}<!-- | |
− | + | -->{{#vardefine: theskilltag | {{lc:{{#replace:{{#hashvalue: theskillhash | name}}||-}}}}}}<!-- | |
− | + | --><span class="{{#var:skillClass}} skill-{{#var:theskilltag}}"><!-- | |
− | + | -->{{#hashvalue: theskillhash | name | _____ }}<!-- | |
− | + | --></span> <!-- | |
− | + | -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!-- | |
− | + | -->{{#arrayreset: theskillarray}}<!-- | |
− | + | -->{{#hashreset: theskillhash}}<!-- | |
− | + | -->}}<!-- | |
− | + | -->| 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 |