Difference between revisions of "Template:GURPS Spells List"

From Bearscape Wiki
Jump to: navigation, search
(Added template for GURPS spells.)
 
m (Used the altrow CSS class for simplification.)
 
Line 6: Line 6:
 
   {{#switch: {{#var: mod}}
 
   {{#switch: {{#var: mod}}
 
   | 1 = {{#vardefine: indent | {{#var: value|0}}}}
 
   | 1 = {{#vardefine: indent | {{#var: value|0}}}}
   | 2 = <tr {{#ifeq: {{#expr: {{#var: number}} mod 26}} | 15 | style="background-color: #e2f9e2"}}><td class="width100p">{{Indent|text={{#var: value}}|levels={{#var: indent}}}}
+
   | 2 = <tr {{#ifeq: {{#expr: {{#var: number}} mod 26}} | 15 | class="altrow"}}><td class="width100p">{{Indent|text={{#var: value}}|levels={{#var: indent}}}}
 
   | 3 = {{#if: {{#var: value|}} | <div class="gray">{{Indent|text={{#var: value}}|levels={{#var: indent}}}}</div>}}</td>
 
   | 3 = {{#if: {{#var: value|}} | <div class="gray">{{Indent|text={{#var: value}}|levels={{#var: indent}}}}</div>}}</td>
 
   | 4
 
   | 4

Latest revision as of 23:50, 27 January 2016

This template will list spells for GURPS. It is meant for use with the GURPS Character Sheet template.

Usage[edit]

{{GURPS Spells List
[SPELLS]
}}

Where [SPELLS] is in the following format:

|indent level|spell name|optional notes|class|college|casting cost|maintenance cost|casting time|duration|skill level|relative skill level|points spent|page reference

Include for as many spells as you want to list. If any value is left blank, you must still include the pipe character before the next value. Indent level may be left out and will default to 0. The optional notes will show up in gray if given.

Example[edit]

{{GURPS Spells List
||Climbing|NOTES?!|Regular|Body Control|1-3|Same|1 sec|1 min|8|IQ-2|1|M35
|1|Sense Foes||Info/Area|Communication|1/area, min 2||1 sec|Instant|8|IQ-2|1|M44
}}

renders as:

SpellsClassMana CostTimeSLRSLPtsRefs
Climbing
NOTES?!
Regular
Body Control
1-3
Same
1 sec
1 min
8IQ-21M35
Sense FoesInfo/Area
Communication
1/area, min 21 sec
Instant
8IQ-21M44