From GamingWiki
Line 23: | Line 23: | ||
We either have a long section of skills, or one entry per level. | We either have a long section of skills, or one entry per level. | ||
− | -->{{# | + | -->{{#if: {{{skills|}}}|<!-- |
+ | One 'skills' section. | ||
+ | Lines are listed in descending order of skill. Each line is of the form: | ||
+ | ;; SkillName//OpType//OpModifier :: SkillName//OpType//OpModifier ... | ||
+ | where SkillName is just what it says, OpType is an optional type to the | ||
+ | skill (such as 'combat' or 'track' and OpModifier is an optional modifier | ||
+ | such as 'MG'. | ||
+ | Note: we assume that no skill lines are missing. | ||
+ | |||
+ | -->{{#arraydefine: skillsbylevel | {{{skills}}} | ;; }}<!-- | ||
+ | -->{{#arrayslice: skillsbylevel | skillsbylevel | 0 }}<!-- | ||
+ | -->{{#arraytohash: skillhash | skillsbylevel | skilllevelsreverse }}<!-- | ||
+ | -->{{#arrayreset: skillsbylevel}}<!-- | ||
+ | -->|<!-- | ||
No single skills section. We look for multiple sections: 'skills1', 'skills2', etc. | No single skills section. We look for multiple sections: 'skills1', 'skills2', etc. | ||
There are several parameters: skills1, skill2, and so on. Each corresponds | There are several parameters: skills1, skill2, and so on. Each corresponds | ||
Line 40: | Line 53: | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->}}<!-- | -->}}<!-- | ||
Line 58: | Line 58: | ||
{{Character sheet/section | {{Character sheet/section | ||
| subhead = Skills | | subhead = Skills | ||
− | | righthead = | + | | righthead = types: {{#hashprint: classhash | , | %%%% | @@@@ | <span class="{{#var:skillClass}} @@@@"> %%%%</span> }} |
}}<!-- end section --><!-- | }}<!-- end section --><!-- | ||
Revision as of 20:41, 28 February 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 | types: Template:(({skilltypesTemplate:))} |