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
m Reverted edits by Persephone (talk) to last revision by Menhir wiki admin
Tag: Rollback
Add Time to Deliver parameter (TemplateData + table row)
Line 21: Line 21:
|xp=2xp
|xp=2xp
|cast_time=2 minutes
|cast_time=2 minutes
|time_to_deliver=5 seconds
|duration=Instantaneous
|duration=Instantaneous
|cost=1 Air Flicker
|cost=1 Air Flicker
Line 38: Line 39:
<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
},
        },
"sphere": {
        "sphere": {
"label": "Sphere",
            "label": "Sphere",
"description": "Colour theme: Air, Earth, Fire, Water, Spirit, Vigour, or Focus",
            "description": "Colour theme: Air, Earth, Fire, Water, Spirit, Vigour, or Focus",
"type": "string",
            "type": "string",
"suggestedvalues": ["Air", "Earth", "Fire", "Water", "Spirit", "Vigour", "Focus"]
            "suggestedvalues": [
},
                "Air",
"level": {
                "Earth",
"label": "Level",
                "Fire",
"description": "The rite/spell level (displays as 'Lvl X' badge)",
                "Water",
"type": "number",
                "Spirit",
"suggested": true
                "Vigour",
},
                "Focus"
"xp": {
            ]
"label": "XP Cost",
        },
"description": "XP cost to learn this skill (e.g. '2xp')",
        "level": {
"type": "string"
            "label": "Level",
},
            "description": "The rite/spell level (displays as 'Lvl X' badge)",
"cast_time": {
            "type": "number",
"label": "Cast Time",
            "suggested": true
"description": "How long the rite or spell takes to cast",
        },
"type": "string",
        "xp": {
"suggested": true
            "label": "XP Cost",
},
            "description": "XP cost to learn this skill (e.g. '2xp')",
"duration": {
            "type": "string"
"label": "Duration",
        },
"description": "How long the effect lasts",
        "cast_time": {
"type": "string",
            "label": "Cast Time",
"suggested": true
            "description": "How long the rite or spell takes to cast",
},
            "type": "string",
"cost": {
            "suggested": true
"label": "Cost",
        },
"description": "Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith')",
        "duration": {
"type": "string"
            "label": "Duration",
},
            "description": "How long the effect lasts",
"fp_cost": {
            "type": "string",
"label": "FP Cost",
            "suggested": true
"description": "Focus Point cost for cantrip spells",
        },
"type": "number"
        "cost": {
},
            "label": "Cost",
"target": {
            "description": "Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith')",
"label": "Target",
            "type": "string"
"description": "Who the ability targets (e.g. 'Self', 'Other')",
        },
"type": "string"
        "fp_cost": {
},
            "label": "FP Cost",
"type": {
            "description": "Focus Point cost for cantrip spells",
"label": "Type",
            "type": "number"
"description": "The type of ability (e.g. 'Ceremony – 1 min')",
        },
"type": "string"
        "target": {
},
            "label": "Target",
"restriction": {
            "description": "Who the ability targets (e.g. 'Self', 'Other')",
"label": "Restriction",
            "type": "string"
"description": "Usage restrictions (e.g. 'Polearms only')",
        },
"type": "string"
        "type": {
},
            "label": "Type",
"recharge": {
            "description": "The type of ability (e.g. 'Ceremony – 1 min')",
"label": "Recharge",
            "type": "string"
"description": "How the ability recharges (e.g. '1/encounter', 'On entering critical state')",
        },
"type": "string"
        "restriction": {
},
            "label": "Restriction",
"threshold": {
            "description": "Usage restrictions (e.g. 'Polearms only')",
"label": "Threshold",
            "type": "string"
"description": "Faith threshold required to use this ceremony",
        },
"type": "string"
        "recharge": {
},
            "label": "Recharge",
"extension": {
            "description": "How the ability recharges (e.g. '1/encounter', 'On entering critical state')",
"label": "Extension",
            "type": "string"
"description": "How the rite can be extended with additional resources",
        },
"type": "string",
        "threshold": {
"suggested": true
            "label": "Threshold",
},
            "description": "Faith threshold required to use this ceremony",
"range": {
            "type": "string"
"label": "Range",
        },
"description": "The range or reach of the ability",
        "extension": {
"type": "string",
            "label": "Extension",
"suggested": true
            "description": "How the rite can be extended with additional resources",
},
            "type": "string",
"effect": {
            "suggested": true
"label": "Effect",
        },
"description": "Full description of what the ability does",
        "range": {
"type": "string",
            "label": "Range",
"required": true
            "description": "The range or reach of the ability",
},
            "type": "string",
"vocals": {
            "suggested": true
"label": "Vocals",
        },
"description": "Required vocal incantation and casting words for cantrip spells",
        "effect": {
"type": "string"
            "label": "Effect",
},
            "description": "Full description of what the ability does",
"note": {
            "type": "string",
"label": "Note",
            "required": true
"description": "Optional referee note or additional flavour text",
        },
"type": "string"
        "vocals": {
}
            "label": "Vocals",
},
            "description": "Required vocal incantation and casting words for cantrip spells",
"paramOrder": ["name", "sphere", "level", "xp", "cast_time", "duration", "cost", "fp_cost", "target", "type", "restriction", "recharge", "threshold", "extension", "range", "effect", "vocals", "note"],
            "type": "string"
"format": "block"
        },
        "note": {
            "label": "Note",
            "description": "Optional referee note or additional flavour text",
            "type": "string"
        },
        "time_to_deliver": {
            "label": "Time to Deliver",
            "description": "How long you have to deliver the call",
            "type": "string"
        }
    },
    "paramOrder": [
        "name",
        "sphere",
        "level",
        "xp",
        "cast_time",
        "duration",
        "cost",
        "fp_cost",
        "target",
        "type",
        "restriction",
        "recharge",
        "threshold",
        "extension",
        "range",
        "effect",
        "vocals",
        "note",
        "time_to_deliver"
    ],
    "format": "block"
}
}
</templatedata>
</templatedata>
Line 148: Line 182:
<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">
<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:{{{time_to_deliver|}}}|<tr><th>Time to Deliver</th><td>{{{time_to_deliver}}}</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>}}

Revision as of 12:21, 4 April 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
|time_to_deliver=5 seconds
|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
Time to Delivertime_to_deliver

How long you have to deliver the call

Stringoptional
Contents