Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:SkillCard: Difference between revisions

Template page
Add TemplateData JSON for Visual Editor parameter support
Fix sphere class spacing: move space outside #if to prevent MW trimming
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
== Usage ==
== 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.
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.
The optional '''sphere''' parameter adds colour-coded headers based on the magical sphere or skill type:
* <code>Air</code> – Gold/Yellow
* <code>Earth</code> – Green
* <code>Fire</code> – Orange/Red
* <code>Water</code> – Blue
* <code>Spirit</code> – Purple
* <code>Vigour</code> – Red
* <code>Focus</code> – Blue
If omitted, the default parchment brown header is used.


<pre>
<pre>
{{SkillCard
{{SkillCard
|name=Spell Name
|name=Spell Name
|sphere=Fire
|level=1
|level=1
|xp=2xp
|xp=2xp
Line 26: Line 38:
<templatedata>
<templatedata>
{
{
  "description": "A styled card for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents.",
"description": "A styled card for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents.",
  "params": {
"params": {
    "name": {
"name": {
      "label": "Name",
"label": "Name",
      "description": "The name of the skill, rite, spell, or ability",
"description": "The name of the skill, rite, spell, or ability",
      "type": "string",
"type": "string",
      "required": true
"required": true
    },
},
    "level": {
"sphere": {
      "label": "Level",
"label": "Sphere",
      "description": "The rite/spell level (displays as 'Lvl X' badge)",
"description": "Colour theme: Air, Earth, Fire, Water, Spirit, Vigour, or Focus",
      "type": "number",
"type": "string",
      "suggested": true
"suggestedvalues": ["Air", "Earth", "Fire", "Water", "Spirit", "Vigour", "Focus"]
    },
},
    "xp": {
"level": {
      "label": "XP Cost",
"label": "Level",
      "description": "XP cost to learn this skill (e.g. '2xp')",
"description": "The rite/spell level (displays as 'Lvl X' badge)",
      "type": "string"
"type": "number",
    },
"suggested": true
    "cast_time": {
},
      "label": "Cast Time",
"xp": {
      "description": "How long the rite or spell takes to cast",
"label": "XP Cost",
      "type": "string",
"description": "XP cost to learn this skill (e.g. '2xp')",
      "suggested": true
"type": "string"
    },
},
    "duration": {
"cast_time": {
      "label": "Duration",
"label": "Cast Time",
      "description": "How long the effect lasts",
"description": "How long the rite or spell takes to cast",
      "type": "string",
"type": "string",
      "suggested": true
"suggested": true
    },
},
    "cost": {
"duration": {
      "label": "Cost",
"label": "Duration",
      "description": "Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith')",
"description": "How long the effect lasts",
      "type": "string"
"type": "string",
    },
"suggested": true
    "fp_cost": {
},
      "label": "FP Cost",
"cost": {
      "description": "Focus Point cost for cantrip spells",
"label": "Cost",
      "type": "number"
"description": "Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith')",
    },
"type": "string"
    "target": {
},
      "label": "Target",
"fp_cost": {
      "description": "Who the ability targets (e.g. 'Self', 'Other')",
"label": "FP Cost",
      "type": "string"
"description": "Focus Point cost for cantrip spells",
    },
"type": "number"
    "type": {
},
      "label": "Type",
"target": {
      "description": "The type of ability (e.g. 'Ceremony – 1 min')",
"label": "Target",
      "type": "string"
"description": "Who the ability targets (e.g. 'Self', 'Other')",
    },
"type": "string"
    "extension": {
},
      "label": "Extension",
"type": {
      "description": "How the rite can be extended with additional resources",
"label": "Type",
      "type": "string",
"description": "The type of ability (e.g. 'Ceremony – 1 min')",
      "suggested": true
"type": "string"
    },
},
    "range": {
"restriction": {
      "label": "Range",
"label": "Restriction",
      "description": "The range or reach of the ability",
"description": "Usage restrictions (e.g. 'Polearms only')",
      "type": "string",
"type": "string"
      "suggested": true
},
    },
"recharge": {
    "effect": {
"label": "Recharge",
      "label": "Effect",
"description": "How the ability recharges (e.g. '1/encounter', 'On entering critical state')",
      "description": "Full description of what the ability does",
"type": "string"
      "type": "string",
},
      "required": true
"threshold": {
    },
"label": "Threshold",
    "vocals": {
"description": "Faith threshold required to use this ceremony",
      "label": "Vocals",
"type": "string"
      "description": "Required vocal incantation and casting words for cantrip spells",
},
      "type": "string"
"extension": {
    },
"label": "Extension",
    "note": {
"description": "How the rite can be extended with additional resources",
      "label": "Note",
"type": "string",
      "description": "Optional referee note or additional flavour text",
"suggested": true
      "type": "string"
},
    }
"range": {
  },
"label": "Range",
  "paramOrder": ["name", "level", "xp", "cast_time", "duration", "cost", "fp_cost", "target", "type", "extension", "range", "effect", "vocals", "note"],
"description": "The range or reach of the ability",
  "format": "block"
"type": "string",
"suggested": true
},
"effect": {
"label": "Effect",
"description": "Full description of what the ability does",
"type": "string",
"required": true
},
"vocals": {
"label": "Vocals",
"description": "Required vocal incantation and casting words for cantrip spells",
"type": "string"
},
"note": {
"label": "Note",
"description": "Optional referee note or additional flavour text",
"type": "string"
}
},
"paramOrder": ["name", "sphere", "level", "xp", "cast_time", "duration", "cost", "fp_cost", "target", "type", "restriction", "recharge", "threshold", "extension", "range", "effect", "vocals", "note"],
"format": "block"
}
}
</templatedata>
</templatedata>
Line 113: Line 146:
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>==== {{{name}}} ====
</noinclude><includeonly>==== {{{name}}} ====
<div class="skill-card"><div class="skill-card-header"><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 class="skill-card-body"><table class="skill-card-stats">
<div class="skill-card {{#if:{{{sphere|}}}|skill-sphere-{{lc:{{{sphere}}}}}}}"><div class="skill-card-header"><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 class="skill-card-body"><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:{{{fp_cost|}}}|<tr><th>FP Cost</th><td>{{{fp_cost}}}</td></tr>}}
{{#if:{{{cost|}}}|<tr><th>Cost</th><td>{{{cost}}}</td></tr>}}
{{#if:{{{cost|}}}|<tr><th>Cost</th><td>{{{cost}}}</td></tr>}}
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
{{#if:{{{restriction|}}}|<tr><th>Restriction</th><td>{{{restriction}}}</td></tr>}}
{{#if:{{{target|}}}|<tr><th>Target</th><td>{{{target}}}</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>}}
{{#if:{{{recharge|}}}|<tr><th>Recharge</th><td>{{{recharge}}}</td></tr>}}
{{#if:{{{threshold|}}}|<tr><th>Threshold</th><td>{{{threshold}}}</td></tr>}}
</table>{{#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:{{{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>}}</div></div></includeonly>
</table>{{#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:{{{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>}}</div></div></includeonly>

Latest revision as of 12:20, 14 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.

The optional sphere parameter adds colour-coded headers based on the magical sphere or skill type:

  • Air – Gold/Yellow
  • Earth – Green
  • Fire – Orange/Red
  • Water – Blue
  • Spirit – Purple
  • Vigour – Red
  • Focus – Blue

If omitted, the default parchment brown header is used.

{{SkillCard
|name=Spell Name
|sphere=Fire
|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.

A styled card for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the skill, rite, spell, or ability

Stringrequired
Spheresphere

Colour theme: Air, Earth, Fire, Water, Spirit, Vigour, or Focus

Suggested values
Air Earth Fire Water Spirit Vigour Focus
Stringoptional
Levellevel

The rite/spell level (displays as 'Lvl X' badge)

Numbersuggested
XP Costxp

XP cost to learn this skill (e.g. '2xp')

Stringoptional
Cast Timecast_time

How long the rite or spell takes to cast

Stringsuggested
Durationduration

How long the effect lasts

Stringsuggested
Costcost

Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith')

Stringoptional
FP Costfp_cost

Focus Point cost for cantrip spells

Numberoptional
Targettarget

Who the ability targets (e.g. 'Self', 'Other')

Stringoptional
Typetype

The type of ability (e.g. 'Ceremony – 1 min')

Stringoptional
Restrictionrestriction

Usage restrictions (e.g. 'Polearms only')

Stringoptional
Rechargerecharge

How the ability recharges (e.g. '1/encounter', 'On entering critical state')

Stringoptional
Thresholdthreshold

Faith threshold required to use this ceremony

Stringoptional
Extensionextension

How the rite can be extended with additional resources

Stringsuggested
Rangerange

The range or reach of the ability

Stringsuggested
Effecteffect

Full description of what the ability does

Stringrequired
Vocalsvocals

Required vocal incantation and casting words for cantrip spells

Stringoptional
Notenote

Optional referee note or additional flavour text

Stringoptional
Contents