Template:SkillCard: Difference between revisions
Template page
More actions
Create SkillCard template (renamed from RiteCard) with heading for TOC navigation |
Add support for fp_cost, target, type, vocals, xp fields |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
A styled card template for presenting Rites, Spells, and abilities. The card name automatically appears in the page's Table of Contents for easy navigation. | A styled card template for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents for easy navigation. | ||
<pre> | <pre> | ||
| Line 7: | Line 7: | ||
|name=Spell Name | |name=Spell Name | ||
|level=1 | |level=1 | ||
|xp=2xp | |||
|cast_time=2 minutes | |cast_time=2 minutes | ||
|duration=Instantaneous | |duration=Instantaneous | ||
|cost=1 Air Flicker | |cost=1 Air Flicker | ||
|fp_cost=1 | |||
|target=Other | |||
|type=Ceremony – 1 min | |||
|extension=Description of how flickers extend the rite | |extension=Description of how flickers extend the rite | ||
|range=10 metres | |range=10 metres | ||
|effect=Full description of the spell effect | |effect=Full description of the spell effect | ||
|vocals=By the element of Air/Minimum of Five Words/Spell Name | |||
|note=Optional referee note or flavour text | |note=Optional referee note or flavour text | ||
}} | }} | ||
| Line 24: | Line 29: | ||
<div class="skill-card"> | <div class="skill-card"> | ||
<div class="skill-card-header"> | <div class="skill-card-header"> | ||
<span class="skill-card-name">{{{name}}}</span>{{#if:{{{level|}}}|<span class="skill-card-level">Lvl {{{level}}}</span>}} | <span class="skill-card-name">{{{name}}}</span>{{#if:{{{level|}}}|<span class="skill-card-level">Lvl {{{level}}}</span>}}{{#if:{{{xp|}}}|<span class="skill-card-level">{{{xp}}}</span>}} | ||
</div> | </div> | ||
<div class="skill-card-body"> | <div class="skill-card-body"> | ||
<table class="skill-card-stats"> | <table class="skill-card-stats"> | ||
{{#if:{{{cast_time|}}}|<tr><th>Cast Time</th><td>{{{cast_time}}}</td></tr>}} | {{#if:{{{cast_time|}}}|<tr><th>Cast Time</th><td>{{{cast_time}}}</td></tr>}} | ||
{{#if:{{{fp_cost|}}}|<tr><th>FP Cost</th><td>{{{fp_cost}}}</td></tr>}} | |||
{{#if:{{{cost|}}}|<tr><th>Cost</th><td>{{{cost}}}</td></tr>}} | |||
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}} | |||
{{#if:{{{target|}}}|<tr><th>Target</th><td>{{{target}}}</td></tr>}} | |||
{{#if:{{{duration|}}}|<tr><th>Duration</th><td>{{{duration}}}</td></tr>}} | {{#if:{{{duration|}}}|<tr><th>Duration</th><td>{{{duration}}}</td></tr>}} | ||
{{#if:{{{range|}}}|<tr><th>Range</th><td>{{{range}}}</td></tr>}} | {{#if:{{{range|}}}|<tr><th>Range</th><td>{{{range}}}</td></tr>}} | ||
</table> | </table> | ||
{{#if:{{{extension|}}}|<div class="skill-card-extension"><span class="skill-card-ext-label">Extension:</span> {{{extension}}}</div>}} | {{#if:{{{extension|}}}|<div class="skill-card-extension"><span class="skill-card-ext-label">Extension:</span> {{{extension}}}</div>}} | ||
{{#if:{{{effect|}}}|<div class="skill-card-effect">{{{effect}}}</div>}} | {{#if:{{{effect|}}}|<div class="skill-card-effect">{{{effect}}}</div>}} | ||
{{#if:{{{vocals|}}}|<div class="skill-card-extension"><span class="skill-card-ext-label">Vocals:</span> {{{vocals}}}</div>}} | |||
{{#if:{{{note|}}}|<div class="skill-card-note">{{{note}}}</div>}} | {{#if:{{{note|}}}|<div class="skill-card-note">{{{note}}}</div>}} | ||
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||
Revision as of 18:28, 13 March 2026
Usage
A styled card template for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents for easy navigation.
{{SkillCard
|name=Spell Name
|level=1
|xp=2xp
|cast_time=2 minutes
|duration=Instantaneous
|cost=1 Air Flicker
|fp_cost=1
|target=Other
|type=Ceremony – 1 min
|extension=Description of how flickers extend the rite
|range=10 metres
|effect=Full description of the spell effect
|vocals=By the element of Air/Minimum of Five Words/Spell Name
|note=Optional referee note or flavour text
}}
All parameters except name are optional. The card gracefully hides rows for any omitted field.