From GamingWiki
(8 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
-->{{#vardefine: skillname | {{#explode: $skillstring$ | // | 0 }} }}<!-- | -->{{#vardefine: skillname | {{#explode: $skillstring$ | // | 0 }} }}<!-- | ||
-->{{#vardefine: skillattr | {{#explode: $skillstring$ | // | 1 }} }}<!-- | -->{{#vardefine: skillattr | {{#explode: $skillstring$ | // | 1 }} }}<!-- | ||
− | -->{{#hashinclude: skilllisthash | {{ | + | -->{{#hashinclude: skilllisthash | {{#var:skillname}} = 0 }}<!-- |
-->{{#hashinclude: skillhash-{{#var:skillname}} | -->{{#hashinclude: skillhash-{{#var:skillname}} | ||
| group = {{#var:skillgroupname}} | | group = {{#var:skillgroupname}} | ||
Line 98: | Line 98: | ||
Print the skill listings | Print the skill listings | ||
-->{{#hashprint: skillhash || $skillrank$ | $skline$ | <!-- | -->{{#hashprint: skillhash || $skillrank$ | $skline$ | <!-- | ||
− | -->{{#arraydefine: skilllineary | $skline$ | | + | -->{{#arraydefine: skilllineary | $skline$ | ; }}<!-- |
-->{{#if: $skline$ |<!-- | -->{{#if: $skline$ |<!-- | ||
-->{{Character sheet/section<!-- | -->{{Character sheet/section<!-- | ||
Line 118: | Line 118: | ||
-->{{#if:{{#var:theskillname}}|<!-- | -->{{#if:{{#var:theskillname}}|<!-- | ||
-->{{#set: | -->{{#set: | ||
− | | skill | + | | has skill = {{lc:{{#var:theskillname}}}} ; $skillrank$ |
− | |||
}}<!-- | }}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Increment skill slot counter | Increment skill slot counter | ||
− | -->{{#vardefine: skillsused | {{#expr: {{#var:skillsused|0}} + | + | -->{{#vardefine: skillsused | {{#expr: {{#var:skillsused|0}} + $skillrank$}} }}<!-- |
-->{{#arrayreset: theskillarray}}<!-- | -->{{#arrayreset: theskillarray}}<!-- |
Latest revision as of 17:42, 3 February 2016
[create]
Error creating thumbnail: File missing
Template documentation Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
Skills |